/**
 * Bundle offer pages — loaded by inc/bundle-offer.php on pages that use the
 * `ta-bundle` class on their Kadence rows.
 *
 * Layout, spacing, colours and type sizes live on the Kadence blocks themselves,
 * so they stay editable in the editor. This file covers what the blocks can't:
 * the shared tokens, the hero grid, the price lockups, the check lists, the
 * price switcher, the review masonry, the guarantee seal and the FAQ.
 */

:root {
	--ta-bo-ink: #10131d;
	--ta-bo-ink-2: #171a24;
	--ta-bo-cream: #fbfaf7;
	--ta-bo-sand: #f4f1ed;
	--ta-bo-line: #e0ded8;
	--ta-bo-line-soft: #e7e4df;
	--ta-bo-primary: #3464e0;
	--ta-bo-primary-text: #3464e0;
	--ta-bo-primary-light: #8daeff;
	--ta-bo-text: #12161f;
	--ta-bo-body: #4a4d56;
	--ta-bo-muted: #60636c;
	--ta-bo-on-dark: #cbced4;
	--ta-bo-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
	--ta-bo-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.ta-bundle-page {
	background-color: var(--ta-bo-cream);
}

/* In-page links (#pricing, #plugins, …) glide instead of jumping, and the
   target lands below the fixed header rather than under it. */
@media (prefers-reduced-motion: no-preference) {
	html:has(body.ta-bundle-page) {
		scroll-behavior: smooth;
	}
}

.ta-bundle[id] {
	scroll-margin-top: calc(90px + var(--wp-admin--admin-bar--height, 0px));
}

.ta-bundle {
	font-family: var(--ta-bo-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ta-bundle :is(h1, h2, h3) {
	font-family: var(--ta-bo-display);
	text-wrap: balance;
}

.ta-bundle p {
	text-wrap: pretty;
}

.ta-bundle .wp-block-kadence-advancedheading a {
	color: var(--ta-bo-primary-text);
	font-weight: 600;
}

.ta-bundle a:focus-visible,
.ta-bundle button:focus-visible,
.ta-bundle summary:focus-visible {
	outline: 2px solid var(--ta-bo-primary);
	outline-offset: 3px;
}

.ta-bundle .wp-block-image {
	margin: 0;
}

/* Promo bar --------------------------------------------------------------- */

/* The theme header is position: fixed, so the bar starts below it.
   bundle-offer.js replaces the fallback with the measured height. */
.ta-bo-promo {
	padding-top: var(--ta-header-h, 90px);
}

.ta-bo-promo__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 22px;
}

.ta-bo-countdown {
	display: flex;
	align-items: center;
	gap: 6px;
	font-variant-numeric: tabular-nums;
}

.ta-bo-countdown > span:not(.ta-bo-promo__label) {
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--ta-bo-ink);
}

/* The days pill only shows while a day or more is left (bundle-offer.js). */
html.ta-js .ta-bo-cd-d:not(.is-shown) {
	display: none;
}

.ta-bo-promo__label {
	font-weight: 500;
	opacity: 0.85;
}

.ta-bundle .ta-bo-promo__bar a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Hero -------------------------------------------------------------------- */

.ta-bo-hero {
	position: relative;
	overflow: hidden;
}

.ta-bo-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	pointer-events: none;
}

.ta-bo-hero .kt-row-column-wrap {
	position: relative;
	z-index: 1;
}

.ta-bo-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	padding: 7px 14px 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
}

.ta-bo-pill__tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ta-bo-primary);
	color: #fff;
}

.ta-bo-accent {
	color: var(--ta-bo-primary-light);
}

