/* Fonts: Poppins loaded by Elementor/theme — no import needed */

/**
 * 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 {
	/* Brand */
	--aiwbd-accent:       #6366f1;
	--aiwbd-accent-2:     #8b5cf6;
	--aiwbd-accent-glow:  rgba(99, 102, 241, 0.25);
	/* Dark theme (default) */
	--aiwbd-page-bg:      #09090b;
	--aiwbd-card-bg:      #18181b;
	--aiwbd-card-bg-2:    #1f1f23;
	--aiwbd-header-bg:    #1c1c1f;
	--aiwbd-grid-bg:      #101012;
	--aiwbd-right-col-bg: #18181b;
	--aiwbd-text:         #fafafa;
	--aiwbd-text-2:       #a1a1aa;
	--aiwbd-border:       #27272a;
	--aiwbd-border-2:     #3f3f46;
	--aiwbd-muted:        #71717a;
	--aiwbd-dim:          #52525b;
	--aiwbd-green:        #22c55e;
	--aiwbd-grand-total:  #6366f1;
	--aiwbd-clear-clr:    #52525b;
	--aiwbd-clear-hvr:    #ef4444;
	--aiwbd-btn-bg:       #6366f1;
	--aiwbd-btn-text:     #ffffff;
	--aiwbd-badge-bg:     #6366f1;
	--aiwbd-badge-text:   #ffffff;
	--aiwbd-radius:       12px;
	--aiwbd-radius-sm:    8px;
	--aiwbd-radius-xs:    6px;
	--aiwbd-shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
	--aiwbd-shadow-md:    0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
	--aiwbd-shadow-lg:    0 8px 32px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
	--aiwbd-glow:         0 0 0 3px rgba(99,102,241,0.3), 0 6px 20px rgba(99,102,241,0.2);
	--aiwbd-transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--aiwbd-font:         'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
	/* Legacy aliases */
	--aiwbd-card-sel-border: #6366f1;
	--aiwbd-card-sel-bg:     rgba(99,102,241,0.10);
	--aiwbd-card-label-clr:  #fafafa;
	--aiwbd-card-price-clr:  #fafafa;
	--aiwbd-qty-bg:          rgba(255,255,255,0.06);
	--aiwbd-qty-border:      #27272a;
	--aiwbd-qty-text:        #fafafa;
}
.aiwbd-ve-engine, .aiwbd-ve-engine * {
	font-family: var(--aiwbd-font);
}


/* ─────────────────────────────────────────────────
   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:      #fafafa;
	--aiwbd-card-bg:      #ffffff;
	--aiwbd-card-bg-2:    #f4f4f5;
	--aiwbd-header-bg:    #f1f1f4;
	--aiwbd-grid-bg:      #f7f7f8;
	--aiwbd-right-col-bg: #ffffff;
	--aiwbd-text:         #09090b;
	--aiwbd-text-2:       #52525b;
	--aiwbd-border:       #e4e4e7;
	--aiwbd-border-2:     #d4d4d8;
	--aiwbd-muted:        #71717a;
	--aiwbd-dim:          #a1a1aa;
	--aiwbd-grand-total:  #4f46e5;
	--aiwbd-clear-clr:    #a1a1aa;
	--aiwbd-clear-hvr:    #ef4444;
	--aiwbd-shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
	--aiwbd-shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
	--aiwbd-shadow-lg:    0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.07);
	--aiwbd-glow:         0 0 0 3px rgba(99,102,241,0.2), 0 4px 14px rgba(99,102,241,0.12);
	--aiwbd-card-label-clr: #09090b;
	--aiwbd-card-price-clr: #09090b;
	--aiwbd-qty-bg:         rgba(0,0,0,0.04);
	--aiwbd-qty-border:     #e4e4e7;
	--aiwbd-qty-text:       #09090b;
}

@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;
	/* Desktop: left col (top stacked above desc) | right col (packages sticky) */
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); /* left 37.5% | right 62.5% *//* right col slightly wider */
	grid-template-rows: auto auto;
	grid-template-areas:
		"top   right"
		"desc  right";
	column-gap: 20px;
	row-gap: 10px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 32px;
	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-top {
	grid-area: top;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	align-self: start;
}

