/* Doc-Box — WooCommerce supplemental styles.
   Maps WooCommerce default markup onto the approved prototype design.
   (Shop / single-product / cart / checkout overrides are added as those
   templates are built. This file styles the shared bits: notices, buttons,
   messages.) */

/* Inline note icons (e.g. the checkmark under the box add-to-cart, summary notes)
   have no sizing class, so constrain them — otherwise the SVG balloons huge. */
.pd-info > p svg,
.note svg,
.buildsum p svg,
.confirm-sub svg,
.secure-note svg { width: 15px !important; height: 15px !important; vertical-align: -2px; flex: none; }

/* WooCommerce store notices / messages in brand style */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.wc-block-components-notice-banner {
	font-family: var(--font-b);
	border-radius: 16px;
	border: 1px solid var(--grey);
	background: #fff;
	color: var(--charcoal);
	box-shadow: var(--shadow-sm);
	padding: 14px 18px;
}
.woocommerce-message { border-color: var(--teal); background: var(--mint-tint); }
.woocommerce-error { border-color: var(--coral); background: var(--blush-tint); color: #6b5560; }
/* Drop WooCommerce's absolutely-positioned notice icon (it overlapped the text). */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before,
.wc-block-components-notice-banner::before { display: none !important; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews { padding-left: 18px; }

/* WooCommerce's checkout JS prepends validation notices INSIDE the checkout form,
   which is a 2-column CSS grid. Without this they land in the first grid cell and
   shove the columns out of place. Force any injected notice to span the full width. */
.checkout-grid > .woocommerce-NoticeGroup,
.checkout-grid > .woocommerce-NoticeGroup-checkout,
.checkout-grid > .woocommerce-error,
.checkout-grid > .woocommerce-message,
.checkout-grid > .woocommerce-info {
	grid-column: 1 / -1;
	margin: 0 0 6px;
}

/* WooCommerce buttons inherit the prototype .btn look */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	font-family: var(--font-h);
	font-weight: 600;
	border-radius: 999px;
	background: var(--coral);
	color: #fff;
	border: 2px solid transparent;
	padding: .85rem 1.6rem;
	transition: .2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--coral-deep);
	transform: translateY(-2px);
}

/* ---- Single product add-to-cart (matches prototype .addbar / .qty) ---- */
.docbox-atc form.cart { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 18px 0 4px; }
.docbox-atc .quantity { display: flex; align-items: center; border: 1px solid var(--grey); border-radius: 12px; overflow: hidden; }
.docbox-atc .quantity input.qty {
	width: 56px; height: 46px; border: none; text-align: center;
	font-family: var(--font-h); font-weight: 600; color: var(--navy); background: #fff;
	-moz-appearance: textfield;
}
.docbox-atc .quantity input.qty::-webkit-outer-spin-button,
.docbox-atc .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.docbox-atc button.single_add_to_cart_button {
	background: var(--coral); color: #fff; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-h); font-weight: 600; font-size: 1.08rem; padding: 1rem 2rem; cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(243,108,130,.9); transition: .2s;
}
.docbox-atc button.single_add_to_cart_button:hover { background: var(--coral-deep); transform: translateY(-2px); }

.pd-desc p { color: #4c5866; font-size: .96rem; margin: 0 0 .8rem; }
.pd-desc p:last-child { margin-bottom: 0; }

/* AJAX add-to-cart feedback (button state + hide the auto "View cart" link;
   feedback comes from the button label change + the toast instead). */
.added_to_cart.wc-forward { display: none !important; }
.btn.docbox-loading { opacity: .9; cursor: progress; }
.btn.docbox-added,
.btn.btn-primary.docbox-added { background: var(--teal) !important; box-shadow: 0 10px 24px -10px rgba(114,199,191,.9) !important; }
.btn.docbox-added:hover { background: var(--teal) !important; }
/* Neutralise WooCommerce's spinner glyph on our pill buttons. */
.woocommerce a.button.loading::after,
.btn.loading::after { display: none; }

/* =====================================================================
   CHECKOUT — map WooCommerce checkout markup onto the prototype design
   ===================================================================== */
/* Field wrappers behave like the prototype .field */
.checkout .form-row { margin: 0 0 14px; padding: 0; float: none; width: 100%; }
.checkout .form-row label { font-family: var(--font-h); font-weight: 600; font-size: .82rem; color: var(--navy); display: block; margin-bottom: .35rem; }
.checkout .form-row label .required { color: var(--coral); border: 0; text-decoration: none; }
.checkout .form-row .woocommerce-input-wrapper { width: 100%; }
.checkout .form-row input.input-text,
.checkout .form-row textarea,
.checkout .form-row select {
	width: 100%; border: 1px solid var(--grey); border-radius: 12px; padding: .72rem .9rem;
	font-family: var(--font-b); font-size: .95rem; background: var(--white); color: var(--charcoal);
}
.checkout .form-row textarea { min-height: 84px; resize: vertical; }
.checkout .form-row input.input-text:focus,
.checkout .form-row textarea:focus,
.checkout .form-row select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(114,199,191,.18); }

