/**
 * Black Friday / Cyber Monday skin for deal roundup pages.
 *
 * Loaded after roundup.css by inc/roundup.php when the page's Kadence rows
 * carry `ta-roundup--bfcm` (next to `ta-roundup`). It swaps the Halloween
 * tokens for near-black and signal red, and styles the pieces this design adds:
 * the promo bar, the hero offer card and countdown, the key takeaways, the
 * bundle panel, the pro tip, the FAQ and the closing card.
 *
 * Spacing, colours and type sizes of headings and buttons live on the Kadence
 * blocks themselves, so they stay editable in the editor.
 */

/* Tokens ------------------------------------------------------------------ */

body.ta-roundup-page--bfcm,
.ta-roundup--bfcm {
	--ta-rd-bg: #08090b;
	--ta-rd-surface: #121416;
	--ta-rd-raised: #0a0b0d;
	--ta-rd-border: #27292c;
	--ta-rd-text: #cfd1d5;
	--ta-rd-muted: #a2a5a8;
	--ta-rd-heading: #f3f5f8;
	--ta-rd-cream: #f3f5f8;
	--ta-rd-orange: #ff6b60;
	--ta-rd-ink: #08090b;
	--ta-rd-display: 'Archivo', 'DM Sans', system-ui, sans-serif;

	--ta-bf-red: #d8151e;
	--ta-bf-red-hover: #be000d;
	--ta-bf-red-light: #ff6b60;
	--ta-bf-red-deep: #76080c;
	--ta-bf-pink: #f5e3e1;
	--ta-bf-white: #fcfcfc;
	--ta-bf-line: #27292c;
	--ta-bf-line-strong: #313336;
}

.ta-roundup--bfcm :is(h1, h2, h3) {
	font-family: var(--ta-rd-display);
	font-stretch: 105%;
}

.ta-roundup--bfcm .wp-block-kadence-advancedheading a:not(.kb-button) {
	color: var(--ta-bf-red-light);
}

.ta-roundup--bfcm a:focus-visible,
.ta-roundup--bfcm button:focus-visible,
.ta-roundup--bfcm summary:focus-visible {
	outline-color: var(--ta-bf-red-light);
}

.ta-rd-accent {
	color: var(--ta-bf-red-light);
}

/* Promo bar ----------------------------------------------------------------
   The first row on the page, so it starts below the fixed theme header.
   roundup.js replaces the fallback with the header's measured height. */

.ta-rd-top {
	padding-top: var(--ta-header-h, 88px);
}

/* Hero offer card ----------------------------------------------------------- */

.ta-roundup--bfcm .ta-rd-offer > .kt-inside-inner-col {
	overflow: hidden;
	border: 1px solid var(--ta-bf-line-strong);
}

.ta-rd-offer__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ta-rd-pill,
.ta-rd-offer__head .ta-rd-pill {
	display: inline-block;
	width: fit-content;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ta-bf-white);
	color: var(--ta-bf-red-deep);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

.ta-rd-big {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
}

.ta-rd-big__num {
	color: var(--ta-bf-white);
	font-family: var(--ta-rd-display);
	font-size: clamp(84px, 10vw, 136px);
	font-stretch: 110%;
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 0.8;
}

.ta-rd-big__stack {
	display: grid;
	gap: 2px;
	padding-bottom: 4px;
	font-family: var(--ta-rd-display);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

.ta-rd-big__stack > span:first-child {
	color: var(--ta-bf-pink);
	font-size: clamp(18px, 2vw, 24px);
}

.ta-rd-big__stack > span:last-child {
	color: var(--ta-bf-white);
	font-size: clamp(30px, 3.4vw, 44px);
}

/* Plugin icon tiles (hero card and bundle panel). */
.ta-rd-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ta-rd-icons > a,
.ta-rd-icons > span {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--ta-bf-white);
	transition: transform 150ms ease;
}

.ta-rd-icons > a:hover {
	transform: translateY(-2px);
}