.aiwbd-col-desc {
	grid-area: desc;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	align-self: start; /* don't stretch if content is short */
}
/* Hide col-desc completely if it has no visible content */
.aiwbd-col-desc:empty { display: none; }

/* Legacy fallback — keep .aiwbd-col-left in case old templates reference it */
.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);
	position: relative;
	display: block;
	cursor: zoom-in;
	max-height: 300px; /* compact — right col dominates */
}
.aiwbd-img-wrap::after {
	content: '';
	position: absolute;
	bottom: 10px; right: 10px;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
	opacity: 0;
	transition: opacity var(--aiwbd-transition);
	pointer-events: none;
}
.aiwbd-img-wrap:hover::after { opacity: 1; }

.aiwbd-main-img {
	width: 100%;
	height: 300px;
	display: block;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.4s ease;
	will-change: transform;
}
.aiwbd-img-wrap:hover .aiwbd-main-img { transform: scale(1.015); }

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

/* Identity bar */
.aiwbd-identity {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border: 1px solid var(--aiwbd-border);
	border-radius: var(--aiwbd-radius);
	padding: 12px 14px;
	background: var(--aiwbd-header-bg);
	position: relative;
	overflow: hidden;
	margin-top: 8px;
}
.aiwbd-identity::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--aiwbd-accent) 0%, transparent 100%);
	opacity: 0.3;
}

.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: 0.88rem;
	font-weight: 700;
	color: var(--aiwbd-text);
	line-height: 1.35;
	margin: 0 0 4px;
}

/* 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 {
	grid-area: right;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	position: sticky;
	top: 68px;
	align-self: start;
	background: transparent;
	border-radius: 12px;
	padding: 0;
	overflow: visible; /* cards must not be clipped */
}



/* ─────────────────────────────────────────────────
   5. PANEL BASE
───────────────────────────────────────────────── */
.aiwbd-panel {
	border: 1.5px solid var(--aiwbd-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--aiwbd-shadow-sm);
	transition: box-shadow var(--aiwbd-transition);
	background: var(--aiwbd-card-bg);
	width: 100%;
	box-sizing: border-box;
}
.aiwbd-panel:hover {
	box-shadow: var(--aiwbd-shadow-md);
}
/* Panel head needs its own overflow:hidden for top border-radius clipping */
.aiwbd-panel-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1.5px solid var(--aiwbd-border);
	background: var(--aiwbd-header-bg);
	position: relative;
	overflow: hidden;
}
.aiwbd-panel-head::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--aiwbd-accent), var(--aiwbd-accent-2));
	border-radius: 0 2px 2px 0;
}


/* panel-head consolidated above */

.aiwbd-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--aiwbd-accent), var(--aiwbd-accent-2));
	color: white;
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(99,102,241,0.4);
}

.aiwbd-panel-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--aiwbd-text-2, var(--aiwbd-muted));
}

.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(130px, 1fr));
	gap: 10px;
	padding: 12px;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	background: var(--aiwbd-grid-bg);
}



/* Single card */
.aiwbd-card {
	position: relative;
	border: 1.5px solid var(--aiwbd-border);
	border-radius: 14px;
	padding: 36px 14px 14px;
	cursor: pointer;
	min-height: 115px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	transition: border-color var(--aiwbd-transition), box-shadow var(--aiwbd-transition), transform var(--aiwbd-transition), background var(--aiwbd-transition);
	box-sizing: border-box;
	outline: none;
	overflow: hidden;
	background: var(--aiwbd-card-bg);
	box-shadow: var(--aiwbd-shadow-sm);
}
.aiwbd-card:not(.aiwbd-card--oos):hover {
	border-color: var(--aiwbd-accent);
	box-shadow: var(--aiwbd-shadow-md), 0 0 0 1px var(--aiwbd-accent);
	transform: translateY(-2px);
	background: var(--aiwbd-card-bg-2);
}
.aiwbd-card:not(.aiwbd-card--oos):active {
	transform: translateY(0) scale(0.99);
}

