/**
 * AIWbd Variation Engine — Front-end Styles
 *
 * Naming convention: .aiwbd-* (scoped to avoid theme conflicts).
 * CSS custom properties are injected by PHP (AIWbd_VE_Options::css_vars).
 *
 * @package AIWbd_Variation_Engine
 * @version 1.0.0
 */

/* ─────────────────────────────────────────────────
   0. CUSTOM PROPERTY FALLBACKS
   Dark-theme defaults (overridden by PHP :root block).
   Light-mode overrides via .aiwbd-light-page selector.
───────────────────────────────────────────────── */
:root {
	/* Accent / brand */
	--aiwbd-accent:       #e53935;
	/* Dark theme defaults */
	--aiwbd-page-bg:      #0d0d0d;
	--aiwbd-card-bg:      #161616;
	--aiwbd-header-bg:    #1a1a1a;
	--aiwbd-grid-bg:      #111111;
	--aiwbd-text:         #f0f0f0;
	--aiwbd-border:       #2a2a2a;
	--aiwbd-muted:        #888888;
	--aiwbd-dim:          #444444;
	--aiwbd-green:        #4caf50;
	--aiwbd-grand-total:  #e53935;
	--aiwbd-clear-clr:    #555555;
	--aiwbd-clear-hvr:    #e53935;
	--aiwbd-btn-bg:       #e53935;
	--aiwbd-btn-text:     #ffffff;
	--aiwbd-badge-bg:     #e53935;
	--aiwbd-badge-text:   #ffffff;
	--aiwbd-right-col-bg: #ffffff;
	--aiwbd-radius:       10px;
	--aiwbd-radius-sm:    7px;
	--aiwbd-glow:         0 0 0 3px rgba(229, 57, 53, 0.3), 0 6px 20px rgba(229, 57, 53, 0.18);
	--aiwbd-transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────
   LIGHT THEME variable overrides
   Applied via .aiwbd-light-page on <body>
   OR via prefers-color-scheme:light for Auto mode
───────────────────────────────────────────────── */
body.aiwbd-light-page {
	--aiwbd-page-bg:      #f4f4f4;
	--aiwbd-card-bg:      #ffffff;
	--aiwbd-header-bg:    #f0f0f0;
	--aiwbd-grid-bg:      #f7f7f7;
	--aiwbd-text:         #1a1a1a;
	--aiwbd-border:       #ddd;
	--aiwbd-muted:        #666666;
	--aiwbd-dim:          #999999;
	--aiwbd-grand-total:  #c62828;
	--aiwbd-clear-clr:    #888888;
	--aiwbd-clear-hvr:    #c62828;
	--aiwbd-glow:         0 0 0 3px rgba(229, 57, 53, 0.2), 0 4px 14px rgba(229, 57, 53, 0.12);
}

@media (prefers-color-scheme: light) {
	body:not(.aiwbd-dark-page):not(.aiwbd-light-page) {
		--aiwbd-page-bg:      #f4f4f4;
		--aiwbd-card-bg:      #ffffff;
		--aiwbd-header-bg:    #f0f0f0;
		--aiwbd-grid-bg:      #f7f7f7;
		--aiwbd-text:         #1a1a1a;
		--aiwbd-border:       #ddd;
		--aiwbd-muted:        #666666;
		--aiwbd-dim:          #999999;
		--aiwbd-grand-total:  #c62828;
		--aiwbd-clear-clr:    #888888;
		--aiwbd-clear-hvr:    #c62828;
		--aiwbd-glow:         0 0 0 3px rgba(229, 57, 53, 0.2), 0 4px 14px rgba(229, 57, 53, 0.12);
	}
}

/* ─────────────────────────────────────────────────
   1. PAGE BACKGROUND — Dark / Auto / Light
───────────────────────────────────────────────── */

/* ── Helper mixin via data attribute on wrapper ── */
/* Dark: forced */
body.aiwbd-dark-page .aiwbd-product-article,
body.aiwbd-dark-page .site-main,
body.aiwbd-dark-page #primary,
body.aiwbd-dark-page #main,
body.aiwbd-dark-page #content,
body.aiwbd-dark-page .site-content,
body.aiwbd-dark-page .content-area,
body.aiwbd-dark-page article.product,
body.aiwbd-dark-page .entry-content,
body.aiwbd-dark-page .woocommerce:has(.aiwbd-ve-engine) {
	background: var(--aiwbd-page-bg) !important;
	color: var(--aiwbd-text) !important;
}

/* Light: forced */
body.aiwbd-light-page .aiwbd-product-article,
body.aiwbd-light-page .site-main,
body.aiwbd-light-page #primary,
body.aiwbd-light-page #main,
body.aiwbd-light-page #content,
body.aiwbd-light-page .site-content,
body.aiwbd-light-page .content-area,
body.aiwbd-light-page article.product,
body.aiwbd-light-page .entry-content,
body.aiwbd-light-page .woocommerce:has(.aiwbd-ve-engine) {
	background: var(--aiwbd-page-bg) !important;
	color: var(--aiwbd-text) !important;
}

/* Auto: device dark */
@media (prefers-color-scheme: dark) {
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page),
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #page,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .site,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .hfeed,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .site-content,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .content-area,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #content,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #primary,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #main,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .site-main,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-container,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-breadcrumbs-wrapper,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-breadcrumbs-outer-wrap,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #ast-breadcrumbs-wrapper,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .astra-breadcrumbs,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-page-title-bar,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-page-title-bar-wrap,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .woocommerce-breadcrumb,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-woocommerce-container,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .woocommerce,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) article.product,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .entry-content,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .entry-header,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .aiwbd-product-article {
		background: #0d0d0d !important;
		color: #f0f0f0 !important;
	}
}

/* Auto: device light */
@media (prefers-color-scheme: light) {
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page),
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #page,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .site,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .hfeed,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .site-content,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .content-area,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #content,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #primary,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #main,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .site-main,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-container,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-breadcrumbs-wrapper,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-breadcrumbs-outer-wrap,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) #ast-breadcrumbs-wrapper,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .astra-breadcrumbs,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-page-title-bar,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-page-title-bar-wrap,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .woocommerce-breadcrumb,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .ast-woocommerce-container,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .woocommerce,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) article.product,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .entry-content,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .entry-header,
	body:not(.aiwbd-light-page):not(.aiwbd-dark-page) .aiwbd-product-article {
		background: #f4f4f4 !important;
		color: #1a1a1a !important;
	}
}

/* ─────────────────────────────────────────────────
   2. ENGINE WRAPPER — two-column grid
───────────────────────────────────────────────── */
.aiwbd-product-article {
	padding: 20px 0 40px;
	margin: 0;
	min-height: 70vh;
}

.aiwbd-ve-engine {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 64px;
	padding: 0 20px;
	box-sizing: border-box;
	color: var(--aiwbd-text);
	font-family: inherit;
	animation: aiwbd-fade-in 0.35s ease both;
}

@keyframes aiwbd-fade-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Tablet & Mobile — replaced by comprehensive block at end of file */

/* ─────────────────────────────────────────────────
   3. LEFT COLUMN
───────────────────────────────────────────────── */
.aiwbd-col-left {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

/* Product image */
.aiwbd-img-wrap {
	width: 100%;
	border-radius: var(--aiwbd-radius);
	overflow: hidden;
	background: var(--aiwbd-card-bg);
	border: 1px solid var(--aiwbd-border);
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aiwbd-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
	will-change: transform;
}

.aiwbd-img-wrap:hover .aiwbd-main-img {
	transform: scale(1.04);
}

/* Identity bar */
.aiwbd-identity {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 14px;
}

.aiwbd-thumb {
	width: 50px;
	height: 50px;
	border-radius: var(--aiwbd-radius-sm);
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--aiwbd-border);
}

.aiwbd-identity-body { flex: 1; min-width: 0; }

.aiwbd-product-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--aiwbd-text);
	margin: 0 0 10px;
	line-height: 1.3;
	font-family: inherit;
}

/* Feature badges */
.aiwbd-features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aiwbd-feat-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.7rem;
	color: var(--aiwbd-muted);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--aiwbd-border);
	border-radius: 100px;
	padding: 3px 9px;
	transition: border-color var(--aiwbd-transition), color var(--aiwbd-transition);
	font-family: inherit;
}

