/* ==========================================================================
   Vinding — Cart + Checkout
   Loaded only on the cart and checkout pages (inc/cart-checkout.php).

   1. Page frame (heading, steps, two columns)
   2. Cards, buttons, links, ticks
   3. Cart items
   4. Under the list (discount code, continue browsing)
   5. Summary (totals, note, trust lines)
   6. Checkout fields
   7. Payment methods
   8. Order note
   9. "Your order" mini list
   10. Place order + terms
   11. Notices + coupon / login toggles
   12. Small screens

   Older checkout rules in refine.css / woocommerce.css are overridden here,
   scoped to .vc-cart / .vc-checkout so nothing else on the site changes.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Page frame
   ---------------------------------------------------------------------- */
.vc-main { padding: 48px var(--vd-gutter) 120px; }
.vd-checkout-wrap { max-width: var(--vd-container); }

.vc-head {
	display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
	margin-bottom: 28px;
}
.vc-title {
	font-family: var(--vd-font-serif); font-style: italic; font-weight: 300;
	font-size: var(--vd-fs-page); line-height: 1.05; margin: 0;
}
.vc-head--solo { grid-template-columns: 1fr; }
.vc-intro { margin: 0; font-size: var(--vd-fs-body); line-height: 1.5; max-width: 56ch; }

.vc-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.vc-steps li { display: flex; align-items: center; gap: 10px; font-size: var(--vd-fs-body); font-weight: 700; color: var(--vd-muted); }
.vc-steps li + li::before { content: ""; width: 32px; height: 1.5px; background: var(--vd-border); }
.vc-steps__n {
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	border: 1.5px solid var(--vd-border); font-size: var(--vd-fs-body); line-height: 1;
}
.vc-steps .is-on { color: var(--vd-ink); }
.vc-steps .is-on .vc-steps__n { background: var(--vd-ink); border-color: var(--vd-ink); color: #fff; }
.vc-steps .is-done .vc-steps__n { background: var(--vd-accent); border-color: var(--vd-accent); color: var(--vd-ink); }

.vc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 32px; align-items: start; }
.vc-summary { position: sticky; top: 108px; }

/* -------------------------------------------------------------------------
   2. Cards, buttons, links, ticks
   ---------------------------------------------------------------------- */
.vc-card { background: var(--vd-white); border-radius: var(--vd-radius-lg); padding: 28px; }
.vc-card + .vc-card,
.vc-main-col > * + .vc-card,
#customer_details .vc-card + .vc-card { margin-top: 20px; }
.vc-checkout #customer_details { margin: 0; }
#customer_details + .vc-card { margin-top: 20px; }

.vc-card__title {
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
	font-family: var(--vd-font-serif); font-style: italic; font-weight: 400;
	font-size: var(--vd-fs-subtitle); line-height: 1.1; margin: 0 0 20px; color: var(--vd-ink);
}
.vc-card__title--split { justify-content: space-between; }
.vc-checkout #order_review_heading { font-family: var(--vd-font-serif); font-style: italic; font-weight: 400; font-size: var(--vd-fs-subtitle); margin: 0 0 20px; }
.vc-card__n {
	flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	background: var(--vd-surface-2); font-family: var(--vd-font-sans); font-style: normal;
	font-weight: 700; font-size: var(--vd-fs-body);
}
.vc-card__sub { margin: -8px 0 20px; font-size: var(--vd-fs-body); color: var(--vd-muted); }
.vc-tag {
	margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
	background: var(--vd-surface-2); border-radius: var(--vd-radius-pill); padding: 4px 12px;
	font-family: var(--vd-font-sans); font-style: normal; font-size: var(--vd-fs-body); font-weight: 700; color: var(--vd-ink);
}
.vc-muted { color: var(--vd-muted); }
.vc-ic { width: 20px; height: 20px; flex: none; }