.ta-bo-proof {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ta-bo-proof__faces {
	display: flex;
	flex: none;
}

.ta-bo-proof__faces img {
	width: 38px;
	height: 38px;
	border: 2px solid var(--ta-bo-ink);
	border-radius: 50%;
	object-fit: cover;
}

.ta-bo-proof__faces img + img {
	margin-left: -10px;
}

.ta-bo-proof__text {
	display: flex;
	flex-direction: column;
}

.ta-bo-proof strong {
	color: #fff;
}

.ta-bo-hero .ta-bo-stars,
.ta-bo-proof .ta-bo-stars {
	color: #f0b135;
	letter-spacing: 2px;
}

/* Offer card */
.ta-bo-offer {
	position: relative;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.ta-bo-save {
	position: absolute;
	top: 32px;
	right: 32px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: 8px;
	background: #e3ebff;
	white-space: nowrap;
}

.ta-bo-icons {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.ta-bo-icons img {
	width: 100%;
	aspect-ratio: 1;
	padding: 8px;
	border: 1px solid var(--ta-bo-line);
	border-radius: 12px;
	background: #fff;
	object-fit: contain;
}

/* Price lockups ----------------------------------------------------------- */

.ta-bo-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
}

.ta-bo-price__now {
	color: var(--ta-bo-text);
	font-family: var(--ta-bo-display);
	font-size: 56px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.ta-bo-price__was {
	color: #6e717b;
	font-size: 22px;
	font-weight: 400;
	text-decoration: line-through;
}

.ta-bo-price__save {
	color: #137738;
}

.ta-bo-price--tier .ta-bo-price__now {
	font-size: 52px;
}

.ta-bo-price--tier .ta-bo-price__was {
	font-size: 20px;
}

@media (max-width: 767px) {
	.ta-bo-save {
		top: 24px;
		right: 22px;
	}

	.ta-bo-price__now,
	.ta-bo-price--tier .ta-bo-price__now {
		font-size: 44px;
	}
}

/* Check lists ------------------------------------------------------------- */

.ta-bundle .ta-bo-checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	color: var(--ta-bo-text);
	font-size: 15px;
	line-height: 1.45;
	list-style: none;
}

.ta-bundle .ta-bo-checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.ta-bundle .ta-bo-checks li::before {
	content: '✓';
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ta-bo-ink);
	color: #fff;
	font-size: 11px;
}

.ta-bundle .ta-bo-checks--plain {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px 18px;
	margin: 0;
}

.ta-bundle .ta-bo-checks--plain li {
	align-items: flex-start;
	gap: 9px;
}

.ta-bundle .ta-bo-checks--plain li::before {
	display: inline;
	width: auto;
	height: auto;
	background: none;
	color: var(--ta-bo-primary-text);
	font-size: 15px;
	font-weight: 700;
}

.ta-bundle .ta-bo-checks--ruled {
	padding: 18px 0;
	border-top: 1px solid var(--ta-bo-line);
	border-bottom: 1px solid var(--ta-bo-line);
}

/* Included plugins -------------------------------------------------------- */

.ta-bo-plugin {
	overflow: hidden;
	border: 1px solid var(--ta-bo-line);
	border-radius: 22px;
}

.ta-bo-plugin__shot {
	overflow: hidden;
	border-radius: 14px;
	background: var(--ta-bo-sand);
}

/* Same preview images as the Plugins page; shown whole, never cropped. */
.ta-bo-plugin__shot img {
	display: block;
	width: 100%;
	height: auto;
}

.ta-bo-plugin__head {
	display: grid;
	grid-template-columns: 48px 1fr;
	align-items: center;
	column-gap: 14px;
}

.ta-bo-plugin__icon {
	grid-row: span 2;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: contain;
}

.ta-bo-plugin__meta {
	color: var(--ta-bo-muted);
	font-family: var(--ta-bo-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}

.ta-bo-plugin__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	padding-top: 14px;
	border-top: 1px solid var(--ta-bo-line-soft);
}

.ta-bo-plugin__foot strong {
	color: var(--ta-bo-text);
}

.ta-bundle .ta-bo-plugin__foot a {
	margin-left: auto;
}

/* Pricing ----------------------------------------------------------------- */

.ta-bo-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	width: fit-content;
	padding: 4px;
	border: 1px solid var(--ta-bo-line);
	border-radius: 12px;
	background: var(--ta-bo-sand);
}