.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-accent) !important;
	border-width: 2px !important;
	background: rgba(99,102,241,0.08) !important;
	box-shadow: var(--aiwbd-glow) !important;
}

/* ── 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;
	pointer-events: auto;
}
/* Trash/minus icons inside qty dec button */
.aiwbd-icon-trash { display: inline-block; }
.aiwbd-icon-minus { display: none; }

@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: 8px;
	border: 1px 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 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
	padding: 0;
	flex-shrink: 0;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.aiwbd-qty-btn:hover {
	border-color: var(--aiwbd-accent);
	color: var(--aiwbd-accent);
	box-shadow: 0 2px 6px var(--aiwbd-accent-glow);
}
.aiwbd-qty-btn:active { transform: scale(0.92); }

.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: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ── 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;
	gap: 8px;
	width: 100%;
	padding: 15px 24px;
	background: linear-gradient(135deg, var(--aiwbd-accent) 0%, var(--aiwbd-accent-2) 100%) !important;
	color: #ffffff !important;
	font-family: var(--aiwbd-font);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all var(--aiwbd-transition);
	box-shadow: 0 4px 14px rgba(99,102,241,0.4), 0 1px 3px rgba(0,0,0,0.2);
	position: relative;
	overflow: hidden;
	margin-top: 14px;
}
/* Button shine sweep */
.aiwbd-order-btn::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 60%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	transition: left 0.5s ease;
	pointer-events: none;
}
.aiwbd-order-btn:not([disabled]):hover::before { left: 140%; }
.aiwbd-order-btn:not([disabled]):hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(99,102,241,0.5), 0 2px 6px rgba(0,0,0,0.2);
}
.aiwbd-order-btn:not([disabled]):active {
	transform: translateY(0) scale(0.99);
	box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.aiwbd-order-btn[disabled],
.aiwbd-order-btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}
.aiwbd-order-btn.aiwbd-loading {
	opacity: 0.8;
	pointer-events: none;
}





.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; }
}

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



.aiwbd-col-right .aiwbd-order-btn:not([disabled]):hover {
	background: #c62828 !important;
	box-shadow: 0 6px 24px rgba(229,57,53,.55) !important;
	transform: translateY(-1px) !important;
}
.aiwbd-col-right 
.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 