.vc-btn,
.vc-checkout #place_order {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
	height: 56px; padding: 0 28px !important; margin: 0;
	border: 0 !important; border-radius: var(--vd-radius-pill) !important;
	background: var(--vd-accent) !important; color: var(--vd-ink) !important;
	font-family: var(--vd-font-sans); font-weight: 700; font-size: var(--vd-fs-body) !important;
	line-height: 1; letter-spacing: .05px; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: transform .35s var(--vd-ease), background-color .35s var(--vd-ease), opacity .35s var(--vd-ease);
}
.vc-btn:hover,
.vc-checkout #place_order:hover { background: #ecf86a !important; transform: translateY(-2px); color: var(--vd-ink) !important; }
.vc-btn--full,
.vc-checkout #place_order { width: 100%; }
.vc-btn__arr { display: inline-block; transition: transform .5s var(--vd-ease); }
.vc-btn:hover .vc-btn__arr { transform: translateX(5px); }
.vc-btn[aria-disabled="true"] { opacity: .45; }
.vc-btn[aria-disabled="true"]:hover { transform: none; background: var(--vd-accent) !important; }
.vc-checkout #place_order::after { content: "\2192"; margin-left: 4px; display: inline-block; transition: transform .5s var(--vd-ease); }
.vc-checkout #place_order:hover::after { transform: translateX(5px); }

.vc-link {
	display: inline-flex; align-items: center; gap: 6px; color: var(--vd-ink);
	font-family: var(--vd-font-sans); font-style: normal; font-weight: 700; font-size: var(--vd-fs-body);
	text-decoration: none; border-bottom: 1.5px solid var(--vd-ink-30); padding-bottom: 1px;
	transition: border-color .3s var(--vd-ease);
}
.vc-link:hover { border-color: var(--vd-ink); }
.vc-link--sm { font-size: var(--vd-fs-body); }

.vc-check,
.vc-checkout .form-row label.vc-check,
.vc-checkout .woocommerce-terms-and-conditions-wrapper .form-row label.checkbox {
	display: flex !important; gap: 12px; align-items: flex-start; margin: 0 0 18px;
	font-size: var(--vd-fs-body); font-weight: 500; line-height: 1.45; text-transform: none; cursor: pointer;
}
.vc-check input[type="checkbox"],
.vc-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	width: 20px; height: 20px; margin: 2px 0 0 !important; flex: none; accent-color: var(--vd-ink);
}
.vc-check a { text-decoration: underline; text-underline-offset: 3px; }
.vc-check__hint { margin: 10px 0 0; font-size: var(--vd-fs-body); color: var(--vd-danger); text-align: center; }
.vc-shake { animation: vc-shake .45s var(--vd-ease); }
@keyframes vc-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* -------------------------------------------------------------------------
   3. Cart items
   ---------------------------------------------------------------------- */
.vc-items { display: grid; gap: 16px; }
.vc-item {
	display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 22px; align-items: start;
	background: var(--vd-white); border-radius: var(--vd-radius-lg); padding: 18px;
	transition: box-shadow var(--vd-hover-lift-dur, .5s) var(--vd-ease);
}
.vc-item:hover { box-shadow: var(--vd-shadow-card); }
.vc-item__media {
	display: block; width: 140px; aspect-ratio: 1; border-radius: var(--vd-radius-md);
	overflow: hidden; background: var(--vd-surface);
}
.vc-item__media img {
	width: 100%; height: 100%; object-fit: cover; display: block; margin: 0;
	transition: transform var(--vd-hover-zoom-dur, 1.2s) var(--vd-ease);
}
.vc-item:hover .vc-item__media img { transform: scale(var(--vd-hover-zoom, 1.05)); }
.vc-item__media--bottle img { object-fit: contain; padding: 10px; }