.ta-bo-toggle > span,
.ta-bo-toggle > button {
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.ta-bo-toggle > button:hover {
	color: var(--ta-bo-ink);
}

/* Before the script runs, the first option of each toggle reads as chosen. */
.ta-bo-toggle > span:first-child,
.ta-bo-toggle > button.is-active,
.ta-bo-toggle > button.is-active:hover {
	background: var(--ta-bo-ink);
	color: #fff;
}

.ta-bo-toggle > button:not(.is-active):hover {
	background: rgba(16, 19, 29, 0.06);
}

/* Plan and sites switches share one row in the price card. */
.ta-bundle .ta-bo-switches > .kt-inside-inner-col {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.ta-bo-switches .ta-bo-toggle > span,
.ta-bo-switches .ta-bo-toggle > button {
	padding: 9px 14px;
}

/* Perks in two columns, so the card stays short. */
.ta-bundle .ta-bo-pricecard .ta-bo-checks--ruled {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 9px 16px;
	margin-bottom: 18px;
	padding: 16px 0;
	font-size: 14px;
}

.ta-bundle .ta-bo-pricecard .ta-bo-price--tier .ta-bo-price__now {
	font-size: 46px;
}

/* Phones: the options share the card's width instead of wrapping. */
@media (max-width: 480px) {
	.ta-bo-toggle {
		flex-wrap: nowrap;
		width: 100%;
	}

	.ta-bo-switches .ta-bo-toggle > span,
	.ta-bo-switches .ta-bo-toggle > button {
		flex: 1;
		padding: 10px 8px;
		text-align: center;
		white-space: nowrap;
	}
}

/* The six price bodies stack in the editor (so each can be edited); on the
   page bundle-offer.js shows only the selected one. */
.ta-bundle .ta-bo-tiers > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ta-bo-price-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.ta-bo-price__pct {
	padding: 3px 9px;
	border-radius: 999px;
	background: #e3ebff;
	color: #1f45b0;
	font-size: 13px;
	font-weight: 700;
}

.ta-bo-price__per {
	color: var(--ta-bo-muted);
}

.ta-bundle .ta-bo-checks--dark {
	margin: 0;
	color: #e3e5ea;
}

.ta-bundle .ta-bo-checks--dark li::before {
	background: rgba(141, 174, 255, 0.16);
	color: var(--ta-bo-primary-light);
}

html.ta-js .ta-bo-pricing:not(.is-ready) .ta-bo-tier:not(.is-default),
.ta-bo-tier[hidden] {
	display: none !important;
}

/* Why ThemeAtelier -------------------------------------------------------- */

.ta-bundle .ta-bo-reasons > .kt-inside-inner-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--ta-bo-line);
	border-radius: 22px;
	background: var(--ta-bo-line);
}

/* Kadence paints a column's background on its inner wrapper, so that wrapper
   has to fill the grid cell or the 1px gap lines show through. */
.ta-bundle :is(.ta-bo-reason, .ta-bo-assurance) > .kt-inside-inner-col {
	flex: 1;
}

/* Reviews ----------------------------------------------------------------- */

.ta-bo-stats {
	display: flex;
	justify-content: flex-end;
	gap: 28px;
}

.ta-bo-stats span {
	display: flex;
	flex-direction: column;
}

.ta-bo-stats strong {
	color: var(--ta-bo-text);
	font-family: var(--ta-bo-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
}

.ta-bundle .ta-bo-reviews-list > .kt-inside-inner-col {
	display: block;
	columns: 3 300px;
	column-gap: 20px;
}

.ta-bo-review {
	margin-bottom: 20px;
	break-inside: avoid;
}

/* Kadence draws a column's background and radius on its inner wrapper, so
   the border goes there too, or it shows as a square frame around a rounded card. */
.ta-bo-review > .kt-inside-inner-col,
.ta-bo-guarantee__box > .kt-inside-inner-col {
	border: 1px solid var(--ta-bo-line);
}

.ta-bo-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ta-bo-author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #eae7e2;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.ta-bo-stats {
		justify-content: flex-start;
	}
}

/* Guarantee --------------------------------------------------------------- */

.ta-bo-seal-panel {
	position: relative;
	overflow: hidden;
}

.ta-bo-seal-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 18px 18px;
	pointer-events: none;
}

.ta-bo-seal-panel > .kt-inside-inner-col {
	position: relative;
	z-index: 1;
}

