/*
 * WPCode Black Friday: pricing page swaps and the dark edition.
 *
 * The dark edition is one contained near-black panel around the plan cards
 * (the rest of the page keeps its normal look), with a single accent: the
 * theme's highlight yellow (--color-highlight #FFFD54).
 */

/* Swap wrappers take no room of their own; the hidden one is gone. */
span.wpcode-bf-swap {
	display: contents;
}

span.wpcode-bf-swap[hidden] {
	display: none !important;
}

/* "Black Friday edition" eyebrow above the cards. */
.wpcode-bf-edition {
	display: table;
	margin: 1.25rem auto 0;
	padding: 0.375rem 1rem;
	border-radius: 999px;
	background: #fffd54;
	color: #0b0c14;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

/* The panel. */
body.wpcode-bf-dark .pricing-columns {
	--bf-bg: #0b0c14;
	--bf-line: #262938;
	--bf-text: #f4f5fa;
	--bf-muted: #a9adc1;
	--bf-accent: #fffd54;

	background: var(--bf-bg);
	border-radius: 16px;
	padding: 48px 24px 32px;
	margin-top: 24px;
	margin-bottom: 32px;
	gap: 0;
}

body.wpcode-bf-dark .pricing-columns > .wp-block-column {
	background: var(--bf-bg) !important;
	border: 1px solid var(--bf-line) !important;
	box-shadow: none !important;
	color: var(--bf-muted);
}

body.wpcode-bf-dark .pricing-columns > .wp-block-column.best-deal-column {
	border: 2px solid var(--bf-accent) !important;
}

/* BEST DEAL tab. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column p.best-deal-heading {
	background: var(--bf-accent) !important;
	color: var(--bf-bg) !important;
	font-weight: 700;
}

/* Names, prices and section headings. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column :is(h1, h2, h3, h4, strong),
body.wpcode-bf-dark .pricing-columns > .wp-block-column .has-jumbo-font-size,
body.wpcode-bf-dark .pricing-columns > .wp-block-column .wpcode-price-medium {
	color: var(--bf-text) !important;
}

/* Descriptions, features, "normally" line. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column :is(p, li, td, span),
body.wpcode-bf-dark .pricing-columns > .wp-block-column .has-text-color:not(.wp-block-button__link) {
	color: var(--bf-muted) !important;
}

body.wpcode-bf-dark .pricing-columns > .wp-block-column s,
body.wpcode-bf-dark .pricing-columns > .wp-block-column sub,
body.wpcode-bf-dark .pricing-columns > .wp-block-column sup {
	color: var(--bf-muted) !important;
}

/* The jumbo price keeps its $ and cents in the same white. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column .has-jumbo-font-size :is(sup, span) {
	color: var(--bf-text) !important;
}

/* Feature items with tooltips: quiet underline instead of blue dashes. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column .wp-block-aioseo-theme-tooltip,
body.wpcode-bf-dark .pricing-columns > .wp-block-column .wp-block-aioseo-theme-tooltip > span {
	color: var(--bf-muted) !important;
	border-color: var(--bf-line) !important;
	text-decoration-color: var(--bf-line) !important;
}

/* Tooltip popups keep their own light look. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column .tooltip,
body.wpcode-bf-dark .pricing-columns > .wp-block-column .tooltip * {
	color: #141b38 !important;
}

/* Savings pill. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column .has-theme-highlight-background-color,
body.wpcode-bf-dark .pricing-columns > .wp-block-column .has-theme-highlight-background-color * {
	background-color: var(--bf-accent) !important;
	color: var(--bf-bg) !important;
	font-weight: 600;
}

/* Get Started buttons. */
body.wpcode-bf-dark .pricing-columns .wp-block-button__link {
	background: var(--bf-accent) !important;
	color: var(--bf-bg) !important;
	border-color: var(--bf-accent) !important;
}

body.wpcode-bf-dark .pricing-columns .wp-block-button__link:hover,
body.wpcode-bf-dark .pricing-columns .wp-block-button__link:focus {
	background: #fffe9e !important;
	color: var(--bf-bg) !important;
}

body.wpcode-bf-dark .pricing-columns .wp-block-button__link * {
	color: inherit !important;
	fill: currentColor !important;
}

/* Plain links ("See all features"). */
body.wpcode-bf-dark .pricing-columns > .wp-block-column a:not(.wp-block-button__link) {
	color: var(--bf-accent) !important;
	text-decoration-color: rgba(255, 253, 84, 0.4) !important;
}

/* Dividers and icon tints. */
body.wpcode-bf-dark .pricing-columns > .wp-block-column :is(hr, .wp-block-separator) {
	border-color: var(--bf-line) !important;
	background-color: var(--bf-line) !important;
	color: var(--bf-line) !important;
	opacity: 1;
}

body.wpcode-bf-dark .pricing-columns > .wp-block-column img:not(.wp-block-button__link img) {
	opacity: 0.9;
}

@media (max-width: 781px) {
	body.wpcode-bf-dark .pricing-columns {
		padding: 32px 12px 16px;
		border-radius: 12px;
	}

	body.wpcode-bf-dark .pricing-columns > .wp-block-column + .wp-block-column {
		margin-top: 16px;
	}
}

/*
 * Upgrade page: the visitor's current plan and lower plans get no offer, so
 * their buttons step back. The theme renders "Current" as a light secondary
 * button (a.button.disabled) that clashes with the dark panel.
 */
body.wpcode-bf-dark .pricing-columns a.button.disabled,
body.wpcode-bf-dark .pricing-columns a.button-secondary.disabled {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: transparent !important;
	border: 1px solid var(--bf-line) !important;
	box-shadow: none !important;
	color: var(--bf-muted) !important;
	text-decoration: none !important;
	cursor: default;
	pointer-events: none;
}

body.wpcode-bf-dark .pricing-columns a.button.disabled svg {
	display: none;
}

body.wpcode-bf-dark .pricing-columns a.button.disabled::before {
	content: "";
	width: 0.875rem;
	height: 0.5rem;
	margin-top: -0.25rem;
	border-left: 2px solid var(--bf-accent);
	border-bottom: 2px solid var(--bf-accent);
	transform: rotate(-45deg);
}

body.wpcode-bf-dark .pricing-columns .wpcode-bf-not-upgrade[data-bf-state="sale"] .wp-block-button__link {
	background: transparent !important;
	border: 1px solid var(--bf-line) !important;
	color: var(--bf-text) !important;
}

body.wpcode-bf-dark .pricing-columns .wpcode-bf-not-upgrade[data-bf-state="sale"] .wp-block-button__link:hover,
body.wpcode-bf-dark .pricing-columns .wpcode-bf-not-upgrade[data-bf-state="sale"] .wp-block-button__link:focus {
	background: transparent !important;
	border-color: var(--bf-muted) !important;
	color: var(--bf-text) !important;
}

/* Upgrade cards on the visitor's own upgrade page: price due today, renewal price underneath. */
.wpcode-bf-renews {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
}

body.wpcode-bf-dark .pricing-columns > .wp-block-column .has-jumbo-font-size .wpcode-bf-renews {
	color: var(--bf-muted) !important;
}