.ta-rd-icons img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.ta-rd-icons--lg > a,
.ta-rd-icons--lg > span {
	width: 44px;
	height: 44px;
}

.ta-rd-icons--lg img {
	width: 30px;
	height: 30px;
}

/* Phones: all seven tiles stay on one line. */
@media (max-width: 480px) {
	.ta-rd-icons {
		gap: 6px;
	}

	.ta-rd-icons > a,
	.ta-rd-icons > span,
	.ta-rd-icons--lg > a,
	.ta-rd-icons--lg > span {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}

	.ta-rd-icons img,
	.ta-rd-icons--lg img {
		width: 24px;
		height: 24px;
	}
}

/* Countdown: label on top, four tiles below (roundup.js fills the numbers). */
.ta-rd-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 8px;
}

.ta-rd-cd-label {
	grid-column: 1 / -1;
	color: var(--ta-rd-muted);
	font-family: var(--ta-rd-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ta-rd-cd-unit {
	display: grid;
	gap: 4px;
	padding: 12px 4px 10px;
	border-radius: 12px;
	background: #070709;
	color: #9c9ea2;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
}

.ta-rd-cd-unit strong {
	color: var(--ta-rd-heading);
	font-family: var(--ta-rd-display);
	font-size: 30px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1;
}

.ta-rd-countdown.is-ended .ta-rd-cd-unit {
	opacity: 0.5;
}

/* Key takeaways --------------------------------------------------------------- */

/* Hairlines above and below, inset by the row's side padding so they line
   up with the text (a border would run through the padding). */
.ta-rd-takeaways > .kt-row-column-wrap {
	--ta-bf-inset: 48px;
	background-image:
		linear-gradient(var(--ta-bf-line), var(--ta-bf-line)),
		linear-gradient(var(--ta-bf-line), var(--ta-bf-line));
	background-position: center top, center bottom;
	background-repeat: no-repeat;
	background-size: calc(100% - var(--ta-bf-inset)) 1px;
}

@media (max-width: 767px) {
	.ta-rd-takeaways > .kt-row-column-wrap {
		--ta-bf-inset: 40px;
	}
}

.ta-rd-takeaways strong {
	color: var(--ta-rd-heading);
}

/* Bundle panel ---------------------------------------------------------------- */

.ta-roundup--bfcm .ta-rd-checks {
	display: grid;
	gap: 10px;
	margin: 0 0 6px;
	padding: 0;
	color: #d5d8db;
	font-size: 15px;
	line-height: 1.45;
	list-style: none;
}

.ta-roundup--bfcm .ta-rd-checks + .wp-block-kadence-advancedbtn {
	margin-top: 22px;
}

.ta-roundup--bfcm .ta-rd-checks li {
	display: flex;
	gap: 10px;
	margin: 0;
}

.ta-roundup--bfcm .ta-rd-checks li::before {
	content: '✓';
	flex: none;
	color: var(--ta-bf-red-light);
	font-weight: 700;
}

/* Pro tip and FAQ ----------------------------------------------------------- */

.ta-roundup--bfcm .ta-rd-outline > .kt-inside-inner-col {
	border: 1px solid var(--ta-bf-line);
}

/* The FAQ intro stays in view while the answers scroll past (desktop). */
@media (min-width: 1025px) {
	.ta-roundup--bfcm .ta-rd-faq-aside {
		position: sticky;
		top: calc(var(--ta-header-h, 88px) + 16px);
		align-self: start;
	}
}

.ta-rd-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	overflow: hidden;
	border: 1px solid var(--ta-bf-line);
	border-radius: 20px;
}

.ta-rd-stats > span {
	display: grid;
	gap: 4px;
	padding: 20px;
	color: var(--ta-rd-muted);
	font-size: 14px;
	line-height: 1.4;
}

.ta-rd-stats > span:nth-child(odd) {
	border-right: 1px solid var(--ta-bf-line);
}

.ta-rd-stats > span:nth-child(-n + 2) {
	border-bottom: 1px solid var(--ta-bf-line);
}

.ta-rd-stats strong {
	color: var(--ta-rd-heading);
	font-family: var(--ta-rd-display);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
}

.ta-rd-stats > span:first-child strong {
	color: var(--ta-bf-red-light);
}

.ta-rd-faq {
	border-top: 1px solid var(--ta-bf-line);
}

.ta-rd-faq .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--ta-bf-line);
}