/* Two-up rows (Contact name/email, suburb/city, province/postal) */
.checkout .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout .field-row .form-row { width: 100%; float: none; }

/* Hidden single-country field */
#billing_country_field { display: none; }

/* select2 (province dropdown) sized to match inputs */
.checkout .select2-container .select2-selection--single {
	height: 46px; border: 1px solid var(--grey); border-radius: 12px; display: flex; align-items: center;
}
.checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: .9rem; color: var(--charcoal); }
.checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

/* Order review table -> prototype .co-items rows */
#order_review .shop_table { width: 100%; border: 0; border-collapse: collapse; background: transparent; margin: 0; }
#order_review .shop_table thead { display: none; }
#order_review .shop_table th,
#order_review .shop_table td { border: 0; padding: .4rem 0; font-size: .92rem; background: transparent; }
#order_review .shop_table td.product-name { color: var(--charcoal); }
#order_review .shop_table .product-quantity,
#order_review .shop_table td.product-name .product-quantity { color: #8994a0; }
#order_review .shop_table td.product-total,
#order_review .shop_table .cart-subtotal td,
#order_review .shop_table .order-total td,
#order_review .shop_table .shipping td { text-align: right; }
#order_review .shop_table .cart-subtotal { border-top: 1px dashed var(--grey); }
#order_review .shop_table .cart-subtotal th,
#order_review .shop_table .cart-subtotal td { padding-top: .7rem; }
#order_review .shop_table th { font-family: var(--font-h); font-weight: 600; text-align: left; color: var(--charcoal); }
#order_review .shop_table .order-total { border-top: 2px solid var(--grey); }
#order_review .shop_table .order-total th,
#order_review .shop_table .order-total td { padding-top: .85rem; font-family: var(--font-h); font-weight: 700; color: var(--navy); font-size: 1.2rem; }
#order_review .shop_table .order-total .amount { color: var(--navy); }
/* Shipping method radios (if ever more than one) */
#order_review #shipping_method { list-style: none; margin: .3rem 0 0; padding: 0; }
#order_review #shipping_method li { padding: .15rem 0; }

/* Payment methods -> prototype .pay-opts */
#payment { background: transparent; border-radius: 0; }
#payment ul.payment_methods { border: 0; padding: 0; margin: 16px 0 6px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
#payment ul.payment_methods li { border: 1px solid var(--grey); border-radius: 14px; padding: 14px 16px; background: #fff; }
#payment ul.payment_methods li:has(input:checked) { border-color: var(--teal); background: var(--mint-tint); }
#payment ul.payment_methods li input[type="radio"] { accent-color: var(--teal); margin-right: .5rem; }
#payment ul.payment_methods li label { font-family: var(--font-h); font-weight: 600; color: var(--navy); display: inline; }
#payment ul.payment_methods li img { display: none; }
#payment .payment_box { background: var(--white); border: 0; border-radius: 12px; padding: 8px 2px 0; margin: 8px 0 0; font-size: .85rem; color: #6a7580; }
#payment .payment_box::before { display: none; }
#payment .woocommerce-terms-and-conditions-wrapper { margin: 10px 0; font-size: .85rem; }
#payment .place-order { padding: 12px 0 0; margin: 0; float: none; width: 100%; }
#payment #place_order {
	width: 100%; background: var(--coral); color: #fff; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-h); font-weight: 600; font-size: 1.08rem; padding: 1rem 2rem; cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(243,108,130,.9); transition: .2s; float: none;
}
#payment #place_order:hover { background: var(--coral-deep); transform: translateY(-2px); }

