/* ============================================================
 * WD Bundle — storefront styles
 * Sections (patterns / sizes / summary) + full-width builder + popup
 * ============================================================ */
.wdb-section,
.wdb-builder {
	--wdb-accent: #42be7a;
	--wdb-accent-dark: #38a86b;
	--wdb-accent-soft: #ecfbf2;
	--wdb-cream: #f7f2e8;
	--wdb-cream-border: #e8ddd0;
	--wdb-line: #e6e8eb;
	--wdb-ink: #1d2327;
	--wdb-muted: #6b7280;
	--wdb-radius: 16px;
}

.wdb-section { margin: 0 0 22px; width: 100%; box-sizing: border-box; font-family: inherit; }
/* Cream card look for all three top sections. */
.wdb-patterns, .wdb-sizes, .wdb-summary {
	width: 100%;
	box-sizing: border-box;
	background: var(--wdb-cream);
	border: 1px solid var(--wdb-cream-border);
	border-radius: var(--wdb-radius);
}
.wdb-patterns, .wdb-sizes { padding: 24px 26px; }
.wdb-section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.wdb-section-title { font-size: 19px; font-weight: 800; color: var(--wdb-ink); letter-spacing: .2px; }

/* Numbered step badge */
.wdb-step {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; min-width: 26px;
	background: var(--wdb-accent); color: #fff;
	border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1;
	flex-shrink: 0;
}

/* ---------- Patterns ---------- */
.wdb-patterns-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	overflow: visible;
}
.wdb-pat-card {
	position: relative;
	display: flex; flex-direction: column;
	border: 1.5px solid var(--wdb-line);
	border-radius: var(--wdb-radius);
	background: #fff; cursor: pointer; overflow: visible;
	transition: border-color .15s, box-shadow .15s, transform .1s;
}
.wdb-pat-card:hover { border-color: #c7cdd3; box-shadow: 0 4px 14px rgba(0,0,0,.06); z-index: 2; }
.wdb-pat-card.is-selected { border-color: var(--wdb-accent); box-shadow: 0 0 0 3px var(--wdb-accent-soft); }
.wdb-pat-img, .wdb-pat-icon { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #f7f8f9; overflow: hidden; border-radius: calc(var(--wdb-radius) - 2px) calc(var(--wdb-radius) - 2px) 0 0; }
.wdb-pat-img img { width: 100%; height: 100%; object-fit: cover; }
.wdb-pat-svg svg { width: 46px; height: 46px; color: var(--wdb-muted); }
.wdb-pat-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; color: #fff; background: var(--badge, #9ca3af); padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: .3px; }
.wdb-pat-tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--wdb-accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: .15s; }
.wdb-pat-tick svg { width: 13px; height: 13px; }
.wdb-pat-card.is-selected .wdb-pat-tick { opacity: 1; transform: scale(1); }
.wdb-pat-body { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px 8px; position: relative; overflow: visible; min-height: 52px; }
.wdb-pat-name { font-size: 13px; font-weight: 600; color: var(--wdb-ink); line-height: 1.25; padding-right: 4px; }
.wdb-pat-price { font-size: 12px; font-weight: 700; color: var(--wdb-accent); }
.wdb-pat-info {
	position: relative;
	align-self: flex-end;
	margin-top: auto;
	padding-top: 4px;
	color: var(--wdb-accent);
	cursor: help;
	display: inline-flex;
	z-index: 3;
	transition: color .15s, transform .15s;
}
.wdb-pat-info:hover,
.wdb-pat-info:focus,
.wdb-pat-info:focus-visible { color: var(--wdb-accent-dark); transform: scale(1.08); }
.wdb-pat-info svg { width: 15px; height: 15px; }
.wdb-pat-info[data-tooltip]:hover::after,
.wdb-pat-info[data-tooltip]:focus::after,
.wdb-pat-info[data-tooltip]:focus-visible::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	left: auto;
	width: 200px;
	max-width: 220px;
	background: #111827;
	color: #fff;
	font-size: 11px;
	line-height: 1.45;
	font-weight: 400;
	padding: 8px 10px;
	border-radius: 8px;
	z-index: 100;
	box-shadow: 0 6px 20px rgba(0,0,0,.18);
	pointer-events: none;
	white-space: normal;
}
.wdb-pat-info[data-tooltip]:hover::before,
.wdb-pat-info[data-tooltip]:focus::before,
.wdb-pat-info[data-tooltip]:focus-visible::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 2px);
	right: 6px;
	border: 6px solid transparent;
	border-top-color: #111827;
	z-index: 100;
	pointer-events: none;
}