.vc-item__body { min-width: 0; padding-top: 4px; }
.vc-item__type {
	margin: 0 0 6px; font-size: var(--vd-fs-body); font-weight: 700; color: var(--vd-coral);
	text-transform: uppercase; letter-spacing: .06em;
}
.vc-item__name { margin: 0 0 4px; font-family: var(--vd-font-sans); font-size: var(--vd-fs-h2); font-weight: 700; line-height: 1.25; }
.vc-item__name a { color: inherit; text-decoration: none; }
.vc-item__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vc-item__from { margin: 0 0 12px; font-size: var(--vd-fs-body); color: var(--vd-muted); display: flex; align-items: center; gap: 8px; }
.vc-item__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vc-item__meta li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--vd-fs-body); color: var(--vd-muted); }
.vc-item__meta .vc-ic { color: var(--vd-ink); margin-top: 5px; }
.vc-item__from { align-items: flex-start; }
.vc-item__meta .vc-item__ok,
.vc-item__meta .vc-item__ok .vc-ic { color: var(--vd-success); }
.vc-item__meta .vc-item__warn,
.vc-item__meta .vc-item__warn .vc-ic { color: var(--vd-danger); }

.vc-item__side {
	display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
	gap: 16px; align-self: stretch; padding-top: 4px; min-width: 170px;
}
.vc-item__price { font-size: var(--vd-fs-h2); font-weight: 800; white-space: nowrap; text-align: right; }
.vc-item__each { display: block; text-align: right; font-size: var(--vd-fs-body); color: var(--vd-muted); font-weight: 500; }
.vc-item__actions { display: flex; align-items: center; gap: 14px; }
.vc-item__fixed { font-size: var(--vd-fs-body); color: var(--vd-muted); font-weight: 600; }

/* Quantity stepper (buttons added by cart.php) */
.vc-qty .quantity {
	display: inline-flex !important; align-items: center; height: 50px; margin: 0 !important;
	border: 1.5px solid var(--vd-border-soft); border-radius: var(--vd-radius-pill);
}
.vc-qty .vc-qty__btn {
	width: 40px; height: 100%; border: 0; padding: 0; background: none; color: var(--vd-ink);
	font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: var(--vd-radius-pill);
	transition: background .3s var(--vd-ease);
}
.vc-qty .vc-qty__btn:hover { background: var(--vd-surface-2); }
.vc-cart .vc-qty .quantity input.qty {
	width: 48px !important; height: 100%; min-height: 0; padding: 0; margin: 0;
	border: 0 !important; background: none !important; box-shadow: none;
	text-align: center; font-weight: 700; font-size: var(--vd-fs-body); color: var(--vd-ink);
	-moz-appearance: textfield; appearance: textfield;
}
.vc-cart .vc-qty input.qty::-webkit-outer-spin-button,
.vc-cart .vc-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Remove ✕ */
.vc-cart .product-remove { display: inline-flex; }
.vc-cart a.remove.vc-remove {
	display: inline-grid !important; place-items: center; width: 40px !important; height: 40px !important;
	border-radius: 50%; background: var(--vd-surface); color: var(--vd-muted) !important;
	font-size: var(--vd-fs-body); line-height: 1; text-decoration: none; transition: background .3s, color .3s;
}
.vc-cart a.remove.vc-remove:hover { background: #fbe3dd !important; color: var(--vd-coral) !important; }

/* Cart is refreshing */
.vc-cart .blockUI.blockOverlay { border-radius: var(--vd-radius-lg); }

/* -------------------------------------------------------------------------
   4. Under the list
   ---------------------------------------------------------------------- */
.vc-below { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.vc-coupon summary {
	cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: var(--vd-fs-body); padding: 6px 0;
}
.vc-coupon summary::-webkit-details-marker { display: none; }
.vc-coupon summary::after {
	content: ""; width: 7px; height: 7px; margin-top: -4px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); transition: transform .35s var(--vd-ease);
}
.vc-coupon[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.vc-coupon__row {
	display: flex; gap: 8px; margin-top: 12px; max-width: 420px;
	background: var(--vd-white); border-radius: var(--vd-radius-pill); padding: 5px 5px 5px 20px;
}
.vc-cart .vc-coupon__row input.input-text {
	flex: 1; min-width: 0; width: auto; height: 44px; border: 0; outline: 0; padding: 0;
	background: none; box-shadow: none; font-size: var(--vd-fs-body);
}
.vc-cart .vc-coupon__row .button {
	border: 0; background: var(--vd-ink) !important; color: #fff !important;
	border-radius: var(--vd-radius-pill); padding: 0 20px; height: 44px; margin: 0;
	font-weight: 700; font-size: var(--vd-fs-body); text-transform: uppercase; cursor: pointer;
}
.vc-cart .vc-below .vc-link { margin-top: 6px; }
.vc-cart .vc-update {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}

/* -------------------------------------------------------------------------
   5. Summary
   ---------------------------------------------------------------------- */
.vc-rows { width: 100%; border: 0; border-collapse: collapse; margin: 0; background: none; }
.vc-rows th,
.vc-rows td {
	padding: 6px 0; border: 0 !important; background: none !important; vertical-align: top;
	font-family: var(--vd-font-sans); font-size: var(--vd-fs-body); color: var(--vd-ink);
}
.vc-rows th { text-align: left; font-weight: 500; }
.vc-rows td { text-align: right; font-weight: 600; }
.vc-rows td.vc-muted { color: var(--vd-muted); font-weight: 500; }
.vc-rows .cart-discount td,
.vc-rows .cart-discount th { color: var(--vd-success); }
.vc-rows .woocommerce-remove-coupon { font-size: var(--vd-fs-body); color: var(--vd-muted); margin-left: 6px; }

/* Delivery options (one or more) */
.vc-rows .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vc-rows .woocommerce-shipping-methods li { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0; }
.vc-rows .woocommerce-shipping-methods input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--vd-ink); }
.vc-rows .woocommerce-shipping-methods label { font-weight: 600; margin: 0; }
.vc-rows .woocommerce-shipping-destination,
.vc-rows .woocommerce-shipping-totals td p { margin: 4px 0 0; font-size: var(--vd-fs-body); font-weight: 500; color: var(--vd-muted); }