.aiwbd-feat-pill:hover {
	border-color: var(--aiwbd-accent);
	color: var(--aiwbd-text);
}

.aiwbd-feat-icon {
	width: 13px;
	height: 13px;
	object-fit: contain;
	flex-shrink: 0;
}

.aiwbd-feat-dot { color: var(--aiwbd-green); font-size: 0.5rem; }

/* Description panel */
.aiwbd-desc-panel {
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 20px 22px;
}

.aiwbd-desc-eyebrow {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--aiwbd-muted);
	margin: 0 0 8px;
}

.aiwbd-rule {
	border: none;
	border-top: 1px solid var(--aiwbd-border);
	margin: 8px 0 14px;
}

/* Short and full description: preserve WP/WC formatting */
.aiwbd-short-desc,
.aiwbd-full-desc {
	font-size: 0.88rem;
	color: var(--aiwbd-muted);
	line-height: 1.8;
	font-family: inherit;
}

.aiwbd-short-desc { margin-bottom: 12px; }

/* Headings inside descriptions */
.aiwbd-short-desc h1, .aiwbd-full-desc h1 { font-size: 1.5rem; font-weight: 800; color: var(--aiwbd-text); margin: 16px 0 8px; line-height: 1.3; }
.aiwbd-short-desc h2, .aiwbd-full-desc h2 { font-size: 1.25rem; font-weight: 700; color: var(--aiwbd-text); margin: 14px 0 6px; line-height: 1.3; }
.aiwbd-short-desc h3, .aiwbd-full-desc h3 { font-size: 1.1rem; font-weight: 700; color: var(--aiwbd-text); margin: 12px 0 6px; }
.aiwbd-short-desc h4, .aiwbd-full-desc h4,
.aiwbd-short-desc h5, .aiwbd-full-desc h5,
.aiwbd-short-desc h6, .aiwbd-full-desc h6 { font-size: 0.95rem; font-weight: 700; color: var(--aiwbd-text); margin: 10px 0 4px; }

/* Paragraphs */
.aiwbd-short-desc p, .aiwbd-full-desc p {
	margin: 0 0 12px;
	color: var(--aiwbd-muted);
}
.aiwbd-short-desc p:last-child, .aiwbd-full-desc p:last-child { margin-bottom: 0; }

/* Bold and strong */
.aiwbd-short-desc strong, .aiwbd-full-desc strong,
.aiwbd-short-desc b, .aiwbd-full-desc b {
	font-weight: 700;
	color: var(--aiwbd-text);
}

/* Lists */
.aiwbd-short-desc ul, .aiwbd-full-desc ul,
.aiwbd-short-desc ol, .aiwbd-full-desc ol {
	padding-left: 20px;
	margin: 8px 0 12px;
	color: var(--aiwbd-muted);
}
.aiwbd-short-desc li, .aiwbd-full-desc li { margin-bottom: 4px; line-height: 1.7; }

/* Links */
.aiwbd-short-desc a, .aiwbd-full-desc a {
	color: var(--aiwbd-accent);
	text-decoration: none;
}
.aiwbd-short-desc a:hover, .aiwbd-full-desc a:hover { text-decoration: underline; }

/* Horizontal rules */
.aiwbd-short-desc hr, .aiwbd-full-desc hr {
	border: none;
	border-top: 1px solid var(--aiwbd-border);
	margin: 14px 0;
}

/* Block editor image alignment */
.aiwbd-short-desc img, .aiwbd-full-desc img {
	max-width: 100%;
	height: auto;
	border-radius: var(--aiwbd-radius-sm);
}

/* Tables in descriptions */
.aiwbd-short-desc table, .aiwbd-full-desc table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.84rem;
	margin: 10px 0;
}
.aiwbd-short-desc table th, .aiwbd-full-desc table th {
	background: rgba(255,255,255,0.06);
	padding: 8px 10px;
	text-align: left;
	font-weight: 700;
	color: var(--aiwbd-text);
	border: 1px solid var(--aiwbd-border);
}
.aiwbd-short-desc table td, .aiwbd-full-desc table td {
	padding: 7px 10px;
	border: 1px solid var(--aiwbd-border);
	color: var(--aiwbd-muted);
}

/* Emoji / special chars (like ✅ 🚀) */
.aiwbd-short-desc, .aiwbd-full-desc {
	word-break: break-word;
	overflow-wrap: break-word;
}

/* ─────────────────────────────────────────────────
   4. RIGHT COLUMN — sticky on desktop
───────────────────────────────────────────────── */
.aiwbd-col-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	position: sticky;
	top: 68px;
	align-self: start;
	background: var(--aiwbd-right-col-bg, #ffffff);
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
}



/* ─────────────────────────────────────────────────
   5. PANEL BASE
───────────────────────────────────────────────── */
.aiwbd-panel {
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	background: var(--aiwbd-card-bg);
}

.aiwbd-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
}

.aiwbd-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--aiwbd-accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 900;
	border-radius: 50%;
	flex-shrink: 0;
}

.aiwbd-panel-label {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aiwbd-text);
}

.aiwbd-lock-icon { color: var(--aiwbd-accent); flex-shrink: 0; }

/* ─────────────────────────────────────────────────
   6. VARIATION CARDS GRID — full-width, zero gaps
───────────────────────────────────────────────── */
.aiwbd-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	padding: 14px;
	width: 100%;
	box-sizing: border-box;
}



/* Single card */
.aiwbd-card {
	position: relative;
	border: 1.5px solid var(--aiwbd-border);
	border-radius: 12px;
	padding: 36px 12px 12px 12px; /* top padding for note badge */
	cursor: pointer;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	transition:
		border-color var(--aiwbd-transition),
		background var(--aiwbd-transition),
		transform var(--aiwbd-transition),
		box-shadow var(--aiwbd-transition);
	box-sizing: border-box;
	outline: none;
	overflow: hidden;
}

.aiwbd-card:not(.aiwbd-card--oos):hover {
	border-color: var(--aiwbd-accent);
	box-shadow: 0 4px 16px rgba(229,57,53,.15);
}

.aiwbd-card:focus-visible {
	box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.5);
}

.aiwbd-card.aiwbd-card--selected {
	border-color: var(--aiwbd-card-sel-border, var(--aiwbd-accent)) !important;
	border-width: 2px !important;
	background: var(--aiwbd-card-sel-bg, rgba(229,57,53,.05)) !important;
	box-shadow: 0 4px 20px rgba(229,57,53,.2);
}

/* ── Checkmark (top-right corner triangle) ── */
.aiwbd-checkmark {
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border-top: 32px solid var(--aiwbd-accent);
	border-left: 32px solid transparent;
	color: transparent;
	opacity: 0;
	transition: opacity var(--aiwbd-transition);
	pointer-events: none;
}
.aiwbd-checkmark::after {
	content: "✓";
	position: absolute;
	top: -28px;
	right: 2px;
	font-size: 0.65rem;
	font-weight: 900;
	color: #fff;
}

.aiwbd-card.aiwbd-card--selected .aiwbd-checkmark {
	opacity: 1;
}

/* ── Note badge — clickable pill, top-left ── */
.aiwbd-note-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px 3px 6px;
	border-radius: 100px;
	font-size: 0.68rem;
	font-weight: 700;
	cursor: pointer;
	border: none;
	outline: none;
	white-space: nowrap;
	max-width: calc(100% - 40px);
	transition: filter .2s, transform .15s;
	z-index: 2;
}
.aiwbd-note-badge:hover {
	filter: brightness(1.12);
	transform: scale(1.04);
}
.aiwbd-note-badge-i {
	font-style: normal;
	font-size: 0.75rem;
	opacity: 0.85;
}
.aiwbd-note-badge-text { font-weight: 700; }
.aiwbd-note-badge-arrow { font-size: 0.6rem; opacity: 0.7; }

/* ── Sale ribbon ── */
.aiwbd-sale-tag {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--aiwbd-accent);
	color: #fff;
	font-size: 0.58rem;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 0 12px 0 8px;
	letter-spacing: 0.06em;
}

/* ── Card icon ── */
.aiwbd-card-icon-wrap {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	flex-shrink: 0;
}