/* Payment chips */
.aiwbd-col-right .aiwbd-pay-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}
.aiwbd-pay-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	list-style: none;
	color: #fff;
	background: #555;
	border: none;
	white-space: nowrap;
}
.aiwbd-pay-chip img {
	display: block;
	height: 18px;
	width: auto;
	max-width: 64px;
	object-fit: contain;
}
/* Default BD payment chip colors */
.aiwbd-bkash  { background: #d72b5e !important; color: #fff !important; }
.aiwbd-nagad  { background: #e05c00 !important; color: #fff !important; }
.aiwbd-rocket { background: #8b008b !important; color: #fff !important; }

/* SSL note */
.aiwbd-col-right .aiwbd-ssl-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 0.68rem;
	color: var(--aiwbd-muted);
	opacity: 0.8;
	margin-top: 4px;
}

/* 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;
}

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVE — All breakpoints
   DOM order = visual order on mobile (no reorder needed)
   top → right (packages+payment) → desc
   ══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════ */
.aiwbd-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1c1c1f;
	color: #fafafa;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	z-index: 99999;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	max-width: calc(100vw - 40px);
	text-align: center;
}
.aiwbd-toast--visible {
	opacity: 1 !important;
	transform: translateX(-50%) translateY(0) !important;
}
.aiwbd-toast--success {
	background: #166534;
	border-left: 4px solid #22c55e;
}
.aiwbd-toast--error {
	background: #7f1d1d;
	border-left: 4px solid #ef4444;
}

/* ══════════════════════════════════════════════
   WHATSAPP / THIRD PARTY FIELDS
══════════════════════════════════════════════ */
.aiwbd-whatsapp-wrap,
.aiwbd-whatsapp-field {
	width: 100%;
	margin-bottom: 10px;
}
.aiwbd-whatsapp-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--aiwbd-muted);
	margin-bottom: 5px;
}
.aiwbd-whatsapp-field input,
.aiwbd-third-party-fields input[type="text"],
.aiwbd-third-party-fields input[type="tel"],
.aiwbd-third-party-fields input[type="number"],
.aiwbd-third-party-fields textarea {
	width: 100%;
	background: var(--aiwbd-grid-bg);
	border: 1.5px solid var(--aiwbd-border);
	border-radius: 8px;
	padding: 9px 12px;
	color: var(--aiwbd-text);
	font-size: 0.85rem;
	box-sizing: border-box;
	transition: border-color 0.2s;
	outline: none;
}
.aiwbd-whatsapp-field input:focus,
.aiwbd-third-party-fields input:focus,
.aiwbd-third-party-fields textarea:focus {
	border-color: var(--aiwbd-accent);
	box-shadow: 0 0 0 3px var(--aiwbd-accent-glow);
}

/* ─── 960px Tablet / small laptop ─── */

/* ══ THEME OVERRIDE: summary buttons inside our engine ══════════
   Astra / WooCommerce theme overrides button styles globally.
   These scoped rules win via specificity without affecting the rest. */
.aiwbd-ve-engine .aiwbd-clear-all,
.aiwbd-ve-engine button.aiwbd-clear-all {
	display: inline-flex !important;
	align-items: center !important;
	background: transparent !important;
	border: 1px solid var(--aiwbd-border-2) !important;
	border-radius: 6px !important;
	padding: 3px 10px !important;
	font-size: 0.68rem !important;
	font-weight: 500 !important;
	color: var(--aiwbd-muted) !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	line-height: 1.5 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: color 0.15s, border-color 0.15s !important;
}
.aiwbd-ve-engine .aiwbd-sum-remove,
.aiwbd-ve-engine button.aiwbd-sum-remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	flex-shrink: 0 !important;
	background: var(--aiwbd-border) !important;
	border: none !important;
	border-radius: 50% !important;
	color: var(--aiwbd-muted) !important;
	font-size: 12px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 !important;
	transition: background 0.15s, color 0.15s !important;
}
.aiwbd-ve-engine .aiwbd-sum-list,
.aiwbd-ve-engine ul.aiwbd-sum-list {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}
.aiwbd-ve-engine .aiwbd-sum-list > li,
.aiwbd-ve-engine .aiwbd-sum-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 16px !important;
	border-bottom: 1px solid var(--aiwbd-border) !important;
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	list-style: none !important;
	margin: 0 !important;
}
.aiwbd-ve-engine .aiwbd-sum-list > li::before,
.aiwbd-ve-engine .aiwbd-sum-list > li::marker {
	content: none !important;
	display: none !important;
}

@media (max-width: 960px) {
    .aiwbd-img-wrap   { max-height: 320px; }
    .aiwbd-main-img   { max-height: 320px; }
    .aiwbd-ve-engine {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "right"
            "desc";
        column-gap: 0;
        row-gap: 16px;
        padding: 0 16px;
        margin-bottom: 48px;
    }
    .aiwbd-col-right { position: static !important; top: auto !important; }
}

/* ─── 768px Standard tablet portrait ─── */
@media (max-width: 768px) {
    .aiwbd-img-wrap   { max-height: 280px; }
    .aiwbd-main-img   { max-height: 280px; }
    .aiwbd-ve-engine {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "right"
            "desc";
        gap: 14px;
        padding: 0 12px;
        margin-bottom: 40px;
    }
    .aiwbd-col-right { position: static !important; border-radius: 12px; }
}