/* Payfast "pay now" page. The Payfast plugin outputs its submit as
   input#submit_payfast_payment_form with class "button-alt" (not WooCommerce's
   ".button"), so the theme's button styles miss it and it shows small, while the
   "Cancel order & restore cart" link (an a.button) picks up the big primary pink.
   Flip that: make Pay the prominent primary action and Cancel a small secondary link. */
#payfast_payment_form { text-align: center; }
#payfast_payment_form #submit_payfast_payment_form,
input#submit_payfast_payment_form,
#payfast_payment_form input.button-alt {
	display: block; width: 100%; max-width: 420px; margin: 4px auto 10px;
	background: var(--coral); color: #fff; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-h); font-weight: 600; font-size: 1.08rem; padding: 1rem 2rem;
	cursor: pointer; box-shadow: 0 10px 24px -10px rgba(243,108,130,.9); transition: .2s;
}
#payfast_payment_form #submit_payfast_payment_form:hover,
input#submit_payfast_payment_form:hover { background: var(--coral-deep); transform: translateY(-2px); }

#payfast_payment_form a.cancel,
#payfast_payment_form a.button.cancel,
.woocommerce a.button.cancel {
	display: inline-block; width: auto !important; float: none !important;
	background: transparent !important; color: #8994a0 !important; box-shadow: none !important;
	border: 0 !important; border-radius: 0 !important; padding: .45rem !important;
	font-size: .85rem !important; font-weight: 400 !important; text-decoration: underline;
}
#payfast_payment_form a.cancel:hover,
.woocommerce a.button.cancel:hover { color: var(--navy) !important; background: transparent !important; transform: none !important; }

/* Checkout coupon / login prompts hidden (not in the prototype) */
.checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle { display: none; }

/* =====================================================================
   PRODUCT BUNDLES — box configurator, mapped onto the prototype box page
   ===================================================================== */
.bundle_form .db-bundle-mandatory { display: none !important; }

/* Optional items (upgrades / add-ons) -> prototype .upsell .row */
.db-optional { margin: 0; }
/* Small clarifying note under a swap-type upgrade (you get the upgrade, not both). */
.db-swap-note {
	font-family: var(--font-b);
	font-size: .74rem;
	line-height: 1.35;
	color: #8994a0;
	margin: 5px 0 0;
	padding-left: 2px;
}
.db-optional .bundled_product {
	display: flex; align-items: center; gap: .6rem; border: 1px solid var(--grey);
	border-radius: 14px; padding: 12px 14px !important; transition: .15s; margin: 0 !important; float: none; width: 100%; min-height: 0;
}
.db-optional .bundled_product::before,
.db-optional .bundled_product::after { display: none; content: none; }
.db-optional .bundled_product:hover { border-color: var(--teal); }
.db-optional .bundled_product_images,
.db-optional .bundled_product_image,
.db-optional .bundled_product_title_link,
.db-optional .bundled_product_description,
.db-optional .bundled_item_cart_content .quantity { display: none !important; }
/* Product Bundles renders the item's short description as .bundled_product_excerpt
   (separate from .bundled_product_description). The theme never shows bundled-item
   descriptions, so hide the excerpt everywhere it appears — build-your-own grid and
   the box upgrade / add-on lists — so products with a short description look like the rest. */
.bundled_product_excerpt { display: none !important; }

/* Variable add-on selector (e.g. Powerade "Flavours") inside the Recommended add-ons
   list. Without this the dropdown falls back to raw WooCommerce styling; mirror the main
   product's variable selector (.db-variable) so the font, borders and colours match. */