.ta-rd-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	color: var(--ta-rd-heading);
	font-family: var(--ta-rd-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.ta-rd-faq summary::-webkit-details-marker {
	display: none;
}

.ta-rd-faq summary::after {
	content: '+';
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid #3b3d40;
	border-radius: 50%;
	color: var(--ta-bf-red-light);
	font-size: 18px;
	font-weight: 400;
}

.ta-rd-faq details[open] summary::after {
	content: '−';
}

.ta-rd-faq details p {
	margin: 0;
	padding: 0 48px 24px 0;
	color: #b5b7bb;
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.ta-rd-faq summary {
		font-size: 16px;
	}

	.ta-rd-faq details p {
		padding-right: 0;
	}
}

/* Collections (Atelier Blocks) ------------------------------------------------ */

.ta-roundup--bfcm .darkify-collection {
	--darkify-collection-highlight: var(--ta-bf-red);
	--darkify-collection-highlight-text: var(--ta-bf-white);
	--darkify-collection-focus: var(--ta-bf-red-light);
	--darkify-collection-live: #66da85;
	--darkify-collection-upcoming: #f5cb70;
	--darkify-collection-featured-surface: #22110f;
	--darkify-collection-featured-border: #6e2924;
	--darkify-collection-title-size: 21px;
}

.ta-roundup--bfcm .darkify-collection__title,
.ta-roundup--bfcm .is-template-deal .darkify-collection__title,
.ta-roundup--bfcm .is-template-deal-featured .darkify-collection__title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ta-roundup--bfcm .darkify-collection__deal-text {
	color: #b5b7bb;
}

.ta-roundup--bfcm .darkify-collection__item:hover {
	border-color: #a83630;
}

/* Codes read in white; the coupon well and the CTA match the design. */
.ta-roundup--bfcm .darkify-collection__deal-code {
	color: var(--ta-rd-heading);
}

.ta-roundup--bfcm .darkify-collection__deal-coupon {
	border-style: dashed;
	border-color: #404246;
}

.ta-roundup--bfcm .darkify-collection__deal-copy {
	color: var(--ta-bf-red-light);
}

.ta-roundup--bfcm .darkify-collection__deal-cta {
	border-radius: 12px;
	font-weight: 700;
}

.ta-roundup--bfcm .darkify-collection__deal-cta:not(.is-disabled):hover {
	background-color: var(--ta-bf-red);
	color: var(--ta-bf-white);
	opacity: 1;
}

/* Handpicked: the letter tile is white with dark type. */
.ta-roundup--bfcm .is-template-deal-featured .darkify-collection__deal-icon:not(.has-image) {
	background: var(--ta-rd-heading);
	color: var(--ta-rd-ink);
	font-weight: 900;
}

/* Deals without a banner image (partners): the striped placeholder becomes
   a slim header row — type on the left, discount badge on the right. */
.ta-roundup--bfcm .darkify-collection__deal-banner.is-plain {
	aspect-ratio: auto;
	justify-content: space-between;
	gap: 12px;
	padding: 24px 24px 0;
	background: none;
}

.ta-roundup--bfcm .darkify-collection__deal-banner.is-plain .darkify-collection__deal-placeholder {
	display: none;
}

.ta-roundup--bfcm .darkify-collection__deal-banner.is-plain .darkify-collection__deal-type,
.ta-roundup--bfcm .darkify-collection__deal-banner.is-plain .darkify-collection__deal-badge {
	position: static;
}

.ta-roundup--bfcm .darkify-collection__deal-banner.is-plain .darkify-collection__deal-type {
	padding: 0;
	background: none;
	color: var(--ta-rd-muted);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ta-roundup--bfcm .darkify-collection__deal-banner.is-plain .darkify-collection__deal-badge {
	margin-left: auto;
	background: #46120f;
	color: #ff988c;
}

.ta-roundup--bfcm .darkify-collection__filter.is-active {
	background: var(--ta-rd-heading);
	color: var(--ta-rd-ink);
}

.ta-roundup--bfcm .darkify-collection__filter.is-active .darkify-collection__filter-count {
	color: #60636c;
}

.ta-roundup--bfcm .darkify-collection__search-input {
	background: var(--ta-rd-surface);
	border-color: var(--ta-bf-line-strong);
}

.ta-roundup--bfcm .darkify-collection__search-input:focus {
	border-color: var(--ta-bf-red-light);
}

/* Submit form ------------------------------------------------------------------ */

.ta-roundup--bfcm .fluentform .ff-el-form-control::placeholder {
	color: #84868a;
}

.ta-roundup--bfcm .fluentform .ff-el-form-control:focus {
	border-color: var(--ta-bf-red-light);
	box-shadow: 0 0 0 3px rgba(216, 21, 30, 0.22);
}

.ta-roundup--bfcm .fluentform .ff-btn-submit,
.ta-roundup--bfcm .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	background-color: var(--ta-bf-red) !important;
	color: var(--ta-bf-white) !important;
	font-weight: 700;
}

/* ========================================================================
   Site header and footer (body.ta-roundup-page--bfcm)
   roundup.css already darkens them; this swaps the Halloween browns/orange.
   ======================================================================== */

.ta-roundup-page--bfcm .ta-header,
.ta-roundup-page--bfcm .ta-header.ta-sticky-menu {
	/* Solid: a translucent header picks up the red promo bar behind it. */
	background-color: #08090b;
}

.ta-roundup-page--bfcm .ta-header ul li a {
	color: #bbbec2;
}

.ta-roundup-page--bfcm .ta-header ul li a:hover,
.ta-roundup-page--bfcm .ta-header ul li.current-menu-item > a {
	color: var(--ta-bf-red-light);
}

.ta-roundup-page--bfcm .ta-header .header-cart svg {
	fill: #bbbec2;
}

.ta-roundup-page--bfcm .ta-header .header-cart > div {
	color: var(--ta-bf-white);
	background-color: var(--ta-bf-red);
}

.ta-roundup-page--bfcm .ta-header .ta-btn-secondary {
	border-color: var(--ta-bf-red-light);
	color: var(--ta-bf-red-light);
}

.ta-roundup-page--bfcm .ta-header .ta-btn-secondary:hover {
	border-color: var(--ta-bf-red);
	background: var(--ta-bf-red);
	color: var(--ta-bf-white) !important;
}

.ta-roundup-page--bfcm .ta-footer,
.ta-roundup-page--bfcm .ta-footer.bg-secondary {
	background-color: #050607;
	color: var(--ta-rd-muted);
}

.ta-roundup-page--bfcm .ta-footer ul li a {
	color: var(--ta-rd-muted);
}

.ta-roundup-page--bfcm .ta-footer ul li a:hover,
.ta-roundup-page--bfcm .ta-footer .ta-footer-bottom a {
	color: var(--ta-bf-red-light);
}

.ta-roundup-page--bfcm .ta-footer .ff-el-form-control::placeholder {
	color: #6f7276;
}

.ta-roundup-page--bfcm .ta-footer .ff-el-form-control:focus {
	border-color: var(--ta-bf-red-light) !important;
	box-shadow: 0 0 0 3px rgba(216, 21, 30, 0.22);
}

.ta-roundup-page--bfcm .ta-footer form button,
.ta-roundup-page--bfcm .ta-footer .ff-btn-submit {
	background-color: var(--ta-bf-red) !important;
	color: var(--ta-bf-white) !important;
}

.ta-roundup-page--bfcm .ta-footer .ta-footer-bottom,
.ta-roundup-page--bfcm .ta-footer.bg-secondary .ta-footer-bottom {
	color: #84868a;
}