/* ─── 640px Large phone ─── */
@media (max-width: 640px) {
    .aiwbd-img-wrap   { max-height: 240px; }
    .aiwbd-main-img   { max-height: 240px; }
    .aiwbd-ve-engine {
        padding: 0 10px;
        gap: 12px;
        margin-bottom: 36px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "right"
            "desc";
    }

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

    .aiwbd-card {
        padding: 28px 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 */
    .aiwbd-note-badge {
        font-size: 0.6rem;
        padding: 2px 7px 2px 5px;
        gap: 3px;
    }

    /* Identity */
    .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 */
    /* ══════════════════════════════════════
   SELECTED PACKAGES SUMMARY — v1.6.3
══════════════════════════════════════ */
.aiwbd-summary {
	margin-top: 10px;
	border: 1.5px solid var(--aiwbd-border);
	border-radius: 14px;
	background: var(--aiwbd-card-bg);
	overflow: hidden;
	animation: aiwbd-fade-in 0.22s ease both;
	box-shadow: var(--aiwbd-shadow-sm);
}
.aiwbd-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 10px;
	border-bottom: 1px solid var(--aiwbd-border);
	gap: 10px;
	min-width: 0;
}
.aiwbd-summary-heading {
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--aiwbd-text);
	flex: 1;
	min-width: 0;
	white-space: nowrap;
}
/* Clear All — !important overrides Astra theme button styles */
.aiwbd-clear-all,
.aiwbd-ve-engine button.aiwbd-clear-all,
.woocommerce button.aiwbd-clear-all {
	display: inline-flex !important;
	align-items: center !important;
	background: transparent !important;
	border: 1px solid var(--aiwbd-border-2) !important;
	border-radius: 6px !important;
	padding: 3px 10px !important;
	font-size: 0.68rem !important;
	font-weight: 500 !important;
	color: var(--aiwbd-muted) !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	line-height: 1.5 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: color 0.15s, border-color 0.15s !important;
}
.aiwbd-clear-all:hover,
.aiwbd-ve-engine button.aiwbd-clear-all:hover,
.woocommerce button.aiwbd-clear-all:hover {
	border-color: #ef4444 !important;
	color: #ef4444 !important;
	background: rgba(239,68,68,0.05) !important;
}
/* Sum list — no bullets */
.aiwbd-sum-list,
.aiwbd-ve-engine ul.aiwbd-sum-list {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 4px 0 !important;
	padding-left: 0 !important;
	max-height: 220px;
	overflow-y: auto;
}
.aiwbd-sum-list > li,
.aiwbd-sum-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 16px !important;
	border-bottom: 1px solid var(--aiwbd-border) !important;
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	list-style: none !important;
	margin: 0 !important;
}
.aiwbd-sum-list > li::before,
.aiwbd-sum-list > li::marker,
.aiwbd-sum-row::before,
.aiwbd-sum-row::marker {
	content: none !important;
	display: none !important;
}
.aiwbd-sum-row {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 7px 14px !important;
	font-size: 0.77rem !important;
	border-bottom: 1px solid var(--aiwbd-border) !important;
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
}
.aiwbd-sum-row:last-child { border-bottom: none !important; }
.aiwbd-sum-row-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.aiwbd-sum-icon {
	width: 22px;
	height: 22px;
	object-fit: contain;
	border-radius: 4px;
}
.aiwbd-sum-icon-placeholder {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: var(--aiwbd-border);
	display: block;
}
.aiwbd-sum-row-info {
	flex: 1 1 0% !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 1px !important;
	overflow: hidden !important;
}
.aiwbd-sum-row-label {
	font-weight: 700;
	color: var(--aiwbd-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.82rem;
	max-width: 100%;
	display: block;
}
.aiwbd-sum-row-meta {
	color: var(--aiwbd-muted);
	font-size: 0.72rem;
	margin-top: 1px;
}
.aiwbd-sum-row-total {
	font-weight: 800;
	color: var(--aiwbd-grand-total);
	white-space: nowrap;
	font-size: 0.88rem;
	margin-left: auto;
	padding-left: 10px;
	flex-shrink: 0;
}
/* Remove (×) button — !important overrides Astra theme button styles */
.aiwbd-sum-remove,
.aiwbd-ve-engine button.aiwbd-sum-remove,
.woocommerce button.aiwbd-sum-remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	min-height: 18px !important;
	max-height: 18px !important;
	flex-shrink: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 1.5px solid var(--aiwbd-border) !important;
	border-radius: 50% !important;
	color: var(--aiwbd-muted) !important;
	font-size: 11px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 !important;
	transition: border-color 0.15s, color 0.15s, background 0.15s !important;
}
.aiwbd-sum-remove:hover,
.aiwbd-ve-engine button.aiwbd-sum-remove:hover,
.woocommerce button.aiwbd-sum-remove:hover {
	border-color: #ef4444 !important;
	color: #ef4444 !important;
	background: rgba(239,68,68,0.07) !important;
}
.aiwbd-sum-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-top: 1.5px solid var(--aiwbd-border);
	gap: 8px;
	min-width: 0;
}
.aiwbd-sum-total-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--aiwbd-text);
}
.aiwbd-grand-val {
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--aiwbd-grand-total);
	letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════════
   LIGHTBOX — full image popup on click
   ═══════════════════════════════════════════════ */