/* ---------- Sizes ---------- */
.wdb-sizes-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.wdb-size-circle {
	min-width: 46px; height: 46px; padding: 0 10px;
	border: 1.5px solid var(--wdb-line); border-radius: 50px; background: #fff;
	font-size: 13px; font-weight: 700; color: var(--wdb-ink); cursor: pointer;
	text-align: center;
	transition: border-color .15s, background .15s, color .15s;
}
.wdb-size-circle:hover { border-color: #c7cdd3; }
.wdb-size-circle.is-selected { border-color: var(--wdb-accent); background: var(--wdb-accent-soft); color: var(--wdb-ink); box-shadow: 0 0 0 1px var(--wdb-accent) inset; }
.wdb-size-circle:disabled, .wdb-size-circle.is-disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* ---------- Summary accordion ---------- */
.wdb-summary { overflow: hidden; }
.wdb-summary-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 22px; background: transparent; border: none; cursor: pointer; }
.wdb-summary-label { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; color: var(--wdb-ink); }
.wdb-summary-right { display: flex; align-items: center; gap: 12px; }
.wdb-summary-total { font-size: 16px; font-weight: 800; color: var(--wdb-ink); }
.wdb-summary-arrow { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.7); font-size: 18px; line-height: 1; color: var(--wdb-muted); transition: transform .3s ease, background .2s ease; }
.wdb-summary.is-open .wdb-summary-arrow { transform: rotate(45deg); }
.wdb-summary-body {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	padding: 0 22px;
	border-top: 1px solid transparent;
	transition: max-height .35s ease, opacity .28s ease, padding .35s ease, border-color .28s ease;
}
.wdb-summary.is-open .wdb-summary-body {
	max-height: 1200px;
	opacity: 1;
	padding: 4px 22px 20px;
	border-top-color: var(--wdb-cream-border);
}
.wdb-summary-list { list-style: none; margin: 0; padding: 0; }
.wdb-summary-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--wdb-ink); border-bottom: 1px solid var(--wdb-line); }
.wdb-summary-list li:last-child { border-bottom: none; }
.wdb-summary-item-name { flex: 1; min-width: 0; }
.wdb-summary-item-qty { color: var(--wdb-muted); font-weight: 500; }
.wdb-summary-item-price { font-weight: 700; white-space: nowrap; }
.wdb-summary-pattern-row .wdb-summary-item-name { font-style: italic; color: var(--wdb-ink); }
.wdb-summary-pattern-row .wdb-summary-item-price,
.wdb-summary-pattern-row .wdb-summary-item-price .woocommerce-Price-amount { color: var(--wdb-accent); font-weight: 700; }
.wdb-summary-addons { margin-top: 4px; }
.wdb-summary-addons-head { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; }
.wdb-summary-addons-line { flex: 1; height: 2px; background: #d8daddc9; }
.wdb-summary-addons-label {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--wdb-accent);
	background: #fff;
	padding: 0 10px;
	white-space: nowrap;
}
.wdb-summary-addon-row { gap: 12px; }
.wdb-summary-addon-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	cursor: pointer;
	margin: 0;
}
.wdb-summary-addon-toggle .wdb-addon-check {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.wdb-summary-addon-box {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 2px solid var(--wdb-accent);
	border-radius: 6px;
	background: var(--wdb-accent-soft);
	transition: background .15s, border-color .15s;
	position: relative;
}
.wdb-summary-addon-toggle .wdb-addon-check:checked + .wdb-summary-addon-box {
	background: var(--wdb-accent);
	border-color: var(--wdb-accent);
}
.wdb-summary-addon-toggle .wdb-addon-check:checked + .wdb-summary-addon-box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 6px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.wdb-summary-addon-row:not(.is-selected) .wdb-summary-item-name,
.wdb-summary-addon-row:not(.is-selected) .wdb-summary-item-qty,
.wdb-summary-addon-row:not(.is-selected) .wdb-summary-item-price,
.wdb-summary-addon-row:not(.is-selected) .wdb-summary-item-price .wdb-price-now,
.wdb-summary-addon-row:not(.is-selected) .wdb-summary-item-price .wdb-price-was {
	color: var(--wdb-muted);
	text-decoration: line-through;
}
.wdb-summary-addon-row.is-selected .wdb-summary-item-name {
	color: var(--wdb-ink);
	text-decoration: none;
}
.wdb-summary-addon-row.is-selected .wdb-summary-item-qty {
	color: var(--wdb-muted);
	text-decoration: none;
}
.wdb-summary-addon-row.is-selected .wdb-summary-item-price .wdb-price-now,
.wdb-summary-addon-row.is-selected .wdb-summary-item-price .wdb-price-was + .wdb-price-now {
	color: var(--wdb-accent);
	text-decoration: none;
}

/* ---------- Custom button + green CTAs ---------- */
.wdb-scroll-to-builder,
.wdb-add-bundle {
	display: inline-block;
	background: var(--wdb-accent) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 14px 26px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	cursor: pointer;
	transition: background .15s, transform .05s;
}
.wdb-scroll-to-builder:hover,
.wdb-add-bundle:hover { background: var(--wdb-accent-dark) !important; color: #fff !important; }
.wdb-add-bundle:active,
.wdb-scroll-to-builder:active { transform: translateY(1px); }
.wdb-add-bundle:disabled, .wdb-add-bundle.disabled { opacity: .5; cursor: not-allowed; }

/* live price placeholder */
.wdb-live-price { font-weight: 800; color: var(--wdb-ink); }
/* Discounted "now" price → brand green (only when a struck "was" precedes it) */
.wdb-price-was + .wdb-price-now,
.wdb-summary-item-price .wdb-price-was + .wdb-price-now { color: var(--wdb-accent); }

/* ============================================================
 * Bottom full-width builder
 * ============================================================ */
.wdb-builder { width: 100%; max-width: 1280px; margin: 30px auto; padding: 0 16px; box-sizing: border-box; }
.wdb-builder-row { margin-bottom: 26px; }

/* Carousel */
.wdb-carousel { position: relative; }
.wdb-track-wrap { overflow: hidden; }
.wdb-track { display: flex; gap: 16px; scroll-behavior: smooth; }
.wdb-nav { position: absolute; top: 38%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--wdb-accent); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(66, 190, 122, .35); z-index: 5; color: #fff; transition: background .15s, box-shadow .15s; }
.wdb-nav:hover:not([disabled]) { background: var(--wdb-accent-dark); box-shadow: 0 4px 14px rgba(66, 190, 122, .4); }
.wdb-nav svg { width: 18px; height: 18px; }
.wdb-prev { left: -8px; }
.wdb-next { right: -8px; }
.wdb-nav[disabled] { opacity: .45; cursor: default; }
.wdb-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.wdb-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4d8dd; border: none; cursor: pointer; padding: 0; }
.wdb-dot.is-active { background: var(--wdb-accent); }

/* Cards */
.wdb-card {
	flex: 0 0 220px; max-width: 220px;
	border: 1.5px solid var(--wdb-line); border-radius: var(--wdb-radius);
	background: #fff; overflow: hidden; display: flex; flex-direction: column;
}
.wdb-addons-grid .wdb-card { flex: 0 0 auto; max-width: none; }
.wdb-card.is-oos { opacity: .55; }
.wdb-card-img { position: relative; height: 180px; background: #f7f8f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wdb-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wdb-badge { position: absolute; top: 10px; left: 10px; background: var(--wdb-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.wdb-oos-badge { position: absolute; bottom: 10px; left: 10px; background: #d63638; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.wdb-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wdb-card-titleline { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wdb-card-titleblock { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wdb-card-name { font-size: 13px; font-weight: 600; color: var(--wdb-ink); line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wdb-card-var { font-size: 12px; line-height: 1.3; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdb-card-var-kicker { font-weight: 600; color: var(--wdb-muted); }
.wdb-card-var-value { font-weight: 700; color: var(--wdb-accent); }
.wdb-card-mult { font-size: 13px; font-weight: 700; color: var(--wdb-muted); white-space: nowrap; padding-top: 1px; }
.wdb-card-price { display: flex; align-items: baseline; gap: 8px; }
.wdb-price-was { text-decoration: line-through; opacity: .55; }
.wdb-price-now { font-weight: 800; color: var(--wdb-ink); }
.wdb-card-btn { margin-top: auto; padding: 10px 12px; border: 1.5px solid var(--wdb-accent); border-radius: 8px; background: var(--wdb-accent); font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; transition: .15s; }
.wdb-card-btn:hover { background: var(--wdb-accent-dark); border-color: var(--wdb-accent-dark); }
/* Add-on cards use an outlined button */
.wdb-card--addon .wdb-card-btn { background: #fff; color: var(--wdb-accent); }
.wdb-card--addon .wdb-card-btn:hover { background: var(--wdb-accent-soft); color: var(--wdb-accent-dark); }

/* Add-ons */
.wdb-addons-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wdb-addons-line { flex: 1; height: 1px; background: var(--wdb-line); }
.wdb-addons-label { font-size: 13px; font-weight: 700; color: var(--wdb-muted); text-transform: uppercase; letter-spacing: .5px; }
.wdb-addons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.wdb-card-foot { padding: 10px 12px; border-top: 1px solid var(--wdb-line); }
.wdb-addon-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wdb-addon-track { position: relative; width: 40px; height: 22px; border-radius: 20px; background: #d4d8dd; transition: background .15s; flex-shrink: 0; }
.wdb-addon-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.wdb-addon-check { position: absolute; opacity: 0; pointer-events: none; }
.wdb-addon-check:checked + .wdb-addon-track { background: var(--wdb-accent); }
.wdb-addon-check:checked + .wdb-addon-track::after { transform: translateX(18px); }
.wdb-addon-text { font-size: 13px; font-weight: 600; color: var(--wdb-ink); }
.wdb-addon-on { display: none; } .wdb-addon-off { display: inline; }
.wdb-addon-check:checked ~ .wdb-addon-text .wdb-addon-on { display: inline; }
.wdb-addon-check:checked ~ .wdb-addon-text .wdb-addon-off { display: none; }

/* Footer total + add bundle */
.wdb-builder-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border: 1px solid var(--wdb-cream-border); border-radius: var(--wdb-radius); background: var(--wdb-cream); }
.wdb-foot-total { display: flex; align-items: baseline; gap: 10px; }
.wdb-foot-total-label { font-size: 15px; font-weight: 700; color: var(--wdb-ink); }
.wdb-foot-total-value { font-size: 22px; font-weight: 800; color: var(--wdb-ink); }
.wdb-foot-total-value .wdb-price-was { font-weight: 600; }

/* ============================================================
 * Popup
 * ============================================================ */
.wdb-popup-overlay {
	--wdb-accent: #42be7a;
	--wdb-accent-soft: #ecfbf2;
	--wdb-cream: #f7f2e8;
	--wdb-cream-border: #e8e4dc;
	--wdb-ink: #1d2327;
	--wdb-muted: #9ca3af;
	position: fixed; inset: 0; background: rgba(17,24,39,.55); display: none; align-items: center; justify-content: center; z-index: 100000; padding: 16px;
}
.wdb-popup-overlay:not([hidden]) { display: flex; }
.wdb-popup { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; max-height: 88vh; overflow: hidden; background: #fff; border-radius: 16px; padding: 28px 24px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.wdb-popup-close { position: absolute; top: 16px; right: 18px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--wdb-muted); cursor: pointer; padding: 0; z-index: 1; }
.wdb-popup-close:hover { color: var(--wdb-ink); }
.wdb-popup-title { flex-shrink: 0; text-align: center; font-size: 20px; font-weight: 800; color: var(--wdb-ink); margin: 0 36px 24px; line-height: 1.3; }
.wdb-popup-vars-wrap { flex: 1 1 auto; min-height: 0; max-height: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px 2px; }
.wdb-popup-variations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wdb-pv-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; border: 2px solid transparent; border-radius: 14px; cursor: pointer; background: var(--wdb-cream); transition: box-shadow .15s, border-color .15s; }
.wdb-pv-card:hover:not(.is-disabled) { box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.wdb-pv-card.is-selected { border-color: var(--wdb-accent); box-shadow: 0 0 0 3px var(--wdb-accent-soft); }
.wdb-pv-card.is-disabled { opacity: .4; cursor: not-allowed; }
.wdb-pv-img { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: #fff; flex-shrink: 0; }
.wdb-pv-img img { width: 100%; height: 100%; object-fit: cover; }
.wdb-pv-body { text-align: center; width: 100%; }
.wdb-pv-label { font-size: 16px; font-weight: 800; color: var(--wdb-ink); margin-bottom: 6px; line-height: 1.2; }
.wdb-pv-price { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.3; }
.wdb-pv-price .wdb-pv-price-was { font-size: 13px; font-weight: 500; color: var(--wdb-muted); text-decoration: line-through; }
.wdb-pv-price .wdb-pv-price-was .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.wdb-pv-price .wdb-pv-price-now { font-size: 14px; font-weight: 700; color: var(--wdb-accent); }
.wdb-pv-price .wdb-pv-price-now .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

.wdb-popup-qty-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px 0 14px;
	background: #fff;
	border-right: 1px solid var(--wdb-cream-border);
	align-self: stretch;
}
.wdb-popup-qty-label { font-size: 14px; font-weight: 500; color: var(--wdb-muted); margin: 0; white-space: nowrap; }
.wdb-qty-stepper {
	position: relative;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wdb-cream-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.wdb-popup-qty {
	width: 52px;
	height: 40px;
	border: none;
	border-radius: 0;
	text-align: center;
	padding: 0 24px 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--wdb-ink);
	background: transparent;
	-moz-appearance: textfield;
}
.wdb-popup-qty:focus { outline: none; }
.wdb-popup-qty::-webkit-outer-spin-button,
.wdb-popup-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wdb-qty-spin {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 22px;
	border-left: 1px solid var(--wdb-cream-border);
}
.wdb-qty-spin button {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: #faf9f7;
	color: var(--wdb-muted);
	cursor: pointer;
	padding: 0;
	transition: background .12s, color .12s;
}
.wdb-qty-spin button + button { border-top: 1px solid var(--wdb-cream-border); }
.wdb-qty-spin button:hover:not(:disabled) { background: var(--wdb-cream); color: var(--wdb-ink); }
.wdb-qty-spin button:active:not(:disabled) { background: var(--wdb-cream-border); }
.wdb-qty-spin button:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.wdb-qty-stepper.is-locked,
.wdb-popup-actions.is-qty-locked .wdb-qty-stepper { background: #f3f4f6; }
.wdb-popup-qty.is-locked { background: transparent; color: var(--wdb-muted); cursor: default; }

.wdb-popup-foot {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--wdb-cream-border);
}
.wdb-popup-total { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wdb-popup-total .wdb-popup-calc { font-size: 17px; font-weight: 800; color: var(--wdb-ink); line-height: 1.35; }
.wdb-popup-total .wdb-popup-calc .woocommerce-Price-amount { font-weight: inherit; color: inherit; }
.wdb-popup-total .wdb-popup-disc { font-size: 15px; font-weight: 700; color: var(--wdb-accent); line-height: 1.35; }
.wdb-popup-total .wdb-popup-disc .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.wdb-popup-actions {
	display: inline-flex;
	align-items: stretch;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.wdb-popup-actions.has-qty .wdb-popup-update { border-radius: 0 !important; }
.wdb-popup-update {
	background: #1a1a1a !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	min-height: 48px;
}
.wdb-popup-update:hover { background: #000 !important; }
.wdb-popup-update:disabled { opacity: .45; cursor: not-allowed; }
.wdb-pv-oos { color: #d63638; font-size: 11px; font-weight: 700; margin-top: 2px; }

/* Responsive */
@media (max-width: 600px) {
	.wdb-card { flex-basis: 64%; max-width: 64%; }
	.wdb-prev { left: 0; } .wdb-next { right: 0; }
	.wdb-foot-total-value { font-size: 20px; }
	.wdb-popup { padding: 22px 16px 18px; }
	.wdb-popup-vars-wrap { max-height: 280px; }
	.wdb-popup-variations { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.wdb-pv-img { width: 68px; height: 68px; }
	.wdb-popup-foot { flex-direction: column; align-items: stretch; gap: 14px; }
	.wdb-popup-total { text-align: center; }
	.wdb-popup-actions { width: 100%; }
	.wdb-popup-update { flex: 1; text-align: center; }
}