.ta-bundle .ta-bo-seal {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: min(100%, 240px);
	aspect-ratio: 1;
	margin-inline: auto;
	border-radius: 50%;
	background: var(--ta-bo-primary);
	box-shadow: 0 30px 60px -20px rgba(52, 100, 224, 0.55);
	letter-spacing: 0.18em;
	text-align: center;
}

.ta-bo-seal::before {
	content: '';
	position: absolute;
	inset: 10px;
	border: 2px dashed rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	pointer-events: none;
}

.ta-bo-seal__num {
	font-family: var(--ta-bo-display);
	font-size: 76px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.9;
}

.ta-bo-seal__days {
	font-family: var(--ta-bo-display);
	font-size: 20px;
	letter-spacing: 0.06em;
}

.ta-bo-seal__bottom {
	margin-top: 4px;
}

.ta-bo-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.12);
	text-align: center;
}

.ta-bo-trust span {
	display: flex;
	flex-direction: column;
	padding: 16px 10px;
	background: var(--ta-bo-ink-2);
}

.ta-bo-trust strong {
	color: #fff;
	font-family: var(--ta-bo-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.ta-bundle .ta-bo-assurances > .kt-inside-inner-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.ta-bo-assurance strong {
	display: block;
	margin-bottom: 2px;
	color: var(--ta-bo-text);
	font-size: 15px;
}

/* FAQ --------------------------------------------------------------------- */

.ta-bo-faq {
	margin-bottom: 28px;
	border-top: 1px solid #dad7d2;
}

.ta-bo-faq .wp-block-details {
	margin: 0;
	border-bottom: 1px solid #dad7d2;
}

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

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

.ta-bo-faq summary::after {
	content: '+';
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #d0cdc8;
	border-radius: 50%;
	font-family: var(--ta-bo-sans);
	font-size: 18px;
	font-weight: 400;
}

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

.ta-bo-faq details p {
	margin: 0;
	padding: 0 50px 24px 0;
	color: var(--ta-bo-body);
	font-size: 16px;
	line-height: 1.65;
}

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

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

/* Final CTA --------------------------------------------------------------- */

@media (max-width: 1024px) {
	.ta-bo-cta__card .kb-buttons-wrap {
		justify-content: flex-start;
	}
}

/* ========================================================================
   Site header, dark skin (body.ta-bundle-page)
   The markup is the theme's own header.php; only colours change.
   ======================================================================== */

.ta-bundle-page .ta-header,
.ta-bundle-page .ta-header.ta-sticky-menu,
.ta-bundle-page .ta-header.menu-active {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background-color: rgba(16, 19, 29, 0.94);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
}

.ta-bundle-page .ta-header.ta-sticky-menu,
.ta-bundle-page .ta-header.menu-active {
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
}

.ta-bundle-page .ta-header.menu-active {
	background-color: var(--ta-bo-ink);
}

.ta-bundle-page .ta-header ul li a {
	color: var(--ta-bo-on-dark);
	font-family: var(--ta-bo-sans);
	font-weight: 500;
	transition: color 150ms ease;
}

.ta-bundle-page .ta-header ul li a:hover,
.ta-bundle-page .ta-header ul li.current-menu-item > a {
	color: #fff;
}

.ta-bundle-page .ta-header #menu-button {
	color: #fff;
}

.ta-bundle-page .ta-header .header-cart svg {
	fill: var(--ta-bo-on-dark);
}

.ta-bundle-page .ta-header .header-cart:hover svg {
	fill: #fff;
}

.ta-bundle-page .ta-header .header-cart > div {
	background-color: var(--ta-bo-primary);
	color: #fff;
}

.ta-bundle-page .ta-header .ta-btn-secondary {
	padding: 8px 20px !important;
	border-radius: 999px;
	background: #fff;
	color: var(--ta-bo-ink);
	font-weight: 600;
}

.ta-bundle-page .ta-header .ta-btn-secondary:hover {
	background: #ebe8e2;
	color: var(--ta-bo-ink) !important;
}

.ta-bundle-page .ta-header .dropdown_menu {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background-color: var(--ta-bo-ink-2) !important;
}

.ta-bundle-page .ta-header .dropdown_menu::after {
	border-bottom-color: var(--ta-bo-ink-2) !important;
}