.vc-total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	border-top: 1px solid var(--vd-border-soft); margin-top: 12px; padding-top: 18px;
}
.vc-total__label { font-size: var(--vd-fs-body); font-weight: 700; }
.vc-total__value { text-align: right; }
.vc-total-amount { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--vd-ink); }
.vc-total-amount .amount { color: inherit !important; font-size: inherit !important; }
.vc-total-amount small { display: block; margin-top: 6px; font-size: var(--vd-fs-body); font-weight: 500; color: var(--vd-muted); }
.vc-total__value > small { display: block; margin-top: 6px; font-size: var(--vd-fs-body); font-weight: 500; color: var(--vd-muted); }

.vc-note {
	display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0;
	background: var(--vd-surface-2); border-radius: var(--vd-radius-md); padding: 14px 16px;
	font-size: var(--vd-fs-body); line-height: 1.45;
}
.vc-note .vc-ic { width: 20px; height: 20px; margin-top: 1px; }
.vc-cart .vc-totals + .vc-check { margin-top: 22px; }

.vc-trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.vc-trust li { display: flex; gap: 10px; align-items: center; font-size: var(--vd-fs-body); color: var(--vd-muted); }
.vc-trust .vc-ic { color: var(--vd-ink); }

/* -------------------------------------------------------------------------
   6. Checkout fields
   ---------------------------------------------------------------------- */
.vc-fields,
.vc-checkout .vc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.vc-checkout .vc-fields .form-row {
	grid-column: 1 / -1; float: none !important; width: auto !important;
	margin: 0 !important; padding: 0 !important;
}
.vc-checkout .vc-fields .form-row-first,
.vc-checkout .vc-fields .form-row-last,
.vc-checkout .vc-fields--details #billing_email_field,
.vc-checkout .vc-fields--details #billing_phone_field,
.vc-checkout .vc-fields #billing_city_field,
.vc-checkout .vc-fields #billing_state_field,
.vc-checkout .vc-fields #billing_postcode_field { grid-column: auto; }
.vc-checkout .vc-fields .form-row::before,
.vc-checkout .vc-fields .form-row::after { display: none; }

.vc-checkout .form-row label:not(.checkbox) {
	display: block; margin: 0 0 6px; font-family: var(--vd-font-sans);
	font-size: var(--vd-fs-body); font-weight: 700; line-height: 1.3; text-transform: none; color: var(--vd-ink);
}
.vc-checkout .form-row .optional { font-weight: 500; color: var(--vd-muted); }
.vc-checkout .form-row .required { color: var(--vd-coral); text-decoration: none; border: 0; }