.aiwbd-card-icon {
	max-width: 36px;
	max-height: 36px;
	width: 36px;
	height: 36px;
	object-fit: contain;
	display: block;
	border: none !important;   /* hide broken-image border from themes */
	background: transparent;
	border-radius: 4px;
}

/* Hide broken image indicator — onerror in template hides wrapper anyway */
.aiwbd-card-icon:not([src]),
.aiwbd-card-icon[src=""] {
	display: none;
}

/* ── Card text ── */
.aiwbd-card-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--aiwbd-card-label-clr, var(--aiwbd-text));
	line-height: 1.3;
	padding-right: 8px;
	flex: 1;
}

.aiwbd-card-duration {
	font-size: 0.68rem;
	font-weight: 600;
	opacity: 0.7;
}

/* ── Price row — pushed to bottom ── */
.aiwbd-card-price-wrap {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
}

.aiwbd-card-regular {
	font-size: 0.72rem;
	color: var(--aiwbd-dim);
	text-decoration: line-through;
}

.aiwbd-card-price {
	font-size: 1rem;
	font-weight: 800;
	color: var(--aiwbd-card-price-clr, var(--aiwbd-grand-total));
}

.aiwbd-oos-label {
	font-size: 0.68rem;
	color: var(--aiwbd-dim);
	font-style: italic;
	margin-top: 4px;
}

.aiwbd-card--oos {
	opacity: 0.45;
	cursor: not-allowed;
	filter: grayscale(0.4);
}

/* ═══════════════════════════════════
   NOTE TOOLTIP MODAL
═══════════════════════════════════ */

body.aiwbd-modal-open { overflow: hidden; }

/* ═══════════════════════════════════════════
   NOTE MODAL
═══════════════════════════════════════════ */

.aiwbd-note-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, .72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.aiwbd-note-modal {
	position: relative;
	background: #1a1a1a;
	color: #f0f0f0;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 18px;
	width: 100%;
	max-width: 440px;
	max-height: 82vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
	animation: aiwbd-modal-pop .22s cubic-bezier(.34,1.4,.64,1) both;
	isolation: isolate;
}

/* Block 3rd-party injections (Rank Math etc.) */
.aiwbd-note-modal > *:not(.aiwbd-modal-topbar):not(.aiwbd-modal-body):not(.aiwbd-modal-footer) {
	display: none !important;
}

@keyframes aiwbd-modal-pop {
	from { transform: scale(.9) translateY(8px); opacity: 0; }
	to   { transform: scale(1) translateY(0);    opacity: 1; }
}

/* ── Top bar ── */
.aiwbd-modal-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 16px;
	border-bottom: 1px solid rgba(255,255,255,.07);
	flex-shrink: 0;
}

.aiwbd-modal-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.aiwbd-modal-icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 8px;
	background: rgba(255,255,255,.07);
	padding: 4px;
	flex-shrink: 0;
}

.aiwbd-modal-title {
	font-size: 1rem;
	font-weight: 700;
	color: #f0f0f0;
	margin: 0;
	line-height: 1.3;
	word-break: break-word;
}

/* ── Close (X) button — top right ── */
.aiwbd-modal-close {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #ccc;
	flex-shrink: 0;
	transition: background .15s, color .15s, transform .12s;
	padding: 0;
	margin: 0;
}
.aiwbd-modal-close:hover {
	background: rgba(229,57,53,.25);
	border-color: rgba(229,57,53,.4);
	color: #ff6b6b;
	transform: rotate(90deg);
}
.aiwbd-modal-close svg {
	width: 14px !important;
	height: 14px !important;
	display: block;
}

/* ── Body ── */
.aiwbd-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px;
	font-size: 0.875rem;
	line-height: 1.65;
	color: #ccc;
}
.aiwbd-modal-body::-webkit-scrollbar { width: 4px; }
.aiwbd-modal-body::-webkit-scrollbar-track { background: transparent; }
.aiwbd-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.aiwbd-modal-body p { margin: 0 0 10px; }
.aiwbd-modal-body p:last-child { margin-bottom: 0; }
.aiwbd-modal-body ul,
.aiwbd-modal-body ol { padding-left: 20px; margin: 0 0 10px; }
.aiwbd-modal-body li { margin-bottom: 5px; }
.aiwbd-modal-body strong { color: #f0f0f0; font-weight: 600; }
.aiwbd-modal-body a { color: #e53935; text-decoration: none; }
.aiwbd-modal-body a:hover { text-decoration: underline; }

/* ── Footer ── */
.aiwbd-modal-footer {
	padding: 14px 20px 18px;
	border-top: 1px solid rgba(255,255,255,.07);
	flex-shrink: 0;
}

.aiwbd-modal-close-btn {
	width: 100%;
	padding: 11px 16px;
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.1);
	font-size: 0.875rem;
	font-weight: 600;
	color: #ccc;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
	letter-spacing: .02em;
}
.aiwbd-modal-close-btn:hover {
	background: rgba(229,57,53,.15);
	border-color: rgba(229,57,53,.35);
	color: #fff;
}

/* ─────────────────────────────────────────────────
   7. QUANTITY CONTROLS — trash ↔ minus logic
───────────────────────────────────────────────── */
.aiwbd-qty-row {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 8px;
	justify-content: center;
	width: 100%;
	animation: aiwbd-qty-in 0.2s ease both;
}

@keyframes aiwbd-qty-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.aiwbd-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid var(--aiwbd-qty-border, var(--aiwbd-border));
	background: var(--aiwbd-qty-bg, rgba(255,255,255,.06));
	color: var(--aiwbd-qty-text, var(--aiwbd-text));
	cursor: pointer;
	transition: background var(--aiwbd-transition), border-color var(--aiwbd-transition), transform 0.12s;
	padding: 0;
	flex-shrink: 0;
	line-height: 1;
}

.aiwbd-qty-btn:hover {
	background: var(--aiwbd-accent);
	border-color: var(--aiwbd-accent);
	color: #fff;
	transform: scale(1.14);
}

.aiwbd-qty-num {
	min-width: 22px;
	text-align: center;
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--aiwbd-text);
	font-family: inherit;
}

/* ─────────────────────────────────────────────────
   9. PAYMENT PANEL
───────────────────────────────────────────────── */
.aiwbd-pay-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ── PPOM / third-party field wrapper ────────────────────────────
   Fields captured from woocommerce_before_add_to_cart_button
   (e.g. PPOM WhatsApp number) are styled here.
──────────────────────────────────────────────────────────────── */
.aiwbd-third-party-fields { width: 100%; }

/* PPOM labels */
.aiwbd-third-party-fields .nm-field-label,
.aiwbd-third-party-fields .nm_product_custom_field label,
.aiwbd-third-party-fields p label,
.aiwbd-third-party-fields > label {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--aiwbd-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 5px;
}

/* PPOM heading text (e.g. "Please Your WhatsApps Number") */
.aiwbd-third-party-fields .nm-field-heading,
.aiwbd-third-party-fields h4,
.aiwbd-third-party-fields h5 {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--aiwbd-muted);
	margin: 0 0 6px;
}

.aiwbd-third-party-fields,
.aiwbd-third-party-fields * { color: var(--aiwbd-text); }

.aiwbd-third-party-fields input,
.aiwbd-third-party-fields select,
.aiwbd-third-party-fields textarea {
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid var(--aiwbd-border) !important;
	color: var(--aiwbd-text) !important;
	border-radius: var(--aiwbd-radius-sm) !important;
	padding: 8px 10px !important;
	width: 100%;
	box-sizing: border-box;
}

.aiwbd-third-party-fields label {
	font-size: 0.78rem;
	color: var(--aiwbd-muted);
	display: block;
	margin-bottom: 4px;
}

/* Order button */
.aiwbd-order-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 16px;
	border: none;
	border-radius: var(--aiwbd-radius-sm);
	font-size: 0.9rem;
	font-weight: 800;
	cursor: pointer;
	transition: filter var(--aiwbd-transition), transform 0.15s, opacity var(--aiwbd-transition);
	letter-spacing: 0.02em;
	font-family: inherit;
}

.aiwbd-order-btn:not([disabled]):hover {
	filter: brightness(1.12);
	transform: translateY(-2px);
}