.aiwbd-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(0,0,0,.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	cursor: zoom-out;
	animation: aiwbd-lb-fadein .2s ease both;
}
@keyframes aiwbd-lb-fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.aiwbd-lightbox-img-wrap {
	position: relative;
	max-width: min(92vw, 1100px);
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: aiwbd-lb-scalein .22s cubic-bezier(.32,1,.42,1) both;
}
@keyframes aiwbd-lb-scalein {
	from { transform: scale(.88); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}
.aiwbd-lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 32px 80px rgba(0,0,0,.7);
	cursor: default;
	display: block;
}
.aiwbd-lightbox-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1000001;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
	backdrop-filter: blur(6px);
}
.aiwbd-lightbox-close:hover { background: rgba(229,57,53,.7); }

body.aiwbd-lb-open { overflow: hidden !important; }

/* Portfolio/screenshot gallery — make thumbs clickable for lightbox */
.aiwbd-portfolio-thumb,
.aiwbd-sw-screenshot {
	cursor: zoom-in;
	transition: transform .2s ease, box-shadow .2s ease;
}
.aiwbd-portfolio-thumb:hover,
.aiwbd-sw-screenshot:hover {
	transform: scale(1.04);
	box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.aiwbd-portfolio-thumb img,
.aiwbd-sw-screenshot img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	border-radius: 6px;
}

/* Light mode summary refinements */
body.aiwbd-light-page .aiwbd-summary,
.woocommerce.aiwbd-theme-light .aiwbd-summary {
	background: #ffffff !important;
	border-color: #e4e4e7 !important;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
body.aiwbd-light-page .aiwbd-summary-head,
.woocommerce.aiwbd-theme-light .aiwbd-summary-head {
	border-color: #e4e4e7 !important;
}
body.aiwbd-light-page .aiwbd-sum-row,
.woocommerce.aiwbd-theme-light .aiwbd-sum-row {
	border-color: #f1f1f4 !important;
}
body.aiwbd-light-page .aiwbd-sum-total-row,
.woocommerce.aiwbd-theme-light .aiwbd-sum-total-row {
	border-color: #e4e4e7 !important;
	background: #f9f9fb !important;
}
body.aiwbd-light-page .aiwbd-sum-remove,
.woocommerce.aiwbd-theme-light button.aiwbd-sum-remove {
	background: #e4e4e7 !important;
	color: #71717a !important;
}