.vc-checkout .form-row input.input-text,
.vc-checkout .form-row select,
.vc-checkout .form-row textarea,
.vc-checkout .select2-container--default .select2-selection--single {
	width: 100%; height: 56px; min-height: 0; box-sizing: border-box; margin: 0;
	border: 1.5px solid var(--vd-border-soft); border-radius: var(--vd-radius-md);
	background: var(--vd-white); padding: 0 16px; box-shadow: none; outline: 0;
	font-family: var(--vd-font-sans); font-size: var(--vd-fs-body); color: var(--vd-ink);
	transition: border-color .25s, box-shadow .25s;
}
.vc-checkout .form-row textarea { height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.vc-checkout .form-row input.input-text:focus,
.vc-checkout .form-row select:focus,
.vc-checkout .form-row textarea:focus,
.vc-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.vc-checkout .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--vd-ink); box-shadow: 0 0 0 3px var(--vd-accent);
}
.vc-checkout .form-row select {
	appearance: none; padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e0814' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 18px center;
}
.vc-checkout .select2-container { width: 100% !important; }
.vc-checkout .select2-container--default .select2-selection--single { display: flex; align-items: center; }
.vc-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0; line-height: 1.3; color: var(--vd-ink);
}
.vc-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 54px; right: 12px; }
.select2-dropdown { border-color: var(--vd-border-soft); border-radius: var(--vd-radius-md); overflow: hidden; font-family: var(--vd-font-sans); font-size: var(--vd-fs-body); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--vd-surface-2); color: var(--vd-ink); }

/* Field error */
.vc-checkout .form-row.woocommerce-invalid input.input-text,
.vc-checkout .form-row.woocommerce-invalid select,
.vc-checkout .form-row.woocommerce-invalid .select2-selection { border-color: var(--vd-danger); }
.vc-checkout .form-row .checkout-inline-error-message { margin: 6px 0 0; font-size: var(--vd-fs-body); color: var(--vd-danger); }
.vc-checkout .form-row .description { margin: 6px 0 0; font-size: var(--vd-fs-body); color: var(--vd-muted); }

/* Create an account */
.vc-account { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--vd-border-soft); }
.vc-account .create-account.form-row { margin: 0 !important; padding: 0 !important; }
.vc-account .vc-check { margin: 0; }
.vc-account div.create-account { margin-top: 16px; }

/* -------------------------------------------------------------------------
   7. Payment methods
   ---------------------------------------------------------------------- */
.vc-checkout #payment {
	background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0; padding: 0;
}
.vc-checkout #payment ul.payment_methods {
	display: grid; gap: 12px; margin: 0; padding: 0 !important; border: 0 !important; list-style: none;
}
.vc-checkout #payment ul.payment_methods::before,
.vc-checkout #payment ul.payment_methods::after { display: none; }
.vc-checkout #payment ul.payment_methods li.wc_payment_method {
	position: relative; margin: 0; padding: 0; line-height: 1.4;
	border: 1.5px solid var(--vd-border-soft); border-radius: var(--vd-radius-md);
	background: var(--vd-white); overflow: hidden; transition: border-color .25s, background .25s;
}
.vc-checkout #payment ul.payment_methods li.wc_payment_method:hover { border-color: var(--vd-border); }
.vc-checkout #payment ul.payment_methods li.wc_payment_method:has(> input:checked),
.vc-checkout #payment ul.payment_methods li.wc_payment_method:only-child { border-color: var(--vd-ink); }
.vc-checkout #payment ul.payment_methods li.wc_payment_method > input.input-radio {
	position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; margin: 0 !important; accent-color: var(--vd-ink);
}
.vc-checkout #payment ul.payment_methods li.wc_payment_method > label {
	display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px;
	margin: 0; padding: 16px 18px 16px 52px; cursor: pointer; background: none !important; border-radius: 0 !important;
	font-family: var(--vd-font-sans); font-size: var(--vd-fs-body); font-weight: 700;
	letter-spacing: 0 !important; text-transform: none !important; color: var(--vd-ink);
}
.vc-checkout #payment ul.payment_methods li.wc_payment_method:only-child > label { padding-left: 18px; }
.vc-checkout #payment ul.payment_methods li.wc_payment_method:has(> input:checked) > label { background: var(--vd-surface-2) !important; }
.vc-checkout #payment ul.payment_methods li.wc_payment_method > label img {
	max-height: 24px; width: auto; margin: 0 0 0 auto !important; float: none; vertical-align: middle;
}
.vc-checkout #payment div.payment_box {
	margin: 0 !important; padding: 18px !important; border-radius: 0 !important;
	background: var(--vd-white) !important; color: var(--vd-ink);
	border-top: 1px solid var(--vd-border-soft); font-size: var(--vd-fs-body); line-height: 1.5;
}
.vc-checkout #payment div.payment_box::before { display: none !important; }
.vc-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
.vc-checkout #payment div.payment_box .form-row { margin: 0 0 12px !important; }
.vc-checkout #payment ul.payment_methods > li:not(.wc_payment_method) { border: 0; padding: 0; }
.vc-payment__none { margin: 0; }