.aiwbd-order-btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.aiwbd-order-btn.aiwbd-loading {
	opacity: 0.7;
	cursor: wait;
	animation: aiwbd-btn-pulse 0.9s ease-in-out infinite;
}

@keyframes aiwbd-btn-pulse {
	0%, 100% { opacity: 0.7; }
	50%       { opacity: 0.5; }
}

/* Mobile sticky order button */


/* Payment chips */
.aiwbd-pay-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aiwbd-pay-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 11px;
	border-radius: var(--aiwbd-radius-sm);
	font-size: 0.7rem;
	font-weight: 800;
	color: #fff;
	min-width: 48px;
	min-height: 26px;
}

.aiwbd-pay-chip img { max-height: 20px; max-width: 56px; object-fit: contain; }
.aiwbd-bkash  { background: #e2136e; }
.aiwbd-nagad  { background: #f05122; }
.aiwbd-rocket { background: #8b008b; }

.aiwbd-ssl-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 0.7rem;
	color: var(--aiwbd-dim);
	margin: 0;
}

/* Guest block */
.aiwbd-pay-guest {
	align-items: center;
	text-align: center;
}

.aiwbd-login-orb {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(229, 57, 53, 0.1);
	border: 1px solid rgba(229, 57, 53, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	color: var(--aiwbd-accent);
	margin: 4px auto;
}

.aiwbd-login-heading {
	font-size: 1rem;
	font-weight: 700;
	color: var(--aiwbd-text);
	margin: 0;
}

.aiwbd-login-sub {
	font-size: 0.8rem;
	color: var(--aiwbd-muted);
	max-width: 260px;
	margin: 0;
}

.aiwbd-btn-login {
	display: block;
	width: 100%;
	padding: 12px;
	text-decoration: none;
	border-radius: var(--aiwbd-radius-sm);
	font-size: 0.88rem;
	font-weight: 700;
	text-align: center;
	transition: filter var(--aiwbd-transition);
}

.aiwbd-btn-login:hover { filter: brightness(1.12); }

.aiwbd-btn-register {
	display: block;
	width: 100%;
	padding: 11px;
	background: transparent;
	color: var(--aiwbd-text);
	text-decoration: none;
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius-sm);
	font-size: 0.88rem;
	font-weight: 600;
	text-align: center;
	transition: border-color var(--aiwbd-transition), background var(--aiwbd-transition);
}

.aiwbd-btn-register:hover {
	border-color: var(--aiwbd-accent);
	background: rgba(229, 57, 53, 0.07);
	color: var(--aiwbd-text);
}

/* ─────────────────────────────────────────────────
   10. TOAST NOTIFICATION
───────────────────────────────────────────────── */
.aiwbd-toast {
	position: fixed;
	bottom: 22px;
	right: 20px;
	padding: 11px 18px;
	border-radius: 8px;
	font-size: 0.84rem;
	font-weight: 700;
	color: #fff;
	background: #1c1c1c;
	border: 1px solid var(--aiwbd-border);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
	z-index: 100001;
	opacity: 0;
	transform: translateY(14px) scale(0.95);
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
	max-width: 300px;
}

.aiwbd-toast.aiwbd-toast--visible    { opacity: 1; transform: translateY(0) scale(1); }
.aiwbd-toast.aiwbd-toast--success    { background: #1b5e20; border-color: #4caf50; }
.aiwbd-toast.aiwbd-toast--error      { background: #7f0000; border-color: var(--aiwbd-accent); }

/* ─────────────────────────────────────────────────
   11. HIDE DEFAULT WC ELEMENTS (safety net)
   Since we own the template via engine-wrapper.php,
   these rules are safety-net only. They suppress any
   stray WC output if a theme overrides our template.
───────────────────────────────────────────────── */
.single-product .woocommerce-product-gallery,
.single-product div.product > .summary.entry-summary,
.single-product .product_meta,
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .up-sells.upsells,
.single-product .woocommerce-product-rating,
.single-product form.cart,
.single-product form.variations_form,
.single-product table.variations,
.single-product .single_variation_wrap,
.single-product .woocommerce-variation-add-to-cart,
.single-product .variations_form .variations,
.single-product .cart .quantity,
.single-product .single_add_to_cart_button { display: none !important; }

/* Dark background for the WC content area */
/* Dark page bg handled by .aiwbd-dark-page class and prefers-color-scheme above */


/* ─────────────────────────────────────────────────
   7. ORDER SUMMARY (redesigned — Image 2 style)
───────────────────────────────────────────────── */

/* Panel header — step num + label left, counter right */
.aiwbd-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.aiwbd-panel-head-left { display: flex; align-items: center; gap: 10px; }

/* Selected item counter badge */
.aiwbd-selected-counter {
	background: #fff3e0;
	color: #e65100;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 100px;
	white-space: nowrap;
}

/* Summary section */
.aiwbd-summary {
	padding: 0 16px 16px;
	animation: aiwbd-fade-in 0.2s ease both;
}

/* Summary header: "Selected Packages" + "Clear All" */
.aiwbd-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.aiwbd-summary-heading {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--aiwbd-text);
	margin: 0;
}

.aiwbd-clear-all {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.78rem;
	padding: 0;
	color: var(--aiwbd-clear-clr);
	transition: color .2s;
	font-weight: 600;
}
.aiwbd-clear-all:hover { color: var(--aiwbd-clear-hvr) !important; }

/* Summary rows list */
.aiwbd-sum-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aiwbd-sum-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--aiwbd-border);
	border-radius: 8px;
	background: var(--aiwbd-card-bg);
}

.aiwbd-sum-row-icon { flex-shrink: 0; width: 28px; height: 28px; }
.aiwbd-sum-icon { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.aiwbd-sum-icon-placeholder { display: block; width: 28px; height: 28px; background: rgba(255,255,255,.07); border-radius: 4px; }

.aiwbd-sum-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aiwbd-sum-row-label { font-size: 0.84rem; font-weight: 600; color: var(--aiwbd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiwbd-sum-row-meta { font-size: 0.74rem; color: var(--aiwbd-muted); }

.aiwbd-sum-row-total { font-size: 0.9rem; font-weight: 700; color: var(--aiwbd-grand-total); white-space: nowrap; }

.aiwbd-sum-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--aiwbd-muted);
	font-size: 1rem;
	line-height: 1;
	padding: 2px 4px;
	border-radius: 4px;
	transition: color .15s, background .15s;
	flex-shrink: 0;
}
.aiwbd-sum-remove:hover { color: #e53935; background: rgba(229,57,53,.1); }

/* Subtotal row */
.aiwbd-sum-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 0;
	border-top: 1px solid var(--aiwbd-border);
}
.aiwbd-sum-total-label { font-size: 0.92rem; font-weight: 600; color: var(--aiwbd-text); }
.aiwbd-grand-val { font-size: 1.1rem; font-weight: 800; }
/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ────────────────────────────────────────────────────────────
   1280px+  Large desktop   — 2 col, full sidebar sticky
   1024px   Desktop         — 2 col, slightly tighter
    960px   Small desktop   — 2 col, reduced gaps
    768px   Tablet          — 2 col (stacked on very small tablet)
    640px   Large phone     — 1 col stacked
    480px   Phone           — 1 col, compact
    360px   Small phone     — 1 col, minimal padding
═══════════════════════════════════════════════════════════════ */

/* ─── 1280px Large desktop — give left column slightly more space ─── */
@media (min-width: 1280px) {
    .aiwbd-ve-engine {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
        gap: 32px;
        padding: 0 32px;
    }
    .aiwbd-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ─── 1024px Desktop ─── */
@media (max-width: 1024px) {
    .aiwbd-ve-engine {
        gap: 20px;
        padding: 0 16px;
    }
    .aiwbd-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
        padding: 12px;
    }
}

/* ─── 960px Small desktop / large tablet landscape ─── */
@media (max-width: 960px) {
    .aiwbd-ve-engine {
        gap: 16px;
        padding: 0 14px;
        margin-bottom: 48px;
    }
    .aiwbd-col-right {
        top: 56px; /* smaller sticky offset */
    }
    .aiwbd-identity {
        padding: 12px;
    }
    .aiwbd-main-img {
        max-height: 280px;
    }
}

/* ─── 768px Tablet portrait ─── */
@media (max-width: 768px) {
    /* Engine: single column, right col FIRST (packages), left col SECOND (description) */
    .aiwbd-ve-engine {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
        margin-bottom: 80px; /* room for sticky btn */
    }

    /* RIGHT column (packages + payment) → comes first on mobile */
    .aiwbd-col-right {
        order: 1;
        position: static;
        border-radius: 12px;
    }

    /* LEFT column (image + description) → comes second on mobile */
    .aiwbd-col-left {
        order: 2;
    }

    /* Image: shorter aspect on tablet */
    .aiwbd-img-wrap {
        aspect-ratio: 16 / 7;
    }
    .aiwbd-main-img {
        max-height: 240px;
    }

    /* Identity row: horizontal layout */
    .aiwbd-identity {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
    }
    .aiwbd-thumb {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
    .aiwbd-product-title {
        font-size: 1rem;
    }

    /* Cards: 2 columns on tablet */
    .aiwbd-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }

    /* Features row: wrap nicely */
    .aiwbd-features {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Order button: fixed bottom bar */
    .aiwbd-order-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        z-index: 9998;
        padding: 16px 20px;
        font-size: 1rem;
        box-shadow: 0 -4px 24px rgba(0,0,0,.35);
    }

    /* Summary rows compact */
    .aiwbd-sum-row {
        padding: 8px 10px;
        gap: 8px;
    }
    .aiwbd-sum-row-icon { width: 24px; height: 24px; }
    .aiwbd-sum-icon { width: 24px; height: 24px; }
    .aiwbd-sum-row-label { font-size: 0.8rem; }
    .aiwbd-sum-row-meta  { font-size: 0.7rem; }
    .aiwbd-sum-row-total { font-size: 0.85rem; }

    /* Modal: full width on tablet */
    .aiwbd-note-modal {
        max-width: 95vw;
    }
    .aiwbd-modal-topbar { padding: 16px 16px 14px; }
    .aiwbd-modal-body   { padding: 14px 16px; }
    .aiwbd-modal-footer { padding: 10px 16px 14px; }

    /* Panel head smaller */
    .aiwbd-panel-head {
        padding: 10px 14px;
    }
}

/* ─── 640px Large phone ─── */
@media (max-width: 640px) {
    .aiwbd-ve-engine {
        padding: 0 10px;
        gap: 14px;
        margin-bottom: 72px;
    }

    /* Cards: still 2 col but smaller */
    .aiwbd-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .aiwbd-card {
        padding: 32px 10px 10px;
        min-height: 100px;
        border-radius: 10px;
    }
    .aiwbd-card-label    { font-size: 0.78rem; }
    .aiwbd-card-price    { font-size: 0.9rem; }
    .aiwbd-card-icon-wrap { width: 28px; height: 28px; }
    .aiwbd-card-icon     { max-width: 28px; max-height: 28px; }

    /* Note badge smaller */
    .aiwbd-note-badge {
        font-size: 0.6rem;
        padding: 2px 7px 2px 5px;
        gap: 3px;
    }

    /* Identity layout */
    .aiwbd-identity {
        padding: 10px 12px;
    }
    .aiwbd-product-title { font-size: 0.95rem; }

    /* Description panel */
    .aiwbd-desc-panel { padding: 12px 14px; }
    .aiwbd-short-desc, .aiwbd-full-desc { font-size: 0.82rem; }

    /* Summary */
    .aiwbd-summary { padding: 0 12px 12px; }
    .aiwbd-summary-heading { font-size: 0.78rem; }
    .aiwbd-sum-total-label { font-size: 0.85rem; }
    .aiwbd-grand-val       { font-size: 1rem; }

    /* Pay chips wrap */
    .aiwbd-pay-icons { gap: 5px; }
    .aiwbd-pay-chip  { padding: 4px 9px; font-size: 0.65rem; }

    /* Panel header */
    .aiwbd-panel-label { font-size: 0.65rem; letter-spacing: 0.08em; }
    .aiwbd-step-num    { width: 20px; height: 20px; font-size: 0.65rem; }

    /* Selected counter */
    .aiwbd-selected-counter { font-size: 0.66rem; padding: 2px 8px; }

    /* Qty controls */
    .aiwbd-qty-btn  { width: 24px; height: 24px; font-size: 0.75rem; }
    .aiwbd-qty-num  { font-size: 0.82rem; min-width: 18px; }

    /* Payment panel body */
    .aiwbd-pay-body { padding: 14px; }

    /* SSL note */
    .aiwbd-ssl-note { font-size: 0.65rem; }
}

/* ─── 480px Standard phone ─── */
@media (max-width: 480px) {
    .aiwbd-ve-engine {
        padding: 0 8px;
        gap: 12px;
    }

    /* Image shorter */
    .aiwbd-img-wrap   { aspect-ratio: 4 / 3; }
    .aiwbd-main-img   { max-height: 200px; }

    /* Cards grid */
    .aiwbd-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        padding: 9px;
    }

    .aiwbd-card { padding: 30px 9px 9px; border-radius: 9px; }
    .aiwbd-card-label  { font-size: 0.75rem; }
    .aiwbd-card-price  { font-size: 0.85rem; }

    /* Order button */
    .aiwbd-order-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    /* Features: hide on very small if overflows */
    .aiwbd-feat-pill { padding: 3px 8px; font-size: 0.64rem; }

    /* Modal: bottom sheet on mobile */
    .aiwbd-note-modal {
        max-width: 100vw;
        width: 100%;
        margin: 0;
        border-radius: 18px 18px 0 0;
        max-height: 75vh;
        animation: aiwbd-modal-slideup .25s cubic-bezier(.32,1,.42,1) both;
    }
    .aiwbd-note-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    @keyframes aiwbd-modal-slideup {
        from { transform: translateY(100%); opacity: .6; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    /* Desc panel */
    .aiwbd-desc-panel { padding: 10px 12px; }

    /* Summary total row */
    .aiwbd-sum-total-row { padding: 10px 0 0; }
    .aiwbd-sum-total-label { font-size: 0.8rem; }
    .aiwbd-grand-val { font-size: 0.95rem; }
}

/* ─── 360px Very small phone ─── */
@media (max-width: 360px) {
    .aiwbd-ve-engine { padding: 0 6px; gap: 10px; }

    .aiwbd-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 7px;
    }

    .aiwbd-card {
        padding: 28px 8px 8px;
        min-height: 90px;
        border-radius: 8px;
    }

    .aiwbd-card-label  { font-size: 0.72rem; }
    .aiwbd-card-price  { font-size: 0.8rem; }
    .aiwbd-note-badge  { font-size: 0.56rem; padding: 2px 5px; gap: 2px; }
    .aiwbd-note-badge-arrow { display: none; }

    .aiwbd-identity { padding: 8px 10px; }
    .aiwbd-product-title { font-size: 0.88rem; }
    .aiwbd-thumb { width: 36px; height: 36px; }

    .aiwbd-panel-head { padding: 8px 12px; }
    .aiwbd-panel-label { font-size: 0.6rem; }
    .aiwbd-step-num { width: 18px; height: 18px; font-size: 0.6rem; }

    .aiwbd-order-btn {
        padding: 13px 14px;
        font-size: 0.88rem;
    }

    .aiwbd-pay-chip  { padding: 3px 7px; font-size: 0.62rem; min-width: 40px; }
    .aiwbd-sum-row   { padding: 7px 8px; gap: 6px; }
}

/* ─── Touch device: remove hover transform flicker ─── */
@media (hover: none) {
    .aiwbd-card:not(.aiwbd-card--oos):hover {
        transform: none;
        box-shadow: none;
    }
    .aiwbd-note-badge:hover {
        transform: none;
        filter: none;
    }
}

/* ─── Print ─── */
@media print {
    .aiwbd-col-right,
    .aiwbd-order-btn,
    .aiwbd-pay-icons,
    .aiwbd-ssl-note { display: none !important; }
    .aiwbd-ve-engine { grid-template-columns: 1fr; }
    .aiwbd-col-left  { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════
   LIGHT MODE — Full UI override
   Triggered by: body.aiwbd-light-page
   OR wrapper:   .woocommerce.aiwbd-theme-light
   (two selectors = dual fallback for all browsers)
═══════════════════════════════════════════════════ */

/* ── Page shells ─────────────────────────────── */
body.aiwbd-light-page .aiwbd-product-article,
body.aiwbd-light-page .woocommerce,
.woocommerce.aiwbd-theme-light,
.woocommerce.aiwbd-theme-light .aiwbd-product-article {
	background: #f4f4f4 !important;
	color: #1a1a1a !important;
}

/* ── CSS vars override (for auto-themed elements) */
body.aiwbd-light-page,
.woocommerce.aiwbd-theme-light {
	--aiwbd-page-bg:          #f4f4f4;
	--aiwbd-card-bg:          #ffffff;
	--aiwbd-header-bg:        #ebebeb;
	--aiwbd-grid-bg:          #f0f0f0;
	--aiwbd-text:             #1a1a1a;
	--aiwbd-border:           #d0d0d0;
	--aiwbd-muted:            #777777;
	--aiwbd-dim:              #aaaaaa;
	--aiwbd-grand-total:      #c62828;
	--aiwbd-clear-clr:        #888888;
	--aiwbd-clear-hvr:        #c62828;
	--aiwbd-glow:             0 0 0 3px rgba(229,57,53,.18), 0 4px 14px rgba(229,57,53,.1);
}

/* ── Engine text ─────────────────────────────── */
body.aiwbd-light-page .aiwbd-ve-engine,
.woocommerce.aiwbd-theme-light .aiwbd-ve-engine {
	color: #1a1a1a;
}

/* ── Panel header ────────────────────────────── */
body.aiwbd-light-page .aiwbd-panel-head,
.woocommerce.aiwbd-theme-light .aiwbd-panel-head {
	background: #ebebeb !important;
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-panel-label,
body.aiwbd-light-page .aiwbd-step-num,
.woocommerce.aiwbd-theme-light .aiwbd-panel-label,
.woocommerce.aiwbd-theme-light .aiwbd-step-num {
	color: #1a1a1a !important;
}

/* ── Cards grid ─────────────────────────────── */
body.aiwbd-light-page .aiwbd-cards-grid,
.woocommerce.aiwbd-theme-light .aiwbd-cards-grid {
	background: #f0f0f0 !important;
}
body.aiwbd-light-page .aiwbd-card,
.woocommerce.aiwbd-theme-light .aiwbd-card {
	background: #ffffff !important;
	border-color: #d0d0d0 !important;
	color: #1a1a1a !important;
}
body.aiwbd-light-page .aiwbd-card:hover,
.woocommerce.aiwbd-theme-light .aiwbd-card:hover {
	border-color: #bbb !important;
	box-shadow: 0 2px 12px rgba(0,0,0,.1) !important;
}
body.aiwbd-light-page .aiwbd-card-label,
.woocommerce.aiwbd-theme-light .aiwbd-card-label {
	color: var(--aiwbd-card-label-clr, #1a1a1a) !important;
}
body.aiwbd-light-page .aiwbd-card-sublabel,
.woocommerce.aiwbd-theme-light .aiwbd-card-sublabel {
	color: #666 !important;
}

/* ── Qty controls ────────────────────────────── */
body.aiwbd-light-page .aiwbd-qty-btn,
.woocommerce.aiwbd-theme-light .aiwbd-qty-btn {
	background: var(--aiwbd-qty-bg, #f0f0f0) !important;
	border-color: var(--aiwbd-qty-border, #ccc) !important;
	color: var(--aiwbd-qty-text, #333) !important;
}
body.aiwbd-light-page .aiwbd-qty-num,
.woocommerce.aiwbd-theme-light .aiwbd-qty-num {
	color: #1a1a1a !important;
}

/* ── Summary panel ───────────────────────────── */
body.aiwbd-light-page .aiwbd-col-right,
.woocommerce.aiwbd-theme-light .aiwbd-col-right {
	background: var(--aiwbd-right-col-bg, #ffffff) !important;
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-summary,
.woocommerce.aiwbd-theme-light .aiwbd-summary {
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-sum-row,
.woocommerce.aiwbd-theme-light .aiwbd-sum-row {
	border-bottom-color: #e8e8e8 !important;
}
body.aiwbd-light-page .aiwbd-sum-row-label,
.woocommerce.aiwbd-theme-light .aiwbd-sum-row-label {
	color: #1a1a1a !important;
}
body.aiwbd-light-page .aiwbd-sum-row-meta,
.woocommerce.aiwbd-theme-light .aiwbd-sum-row-meta {
	color: #666 !important;
}
body.aiwbd-light-page .aiwbd-sum-row-total,
.woocommerce.aiwbd-theme-light .aiwbd-sum-row-total {
	color: #1a1a1a !important;
}
body.aiwbd-light-page .aiwbd-sum-total-label,
.woocommerce.aiwbd-theme-light .aiwbd-sum-total-label {
	color: #444 !important;
}
body.aiwbd-light-page .aiwbd-sum-remove,
.woocommerce.aiwbd-theme-light .aiwbd-sum-remove {
	color: #999 !important;
}
body.aiwbd-light-page .aiwbd-sum-remove:hover,
.woocommerce.aiwbd-theme-light .aiwbd-sum-remove:hover {
	color: #c62828 !important;
}
body.aiwbd-light-page .aiwbd-summary-heading,
.woocommerce.aiwbd-theme-light .aiwbd-summary-heading {
	color: #444 !important;
	border-bottom-color: #d0d0d0 !important;
}

/* ── Right column pay area ───────────────────── */
body.aiwbd-light-page .aiwbd-pay-body,
.woocommerce.aiwbd-theme-light .aiwbd-pay-body {
	border-top-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-pay-label,
.woocommerce.aiwbd-theme-light .aiwbd-pay-label {
	color: #444 !important;
}
body.aiwbd-light-page .aiwbd-pay-chip,
.woocommerce.aiwbd-theme-light .aiwbd-pay-chip {
	background: #f0f0f0 !important;
	border-color: #d0d0d0 !important;
	color: #333 !important;
}
body.aiwbd-light-page .aiwbd-ssl-note,
.woocommerce.aiwbd-theme-light .aiwbd-ssl-note {
	color: #888 !important;
}
body.aiwbd-light-page .aiwbd-whatsapp-field,
.woocommerce.aiwbd-theme-light .aiwbd-whatsapp-field {
	background: #f8f8f8 !important;
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-whatsapp-field input,
.woocommerce.aiwbd-theme-light .aiwbd-whatsapp-field input {
	background: transparent !important;
	color: #1a1a1a !important;
}
body.aiwbd-light-page .aiwbd-whatsapp-label,
.woocommerce.aiwbd-theme-light .aiwbd-whatsapp-label {
	color: #444 !important;
}

/* ── Identity / description panels ──────────── */
body.aiwbd-light-page .aiwbd-identity,
.woocommerce.aiwbd-theme-light .aiwbd-identity {
	background: #ebebeb !important;
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-product-title,
.woocommerce.aiwbd-theme-light .aiwbd-product-title {
	color: #1a1a1a !important;
}
body.aiwbd-light-page .aiwbd-desc-panel,
.woocommerce.aiwbd-theme-light .aiwbd-desc-panel {
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-short-desc,
body.aiwbd-light-page .aiwbd-full-desc,
.woocommerce.aiwbd-theme-light .aiwbd-short-desc,
.woocommerce.aiwbd-theme-light .aiwbd-full-desc {
	color: #333 !important;
}
body.aiwbd-light-page .aiwbd-features,
.woocommerce.aiwbd-theme-light .aiwbd-features {
	border-top-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-feat-pill,
.woocommerce.aiwbd-theme-light .aiwbd-feat-pill {
	background: #f0f0f0 !important;
	color: #333 !important;
	border-color: #d0d0d0 !important;
}

/* ── Modal ───────────────────────────────────── */
body.aiwbd-light-page .aiwbd-note-modal,
.woocommerce.aiwbd-theme-light .aiwbd-note-modal {
	background: #ffffff !important;
	color: #1a1a1a !important;
	border-color: #d0d0d0 !important;
}
body.aiwbd-light-page .aiwbd-modal-topbar,
.woocommerce.aiwbd-theme-light .aiwbd-modal-topbar {
	border-bottom-color: #e0e0e0 !important;
}
body.aiwbd-light-page .aiwbd-modal-title,
.woocommerce.aiwbd-theme-light .aiwbd-modal-title {
	color: #1a1a1a !important;
}
body.aiwbd-light-page .aiwbd-modal-close,
.woocommerce.aiwbd-theme-light .aiwbd-modal-close {
	background: rgba(0,0,0,.06) !important;
	border-color: rgba(0,0,0,.1) !important;
	color: #555 !important;
}
body.aiwbd-light-page .aiwbd-modal-body,
.woocommerce.aiwbd-theme-light .aiwbd-modal-body {
	color: #333 !important;
}
body.aiwbd-light-page .aiwbd-modal-body::-webkit-scrollbar-thumb,
.woocommerce.aiwbd-theme-light .aiwbd-modal-body::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,.18) !important;
}
body.aiwbd-light-page .aiwbd-note-modal-overlay,
.woocommerce.aiwbd-theme-light .aiwbd-note-modal-overlay {
	background: rgba(0,0,0,.45) !important;
}

/* ── Toast ───────────────────────────────────── */
body.aiwbd-light-page #aiwbd-toast,
.woocommerce.aiwbd-theme-light #aiwbd-toast {
	background: #2a2a2a !important;
	color: #fff !important;
}

/* ══════════════════════════════════════════════
   DARK MODE wrapper fallback
   (for browsers supporting .woocommerce.aiwbd-theme-dark)
══════════════════════════════════════════════ */
.woocommerce.aiwbd-theme-dark,
.woocommerce.aiwbd-theme-dark .aiwbd-product-article {
	background: #0d0d0d !important;
	color: #f0f0f0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT TEMPLATES — Left column specific styles
═══════════════════════════════════════════════════════════════════ */

/* ── Shared: Section headers ─────────────────────────────────────── */
.aiwbd-section-header {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--aiwbd-muted);
	margin: 0 0 12px;
}

/* ── Layout: Service ─────────────────────────────────────────────── */
.aiwbd-img-wrap--service .aiwbd-main-img--service {
	border-radius: var(--aiwbd-radius);
	object-fit: cover;
	width: 100%;
	max-height: 260px;
}
.aiwbd-delivery-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: var(--aiwbd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.aiwbd-img-wrap--service { position: relative; }

.aiwbd-service-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.aiwbd-service-meta-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	background: rgba(229,57,53,.1);
	color: var(--aiwbd-accent);
	border: 1px solid rgba(229,57,53,.2);
	border-radius: 20px;
	padding: 3px 9px;
}

.aiwbd-service-includes,
.aiwbd-portfolio,
.aiwbd-desc-panel--service {
	margin-top: 16px;
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 14px 16px;
}

.aiwbd-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.aiwbd-checklist-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--aiwbd-text);
}
.aiwbd-check-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background: rgba(229,57,53,.12);
	color: var(--aiwbd-accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.aiwbd-checklist-icon {
	flex-shrink: 0;
	border-radius: 3px;
}

.aiwbd-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.aiwbd-portfolio-thumb img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--aiwbd-border);
}

/* ── Layout: Software ─────────────────────────────────────────────── */
.aiwbd-sw-identity {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border-radius: var(--aiwbd-radius);
	border: 1px solid var(--aiwbd-border);
	margin-bottom: 0;
}
.aiwbd-sw-icon-wrap { flex-shrink: 0; }
.aiwbd-sw-icon {
	width: 80px;
	height: 80px;
	border-radius: 14px;
	object-fit: contain;
	background: var(--aiwbd-grid-bg);
	border: 1px solid var(--aiwbd-border);
}
.aiwbd-sw-icon-placeholder {
	width: 80px;
	height: 80px;
	border-radius: 14px;
	background: var(--aiwbd-grid-bg);
	border: 1px solid var(--aiwbd-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--aiwbd-muted);
}
.aiwbd-sw-meta { flex: 1; }
.aiwbd-sw-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 7px;
}
.aiwbd-sw-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10.5px;
	padding: 2px 8px;
	border-radius: 20px;
}
.aiwbd-sw-badge--sku {
	background: rgba(255,255,255,.06);
	color: var(--aiwbd-muted);
	border: 1px solid var(--aiwbd-border);
}
.aiwbd-sw-badge--wp,
.aiwbd-sw-badge--update {
	background: rgba(76,175,80,.1);
	color: var(--aiwbd-green);
	border: 1px solid rgba(76,175,80,.2);
}

.aiwbd-sw-features,
.aiwbd-sw-screenshots {
	margin-top: 16px;
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 14px 16px;
}
.aiwbd-sw-feat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.aiwbd-sw-feat-row {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--aiwbd-text);
}
.aiwbd-sw-feat-check {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: rgba(229,57,53,.12);
	color: var(--aiwbd-accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aiwbd-screenshot-row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
}
.aiwbd-screenshot-thumb img {
	height: 90px;
	width: auto;
	border-radius: 6px;
	border: 1px solid var(--aiwbd-border);
	object-fit: cover;
}

/* ── Layout: Wholesale ────────────────────────────────────────────── */
.aiwbd-wholesale-gallery { margin-bottom: 0; }
.aiwbd-gallery-main-img {
	width: 100%;
	border-radius: var(--aiwbd-radius);
	object-fit: cover;
	max-height: 320px;
	transition: opacity .15s;
}
.aiwbd-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.aiwbd-gallery-thumb {
	width: 64px;
	height: 64px;
	border-radius: 6px;
	border: 2px solid var(--aiwbd-border);
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s;
}
.aiwbd-gallery-thumb:hover,
.aiwbd-gallery-thumb--active {
	border-color: var(--aiwbd-accent);
}
.aiwbd-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.aiwbd-sku-label {
	font-size: 11px;
	color: var(--aiwbd-muted);
	margin-top: 3px;
	display: block;
}

.aiwbd-specs,
.aiwbd-volume-pricing {
	margin-top: 16px;
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 14px 16px;
}
.aiwbd-specs-table {
	width: 100%;
	border-collapse: collapse;
}
.aiwbd-spec-row { border-bottom: 1px solid var(--aiwbd-border); }
.aiwbd-spec-row:last-child { border-bottom: none; }
.aiwbd-spec-key {
	padding: 7px 0;
	font-size: 12.5px;
	color: var(--aiwbd-text);
	display: flex;
	align-items: center;
	gap: 7px;
}

.aiwbd-vol-grid { display: flex; flex-direction: column; gap: 6px; }
.aiwbd-vol-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: rgba(255,255,255,.03);
	border-radius: 6px;
	font-size: 13px;
}
.aiwbd-vol-label { flex: 1; color: var(--aiwbd-text); font-weight: 500; }
.aiwbd-vol-per { color: var(--aiwbd-muted); font-size: 11px; }
.aiwbd-vol-price { font-weight: 700; }

/* ── Layout: Event ────────────────────────────────────────────────── */
.aiwbd-img-wrap--event { position: relative; margin-bottom: 0; }
.aiwbd-main-img--event {
	width: 100%;
	border-radius: var(--aiwbd-radius);
	object-fit: cover;
	max-height: 240px;
}
.aiwbd-event-badge-row {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.aiwbd-event-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	background: rgba(0,0,0,.65);
	color: #fff;
	backdrop-filter: blur(4px);
}
.aiwbd-event-badge--seats {
	background: rgba(229,57,53,.8);
}

.aiwbd-identity--event .aiwbd-thumb--round {
	border-radius: 50%;
	border: 2px solid var(--aiwbd-accent);
}
.aiwbd-event-organizer-label {
	font-size: 11px;
	color: var(--aiwbd-muted);
	margin-top: 2px;
	display: block;
}

.aiwbd-event-about {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--aiwbd-text);
}

.aiwbd-agenda {
	margin-top: 16px;
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 14px 16px;
}
.aiwbd-agenda-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.aiwbd-agenda-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--aiwbd-text);
	padding: 6px 0;
	border-bottom: 1px solid var(--aiwbd-border);
}
.aiwbd-agenda-item:last-child { border-bottom: none; }
.aiwbd-agenda-num {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--aiwbd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aiwbd-seats {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
}
.aiwbd-seats-label {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--aiwbd-muted);
	margin-bottom: 7px;
}
.aiwbd-seats-bar {
	height: 6px;
	background: var(--aiwbd-border);
	border-radius: 3px;
	overflow: hidden;
}
.aiwbd-seats-fill {
	height: 100%;
	border-radius: 3px;
	transition: width .3s ease;
}

/* ── Desc panel shared updates ───────────────────────────────────── */
.aiwbd-desc-panel {
	margin-top: 16px;
	background: var(--aiwbd-header-bg);
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 14px 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   MODERN RIGHT COLUMN REDESIGN — v1.3.3
   Inspired by modern SaaS dashboard card style (clean, rounded, shadow)
═══════════════════════════════════════════════════════════════════ */

/* Right column — clean white/light card */
.aiwbd-col-right {
	background: var(--aiwbd-right-col-bg, #ffffff) !important;
	border-radius: 16px !important;
	box-shadow: 0 2px 24px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.06) !important;
	border: none !important;
	overflow: visible !important;
	gap: 12px !important;
}

/* Panel base — no border, clean card */
.aiwbd-col-right .aiwbd-panel {
	background: #fff !important;
	border: 1px solid rgba(0,0,0,.07) !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 8px rgba(0,0,0,.06) !important;
	overflow: hidden !important;
}

/* Panel header — stronger visual */
.aiwbd-col-right .aiwbd-panel-head {
	background: #fff !important;
	border-bottom: 1px solid rgba(0,0,0,.07) !important;
	padding: 14px 18px !important;
}

/* Step number badge */
.aiwbd-col-right .aiwbd-step-num {
	width: 26px !important;
	height: 26px !important;
	font-size: 0.75rem !important;
	font-weight: 800 !important;
	box-shadow: 0 2px 8px rgba(229,57,53,.35) !important;
}

/* Panel label text */
.aiwbd-col-right .aiwbd-panel-label {
	color: #1a1a2e !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.12em !important;
}

/* Cards grid */
.aiwbd-col-right .aiwbd-cards-grid {
	background: #f8f9fb !important;
	padding: 14px !important;
	gap: 10px !important;
}

/* Individual package card — modern flat style */
.aiwbd-col-right .aiwbd-card {
	background: #ffffff !important;
	border: 1.5px solid #e8eaf0 !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 6px rgba(0,0,0,.06) !important;
	padding: 14px 14px 12px !important;
	min-height: 110px !important;
	transition: all .2s ease !important;
}
.aiwbd-col-right .aiwbd-card:not(.aiwbd-card--oos):hover {
	border-color: var(--aiwbd-accent) !important;
	box-shadow: 0 4px 20px rgba(229,57,53,.12), 0 1px 6px rgba(0,0,0,.06) !important;
	transform: translateY(-1px) !important;
}
.aiwbd-col-right .aiwbd-card.aiwbd-card--selected {
	border-color: var(--aiwbd-accent) !important;
	background: #fff8f8 !important;
	box-shadow: 0 0 0 3px rgba(229,57,53,.1), 0 4px 20px rgba(229,57,53,.12) !important;
}

/* Card label */
.aiwbd-col-right .aiwbd-card-label {
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #1a1a2e !important;
}

/* Card duration */
.aiwbd-col-right .aiwbd-card-duration {
	font-size: 11.5px !important;
	font-weight: 500 !important;
}

/* Card price */
.aiwbd-col-right .aiwbd-card-price {
	font-size: 1.2rem !important;
	font-weight: 800 !important;
}

/* Checkmark */
.aiwbd-col-right .aiwbd-checkmark {
	background: var(--aiwbd-accent) !important;
	color: #fff !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	top: 10px !important;
	right: 10px !important;
}

/* Summary panel */
.aiwbd-col-right .aiwbd-summary {
	background: #f8f9fb !important;
	border-top: 1px solid rgba(0,0,0,.06) !important;
	margin: 0 !important;
	border-radius: 0 !important;
	padding: 12px 14px !important;
}
.aiwbd-col-right .aiwbd-summary-head {
	padding: 0 0 10px !important;
	border-bottom: 1px solid rgba(0,0,0,.07) !important;
	margin-bottom: 10px !important;
}
.aiwbd-col-right .aiwbd-summary-heading {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .07em !important;
	text-transform: uppercase !important;
	color: #64748b !important;
}
.aiwbd-col-right .aiwbd-clear-all {
	font-size: 11px !important;
	color: #94a3b8 !important;
}
.aiwbd-col-right .aiwbd-clear-all:hover { color: var(--aiwbd-accent) !important; }

.aiwbd-col-right .aiwbd-sum-total-label {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #64748b !important;
}
.aiwbd-col-right .aiwbd-grand-val {
	font-size: 1.15rem !important;
	font-weight: 800 !important;
}

/* Payment panel */
.aiwbd-col-right .aiwbd-panel-payment {
	overflow: hidden !important;
}
.aiwbd-col-right .aiwbd-pay-body {
	padding: 16px !important;
	background: #fff !important;
}

/* Order Now button — full width, bold */
.aiwbd-col-right .aiwbd-order-btn {
	width: 100% !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	padding: 14px 20px !important;
	letter-spacing: .02em !important;
	box-shadow: 0 4px 18px rgba(229,57,53,.4) !important;
	transition: all .2s ease !important;
	position: relative !important;
	overflow: hidden !important;
}
.aiwbd-col-right .aiwbd-order-btn::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
	transition: left .5s ease;
}
.aiwbd-col-right .aiwbd-order-btn:not([disabled]):hover::before { left: 100%; }
.aiwbd-col-right .aiwbd-order-btn:not([disabled]):hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 24px rgba(229,57,53,.5) !important;
}
.aiwbd-col-right .aiwbd-order-btn[disabled] {
	opacity: .45 !important;
	box-shadow: none !important;
}

/* Payment chips */
.aiwbd-col-right .aiwbd-pay-icons {
	margin-top: 12px !important;
	gap: 8px !important;
}
.aiwbd-col-right .aiwbd-pay-chip {
	border-radius: 10px !important;
	padding: 6px 12px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 6px rgba(0,0,0,.12) !important;
}

/* SSL note */
.aiwbd-col-right .aiwbd-ssl-note {
	margin-top: 10px !important;
	font-size: 10.5px !important;
	color: #94a3b8 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
}

/* Third-party fields (PPOM etc) — modern input style */
.aiwbd-col-right .aiwbd-third-party-fields input,
.aiwbd-col-right .aiwbd-third-party-fields textarea,
.aiwbd-col-right .aiwbd-third-party-fields select {
	background: #f8f9fb !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 10px !important;
	color: #1a1a2e !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	width: 100% !important;
	transition: border-color .15s !important;
}
.aiwbd-col-right .aiwbd-third-party-fields input:focus,
.aiwbd-col-right .aiwbd-third-party-fields textarea:focus {
	border-color: var(--aiwbd-accent) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(229,57,53,.1) !important;
}

/* Third-party table (price summary) */
.aiwbd-col-right .aiwbd-third-party-fields table {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 13px !important;
	color: #334155 !important;
}
.aiwbd-col-right .aiwbd-third-party-fields table td,
.aiwbd-col-right .aiwbd-third-party-fields table th {
	padding: 8px 10px !important;
	border: 1px solid #e8eaf0 !important;
	background: #fff !important;
}
.aiwbd-col-right .aiwbd-third-party-fields table tr:last-child td {
	font-weight: 700 !important;
	color: #1a1a2e !important;
}

/* Lock icon — accent colored */
.aiwbd-col-right .aiwbd-lock-icon { color: var(--aiwbd-accent) !important; }

/* Qty row buttons */
.aiwbd-col-right .aiwbd-qty-btn {
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	color: #475569 !important;
	border-radius: 8px !important;
}
.aiwbd-col-right .aiwbd-qty-btn:hover {
	background: var(--aiwbd-accent) !important;
	border-color: var(--aiwbd-accent) !important;
	color: #fff !important;
}
.aiwbd-col-right .aiwbd-qty-num {
	color: #1a1a2e !important;
	font-weight: 700 !important;
}