.db-optional table.variations,
.db-optional table.variations tbody,
.db-optional table.variations tr,
.db-optional table.variations td,
.db-optional table.variations th { display: block; border: 0; padding: 0; margin: 0; background: transparent; }
.db-optional table.variations .label { display: none; }
.db-optional table.variations select {
	border: 1px solid var(--grey); border-radius: 12px; padding: .5rem .8rem; min-width: 150px;
	font-family: var(--font-b); font-size: .9rem; background: var(--white); color: var(--charcoal);
}
.db-optional table.variations select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(114,199,191,.18); }
.db-optional .single_variation_wrap .woocommerce-variation-price,
.db-optional .single_variation_wrap .woocommerce-variation-availability,
.db-optional .reset_variations { display: none !important; }

/* Checkout: note shown in place of the delivery address when collecting. */
.db-collect-note {
	font-family: var(--font-b);
	font-size: .9rem;
	line-height: 1.45;
	color: #5a6572;
	margin: 2px 0 0;
}

/* Cart: editable quantity stepper */
.cart-qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--grey); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper .qbtn {
	width: 30px; height: 30px; border: 0; background: #fff; color: var(--navy);
	font-size: 1.05rem; line-height: 1; cursor: pointer; font-family: var(--font-h);
	display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
.qty-stepper .qbtn:hover { background: var(--mint-tint); color: var(--teal); }
.qty-stepper .qval {
	width: 36px; height: 30px; border: 0; border-left: 1px solid var(--grey); border-right: 1px solid var(--grey);
	text-align: center; font-family: var(--font-h); font-weight: 600; color: var(--navy); font-size: .85rem;
	background: #fff; padding: 0; pointer-events: none;
}
.qty-stepper.loading { opacity: .5; pointer-events: none; }
.qunit { font-size: .82rem; color: #8994a0; }

/* Product page: +/- buttons flanking the quantity input (added by main.js). */
.docbox-atc .quantity .qbtn {
	width: 40px; height: 46px; border: 0; background: #fff; color: var(--navy);
	font-size: 1.2rem; line-height: 1; cursor: pointer; font-family: var(--font-h);
	display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s;
}
.docbox-atc .quantity .qbtn:hover { background: var(--mint-tint); color: var(--teal); }
.docbox-atc .quantity input.qty { width: 48px; border-left: 1px solid var(--grey); border-right: 1px solid var(--grey); border-radius: 0; }

/* Cart: coupon field + discount row */
.summary .coupon-form { display: flex; gap: 8px; margin-top: 14px; }
.summary .coupon-input {
	flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid var(--grey); border-radius: 12px; font-family: var(--font-b);
	font-size: .9rem; color: var(--navy); background: #fff;
}
.summary .coupon-input:focus { outline: none; border-color: var(--teal); }
.summary .coupon-apply {
	flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
	background: var(--navy); color: #fff; font-family: var(--font-h); font-weight: 600;
	font-size: .9rem; cursor: pointer; transition: background .15s, opacity .15s;
}
.summary .coupon-apply:hover { background: var(--teal); }
.summary .coupon-apply.loading { opacity: .6; pointer-events: none; }
.summary .coupon-msg { font-family: var(--font-b); font-size: .82rem; color: var(--teal); margin-top: 8px; }
.summary .coupon-msg.is-error { color: var(--coral); }
.summary .r.discount { color: var(--teal); }
.summary .r.discount .cpn { font-family: var(--font-h); font-weight: 600; text-transform: uppercase; font-size: .78rem; }
.summary .coupon-remove { border: 0; background: none; color: #b9c2cc; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; vertical-align: middle; }
.summary .coupon-remove:hover { color: var(--coral); }

/* Cart: mobile layout so the item row never overflows narrow screens.
   Thumb on the left spanning two rows; name + stepper on row one; price and
   Remove on row two. */
@media (max-width: 560px) {
	.citem {
		display: grid;
		grid-template-columns: 60px minmax(0, 1fr) auto;
		column-gap: 12px; row-gap: 8px; align-items: center; padding: 12px;
	}
	.citem .th { grid-column: 1; grid-row: 1 / span 2; width: 60px; height: 60px; align-self: start; }
	.citem .info { grid-column: 2 / 4; grid-row: 1; min-width: 0; }
	.citem .info h4 { font-size: .95rem; }
	.citem .pr { grid-column: 2; grid-row: 2; }
	.citem .rm { grid-column: 3; grid-row: 2; justify-self: end; }
	.cart-qty-row { flex-wrap: wrap; }
}
.db-optional .details { display: flex; align-items: center; gap: .6rem; flex: 1; flex-wrap: nowrap; width: auto; padding: 0 !important; margin: 0 !important; }
.db-optional h4.bundled_product_title {
	order: 1; flex: 1 1 auto; margin: 0 !important; padding: 0; font-family: var(--font-h); font-weight: 500;
	font-size: .92rem; color: var(--navy); min-width: 0; line-height: 1.25;
}
.db-optional .bundled_product_title .item_qty,
.db-optional .bundled_product_title .item_suffix { display: none; }
.db-optional label.bundled_product_optional_checkbox {
	order: 2; margin: 0 0 0 auto; display: flex; align-items: center; justify-content: flex-start; gap: .45rem;
	position: relative; width: 184px; flex: none; padding-left: 26px;
	font-family: var(--font-h); font-weight: 600; color: var(--coral); font-size: .85rem; white-space: nowrap; cursor: pointer;
}
/* Three tidy columns: checkbox pinned left, the "Add for" label left-aligned,
   and the price filling the rest so every amount right-aligns to the same edge. */
.db-optional input.bundled_product_checkbox { width: 20px; height: 20px; accent-color: var(--teal); margin: 0; flex: none; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.db-optional .bundled_product_optional_checkbox .price { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.db-optional .bundled_product_optional_checkbox .price,
.db-optional .bundled_product_optional_checkbox .price .amount,
.db-optional .bundled_product_optional_checkbox .price ins .amount { color: var(--coral) !important; font-weight: 700; }
.db-optional .bundled_product_optional_checkbox .price ins { text-decoration: none; order: 0; }
/* Sale add-on price: stack the old struck-through price UNDER the new one — same
   size, with breathing room above and below — so "Add for R700" stays one line
   and the row grows to fit (per client). */
.db-optional .bundled_product_optional_checkbox .price del,
.db-optional .bundled_product_optional_checkbox .price del .amount { color: #b9c2cc !important; font-weight: 400; }
.db-optional .bundled_product_optional_checkbox .price del { order: 1; margin: 0 !important; font-size: 1em; line-height: 1; white-space: nowrap; }
/* On a sale row the price is two lines — align "Add for" AND the checkbox to the
   top (R700) line instead of the row's vertical centre. */
.db-optional label.bundled_product_optional_checkbox:has(.price del) { align-items: baseline; }
.db-optional label.bundled_product_optional_checkbox:has(.price del) input.bundled_product_checkbox { top: 0; transform: none; }
.db-optional .bundled_product:has(input.bundled_product_checkbox:checked) { border-color: var(--teal); background: var(--mint-tint); }

/* Add-to-cart wrap -> prototype .addbar */
.db-addbar .cart.bundle_data { margin: 18px 0 0; padding: 0; border: 0; background: transparent; }
.db-addbar .bundle_wrap { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; width: 100%; margin: 0; }
.db-addbar .bundle_error { width: 100%; order: 4; margin: 0; }
.db-addbar .bundle_price { order: 3; margin-left: auto; }
.db-addbar .bundle_price .price { font-family: var(--font-h); font-weight: 700; color: var(--navy); font-size: 1.4rem; margin: 0; }
.db-addbar .bundle_price .price del { color: #8994a0; font-weight: 400; font-size: 1rem; }
.db-addbar .bundle_button { display: flex; align-items: center; gap: .7rem; order: 1; margin: 0; }
.db-addbar .bundle_button .quantity { display: flex; align-items: center; border: 1px solid var(--grey); border-radius: 12px; overflow: hidden; }
.db-addbar .bundle_button .quantity input.qty { width: 56px; height: 46px; border: none; text-align: center; font-family: var(--font-h); font-weight: 600; color: var(--navy); background: #fff; -moz-appearance: textfield; }
.db-addbar .bundle_button .quantity input.qty::-webkit-outer-spin-button,
.db-addbar .bundle_button .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.db-addbar button.bundle_add_to_cart_button {
	background: var(--coral); color: #fff; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-h); font-weight: 600; font-size: 1.08rem; padding: 1rem 2rem; cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(243,108,130,.9); transition: .2s;
}
.db-addbar button.bundle_add_to_cart_button:hover { background: var(--coral-deep); transform: translateY(-2px); }
/* The bundle price prefix ("From:") stays on the top price only. */

/* Variable fixed contents -> prototype .optgroup variation selectors */
.db-variable-items { display: flex; flex-direction: column; gap: 12px; }
.db-variable .bundled_product { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0; padding: 0; }
.db-variable .bundled_product::before,
.db-variable .bundled_product::after { display: none; content: none; }
.db-variable .bundled_product_images,
.db-variable .bundled_product_image,
.db-variable .bundled_product_title_link,
.db-variable .bundled_product_description,
.db-variable .single_variation_wrap .woocommerce-variation-price,
.db-variable .single_variation_wrap .woocommerce-variation-availability,
.db-variable .reset_variations { display: none !important; }
.db-variable h4.bundled_product_title { margin: 0; padding: 0; font-family: var(--font-h); font-weight: 500; font-size: .92rem; color: var(--navy); flex: 0 0 auto; }
.db-variable .details { flex: 1; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 0; }
.db-variable table.variations { margin: 0; }
.db-variable table.variations,
.db-variable table.variations tbody,
.db-variable table.variations tr,
.db-variable table.variations td,
.db-variable table.variations th { display: block; border: 0; padding: 0; background: transparent; }
.db-variable table.variations td.label { display: none; }
.db-variable table.variations select {
	border: 1px solid var(--grey); border-radius: 12px; padding: .55rem .9rem; min-width: 160px;
	font-family: var(--font-b); font-size: .95rem; background: var(--white); color: var(--charcoal);
}
.db-variable table.variations select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(114,199,191,.18); }

/* =====================================================================
   BUILD YOUR OWN — PB items mapped onto the prototype .bitem cards
   ===================================================================== */
.build_form .bitem { padding: 0; overflow: hidden; }
.build_form .bitem .bundled_product { display: flex; flex-direction: column; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.build_form .bitem .bundled_product::before,
.build_form .bitem .bundled_product::after { content: none; display: none; }
.build_form .bitem .bundled_product_images { margin: 0; width: 100%; float: none; opacity: 1 !important; }
.build_form .bitem .bundled_product_images figure,
.build_form .bitem .bundled_product_image { margin: 0; }
.build_form .bitem .bundled_product_images img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.build_form .bitem .bundled_product_title_link,
.build_form .bitem .bundled_product_description,
.build_form .bitem .bundled_item_qty,
.build_form .bitem .quantity { display: none !important; }
.build_form .bitem .details { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
/* Keep every "Add for" button bottom-aligned. Simple items carry an empty .cart div
   (display:block, 0px) while a variable item's variation container is display:none until
   it is selected; that asymmetry shifts variable cards (e.g. Powerade) down by one
   flex-gap. Collapse the empty simple-item container so all cards share one structure.
   The variation container (.bundled_item_cart_content) is left alone so its flavour
   dropdown still appears when the item is selected. */
.build_form .bitem .cart:not(.bundled_item_cart_content) { display: none; }
/* Keep a consistent breathing space below the "Add for" button on every card. The
   Product Bundles plugin's own CSS zeroes the card padding, so this needs !important. */
.build_form .bitem .details { padding-bottom: 16px !important; }
.build_form .bitem h4.bundled_product_title {
	font-family: var(--font-h); color: var(--navy); font-size: .85rem; margin: 0; font-weight: 600; line-height: 1.25;
	/* Reserve two lines so every card is the same height and the buttons align. */
	min-height: 2.5em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Variable item selector (panties/rehidrat) inside a build card */
.build_form .bitem table.variations,
.build_form .bitem table.variations tbody,
.build_form .bitem table.variations tr,
.build_form .bitem table.variations td { display: block; border: 0; padding: 0; margin: 0; }
.build_form .bitem table.variations td.label { display: none; }
.build_form .bitem table.variations select { width: 100%; border: 1px solid var(--grey); border-radius: 8px; padding: .35rem .5rem; font-size: .8rem; }
.build_form .bitem .woocommerce-variation-price,
.build_form .bitem .woocommerce-variation-availability,
.build_form .bitem .reset_variations { display: none !important; }
/* The optional checkbox becomes the prototype .addbtn */
.build_form .bitem input.bundled_product_checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.build_form .bitem label.bundled_product_optional_checkbox {
	margin: auto 0 0; border: 1px solid var(--teal); color: var(--navy); background: var(--mint-tint);
	border-radius: 10px; padding: .5rem; font-family: var(--font-h); font-weight: 600; font-size: .82rem;
	cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .3rem; transition: .15s; text-align: center; white-space: nowrap;
	/* Full width so every "Add for" button is the same size regardless of text length
	   (e.g. a longer "Add for R45.99 each" lines up with the rest instead of overflowing). */
	width: 100%; box-sizing: border-box;
}
.build_form .bitem label.bundled_product_optional_checkbox .price,
.build_form .bitem label.bundled_product_optional_checkbox .price .amount { color: inherit !important; font-weight: 700; }
.build_form .bitem label.bundled_product_optional_checkbox:hover { background: var(--teal); color: #fff; }
.build_form .bitem label.bundled_product_optional_checkbox .price { color: inherit; font-weight: 700; }
.build_form .bitem .bundled_product:has(input.bundled_product_checkbox:checked) label.bundled_product_optional_checkbox {
	background: var(--navy); color: #fff; border-color: var(--navy);
}

/* Summary bar (Total + Add box to cart) */
.buildsum .db-buildbar .cart.bundle_data { display: block; padding: 0; margin: 0; border: 0; background: transparent; }
.buildsum .db-buildbar .bundle_wrap { width: 100%; }
/* We display our own reliable computed total (.sumtot) instead of PB's. */
.buildsum .db-buildbar .bundle_price { display: none !important; }
.buildsum .db-buildbar .bundle_button .quantity { display: none !important; }
.buildsum .db-buildbar button.bundle_add_to_cart_button {
	width: 100%; background: var(--coral); color: #fff; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-h); font-weight: 600; font-size: 1.08rem; padding: 1rem 2rem; cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(243,108,130,.9); transition: .2s;
}
.buildsum .db-buildbar button.bundle_add_to_cart_button:hover { background: var(--coral-deep); transform: translateY(-2px); }
.buildsum .db-buildbar button.bundle_add_to_cart_button[disabled] { opacity: .5; cursor: not-allowed; }
.buildsum .db-buildbar .bundle_error { font-size: .82rem; color: #8994a0; margin: 0 0 .5rem; list-style: none; padding: 0; }

/* =====================================================================
   RESPONSIVE / UI POLISH
   ===================================================================== */
/* Hamburger swaps to an X while the mobile drawer is open */
.hamburger .ic-menu,
.hamburger .ic-close { display: inline-flex; align-items: center; justify-content: center; }
.hamburger .ic-close { display: none; }
body.db-drawer-open .hamburger .ic-menu { display: none; }
body.db-drawer-open .hamburger .ic-close { display: inline-flex; }

@media (max-width: 560px) {
	/* Neater button text on small screens */
	.btn { font-size: .9rem; }
	.btn-lg { font-size: .96rem; padding: .9rem 1.4rem; }

	/* Centre the footer content on mobile */
	footer .fgrid { text-align: center; }
	footer .flogo,
	footer .social { justify-content: center; }
	footer .ftag,
	footer p { margin-left: auto; margin-right: auto; }
	footer .fbot { justify-content: center; text-align: center; }
}

/* Bundle contents shown as indented "Included" rows under their box */
.citem.citem-child {
	margin-left: 28px; border-style: dashed; background: #fbfcfd; padding: 10px 14px;
}
.citem.citem-child .th { width: 54px; height: 54px; }
.citem.citem-child .info h4 { font-size: .92rem; }
@media (max-width: 560px) {
	.citem.citem-child { margin-left: 14px; }
}

/* Checkout review + confirmation: bundled children as subtle "Included" rows */
#order_review .cart_item_child td.product-name,
.co-items .r.db-child span:first-child { padding-left: 14px; color: #8994a0; font-size: .88rem; }
#order_review .db-included,
.co-items .r.db-child .db-included { color: var(--teal); font-family: var(--font-h); font-weight: 600; font-size: .82rem; }