/* -------------------------------------------------------------------------
   8. Order note
   ---------------------------------------------------------------------- */
.vc-notes { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--vd-border-soft); }
.vc-notes summary { cursor: pointer; list-style: none; font-weight: 700; font-size: var(--vd-fs-body); }
.vc-notes summary::-webkit-details-marker { display: none; }
.vc-notes summary::before { content: "+ "; }
.vc-notes[open] summary::before { content: "\2013  "; }
.vc-checkout .vc-notes .vc-fields { grid-template-columns: 1fr; margin-top: 12px; }
.vc-notes .form-row label:not(.checkbox) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* -------------------------------------------------------------------------
   9. "Your order" mini list
   ---------------------------------------------------------------------- */
.vc-checkout #order_review { background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.vc-review { border: 0 !important; margin: 0 !important; }
.vc-mini { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.vc-mini li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0; }
.vc-mini__th { position: relative; width: 72px; height: 72px; border-radius: 12px; background: var(--vd-surface); }
.vc-mini__th img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 12px; display: block; margin: 0 !important; }
.vc-mini__th--bottle img { object-fit: contain; padding: 4px; }
.vc-mini__q {
	position: absolute; top: -12px; right: -12px; min-width: 30px; height: 30px; padding: 0 7px;
	display: grid; place-items: center; border-radius: 15px; background: var(--vd-ink); color: #fff;
	font-size: var(--vd-fs-body); font-weight: 800; line-height: 1;
}
.vc-mini__txt { min-width: 0; }
.vc-mini__nm { display: block; font-size: var(--vd-fs-body); font-weight: 700; line-height: 1.25; }
.vc-mini__mt { display: block; margin-top: 2px; font-size: var(--vd-fs-body); color: var(--vd-muted); line-height: 1.3; }
.vc-mini__pr { font-size: var(--vd-fs-body); font-weight: 800; white-space: nowrap; }

/* -------------------------------------------------------------------------
   10. Place order + terms
   ---------------------------------------------------------------------- */
.vc-place { margin: 22px 0 0 !important; padding: 0 !important; float: none !important; width: 100% !important; }
.vc-checkout .woocommerce-terms-and-conditions-wrapper { margin: 0 0 4px; }
.vc-checkout .woocommerce-privacy-policy-text { text-align: left; font-size: var(--vd-fs-body); color: var(--vd-muted); }
.vc-checkout .woocommerce-privacy-policy-text p { margin: 0 0 14px; }
.vc-checkout .woocommerce-privacy-policy-text a,
.vc-checkout .woocommerce-terms-and-conditions-link { color: var(--vd-ink); text-decoration: underline; text-underline-offset: 3px; }
.vc-checkout .woocommerce-terms-and-conditions {
	max-height: 220px; overflow: auto; margin: 0 0 14px; padding: 14px 16px;
	background: var(--vd-surface-2) !important; border: 0 !important; border-radius: var(--vd-radius-md);
	font-size: var(--vd-fs-body);
}
.vc-checkout .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 !important; padding: 0 !important; }

/* -------------------------------------------------------------------------
   11. Notices + coupon / login toggles
   ---------------------------------------------------------------------- */
.vc-before:empty { display: none; }
.vc-before { margin: 0 0 24px; }
.vc-before .woocommerce-form-coupon-toggle .woocommerce-info,
.vc-before .woocommerce-form-login-toggle .woocommerce-info { border-radius: var(--vd-radius-md); margin: 0 0 12px; }
.vc-before form.checkout_coupon,
.vc-before form.woocommerce-form-login {
	margin: 0 0 12px !important; padding: 20px !important; border: 0 !important;
	background: var(--vd-white); border-radius: var(--vd-radius-lg);
}
.vc-before form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.vc-before form.checkout_coupon > p:first-child { flex-basis: 100%; margin: 0; }
.vc-before form.checkout_coupon .form-row { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.vc-before form.checkout_coupon .form-row-first { flex: 1 1 220px; }
.vc-before form.checkout_coupon input.input-text {
	height: 48px; width: 100%; border: 1.5px solid var(--vd-border-soft); border-radius: var(--vd-radius-pill); padding: 0 18px; font-size: var(--vd-fs-body);
}
.vc-before form.checkout_coupon .button {
	height: 48px; padding: 0 22px; border: 0; border-radius: var(--vd-radius-pill);
	background: var(--vd-ink) !important; color: #fff !important; font-weight: 700; text-transform: uppercase;
}
.vc-before .clear { display: none; }

/* Messages (errors, "added to cart", etc.) on these pages */
.vc-main .woocommerce-error,
.vc-main .woocommerce-message,
.vc-main .woocommerce-info,
.vc-main .woocommerce-error li { font-size: var(--vd-fs-body); line-height: 1.5; }

/* Floating messages (assets/js/cart-checkout.js moves them here) */
.vc-toasts {
	position: fixed; top: 112px; right: 24px; z-index: 99990; /* under the Refresh pop-up */
	display: grid; gap: 12px; width: min(460px, calc(100vw - 32px)); pointer-events: none;
}
.admin-bar .vc-toasts { top: 144px; }
.vc-toast {
	position: relative; pointer-events: auto;
	background: var(--vd-white); border-radius: var(--vd-radius-md);
	border-left: 6px solid var(--vd-ink); box-shadow: 0 16px 40px rgba(30, 8, 20, .18);
	padding: 18px 56px 18px 20px; color: var(--vd-ink);
	animation: vc-toast-in .4s var(--vd-ease);
	transition: opacity .3s var(--vd-ease), transform .3s var(--vd-ease);
}
.vc-toast.is-out { opacity: 0; transform: translateX(24px); }
.vc-toast--error { border-left-color: var(--vd-coral); }
.vc-toast--success { border-left-color: var(--vd-success); }
@keyframes vc-toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.vc-toast .woocommerce-error,
.vc-toast .woocommerce-message,
.vc-toast .woocommerce-info,
.vc-toast .wc-block-components-notice-banner {
	margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
	box-shadow: none !important; list-style: none; color: var(--vd-ink);
	font-family: var(--vd-font-sans); font-size: var(--vd-fs-body); line-height: 1.45;
}
.vc-toast .woocommerce-error::before,
.vc-toast .woocommerce-message::before,
.vc-toast .woocommerce-info::before { display: none !important; }
.vc-toast .woocommerce-error li { margin: 0; padding: 0; }
.vc-toast .woocommerce-error li + li { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--vd-border-soft); }
.vc-toast a:not(.button) { color: var(--vd-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.vc-toast .button {
	float: none !important; display: inline-flex; margin: 0 0 0 8px; padding: 4px 14px; border: 0;
	border-radius: var(--vd-radius-pill); background: var(--vd-accent) !important; color: var(--vd-ink) !important;
	font-size: var(--vd-fs-body); font-weight: 700;
}
.vc-toast__x {
	position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: var(--vd-surface); color: var(--vd-muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
	transition: background .3s, color .3s;
}
.vc-toast__x:hover { background: #fbe3dd; color: var(--vd-coral); }

/* "Refresh prices" pop-up (inc/cart-refresh.php) */
body:has(.vc-refresh) { overflow: hidden; }
.vc-refresh {
	position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px;
	background: rgba(30, 8, 20, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	animation: vc-fade .35s var(--vd-ease);
}
@keyframes vc-fade { from { opacity: 0; } to { opacity: 1; } }
.vc-refresh__box {
	width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	background: var(--vd-white); border-radius: var(--vd-radius-lg); padding: 36px 32px 28px;
	text-align: center; box-shadow: 0 30px 80px rgba(30, 8, 20, .3);
}
.vc-refresh__box.is-busy { pointer-events: none; opacity: .75; }
.vc-refresh__ic {
	display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px;
	border-radius: 50%; background: var(--vd-surface-2); color: var(--vd-coral);
}
.vc-refresh__ic .vc-ic { width: 28px; height: 28px; }
.vc-refresh__title {
	margin: 0 0 10px; font-family: var(--vd-font-serif); font-style: italic; font-weight: 400;
	font-size: var(--vd-fs-subtitle); line-height: 1.15; color: var(--vd-ink);
}
.vc-refresh__text { margin: 0 0 20px; font-size: var(--vd-fs-body); line-height: 1.5; color: var(--vd-muted); }
.vc-refresh__list {
	list-style: none; margin: 0 0 24px; padding: 6px 20px; text-align: left;
	background: var(--vd-surface-2); border-radius: var(--vd-radius-md);
}
.vc-refresh__list li { padding: 12px 0; }
.vc-refresh__list li + li { border-top: 1px solid var(--vd-border-soft); }
.vc-refresh__name { display: block; font-size: var(--vd-fs-body); font-weight: 700; line-height: 1.3; }
.vc-refresh__meta { display: block; margin-top: 2px; font-size: var(--vd-fs-body); color: var(--vd-muted); line-height: 1.35; }
.vc-refresh__remove {
	margin: 16px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer;
	font-family: var(--vd-font-sans); font-size: var(--vd-fs-body); font-weight: 700; color: var(--vd-ink);
	text-decoration: underline; text-underline-offset: 4px;
}
.vc-refresh__remove:hover { color: var(--vd-coral); }
.vc-refresh__hint { margin: 16px 0 0; font-size: var(--vd-fs-body); line-height: 1.45; color: var(--vd-muted); }

/* Empty cart */
.wc-empty-cart-message { display: none; }
.vc-empty { max-width: 640px; margin: 0 auto; padding: 48px 28px; text-align: center; }
.vc-empty__ic { display: block; font-size: 3rem; line-height: 1; margin-bottom: 16px; }
.vc-empty .vc-card__title { justify-content: center; margin-bottom: 12px; }
.vc-empty .vc-card__sub { margin: 0 0 28px; }
.vc-empty__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 24px 0 0; }

/* -------------------------------------------------------------------------
   12. Small screens
   ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.vc-grid { grid-template-columns: 1fr; }
	.vc-summary { position: static; }
}
@media (max-width: 760px) {
	.vc-head { grid-template-columns: 1fr; gap: 12px; }
	.vc-main { padding-top: 32px; padding-bottom: 80px; }
}
@media (max-width: 640px) {
	.vc-toasts { top: 88px; right: 16px; }
	.admin-bar .vc-toasts { top: 134px; }
	.vc-refresh__box { padding: 28px 20px 22px; }
	.vc-card { padding: 22px 18px; }
	.vc-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.vc-item__media { width: 96px; }
	.vc-item__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; gap: 12px; }
	.vc-item__actions { margin-left: auto; gap: 10px; }
	.vc-item__price,
	.vc-item__each { text-align: left; }
	.vc-checkout .vc-fields { grid-template-columns: 1fr; }
	.vc-checkout .vc-fields .form-row { grid-column: 1 / -1 !important; }
	.vc-steps li + li::before { width: 16px; }
}