/* ==========================================================================
   Gift voucher checkout – maps WooCommerce markup onto the design.
   Loaded only on the checkout and order-received pages.
   ========================================================================== */

.light-hero--checkout .container { padding-top: clamp(130px, 14vw, 170px); padding-bottom: clamp(36px, 4vw, 52px); }
.light-hero__title--checkout { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.06; }
.light-hero--checkout .light-hero__lead { margin-top: 16px; }

.checkout-section { padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 9vw, 128px); }
.co-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 80px); }
.co-form__main { flex: 1 1 560px; min-width: 0; }
.co-form__aside { flex: 1 1 340px; max-width: 100%; min-width: 0; position: sticky; top: 110px; }
@media (max-width: 959px) { .co-form__aside { position: static; } }

/* Steps */
.co-step { margin: 0; padding: clamp(24px, 3vw, 36px) 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.co-step__legend { float: left; width: 100%; padding: 0; margin: 0 0 22px; display: flex; align-items: baseline; gap: 14px; }
.co-step__num { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.14em; color: var(--c-olive); }
.co-step__title { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); }
.co-step__body { clear: both; display: flex; flex-direction: column; gap: 18px; }
.co-step__body[aria-busy="true"], [data-bm-voucher][aria-busy="true"] .co-step__body { opacity: 0.7; }
.co-step__note { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(62, 50, 39, 0.7); }
.co-step__error { margin: 0; color: var(--c-danger); font-size: 14px; }
.field-label { display: block; margin: 0 0 12px; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-72); text-transform: uppercase; }
.field-label abbr { text-decoration: none; border: 0; color: inherit; }

/* Solid chips (radio groups) */
.chips--solid { margin: 0; }
.chip--radio {
	display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px;
	background: var(--c-card); font-size: 14px; letter-spacing: 0.03em;
	transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.chip__extra { opacity: 0.7; }

/* Select */
.co-select { max-width: 420px; margin: 0; }
.co-select .field-label { margin-bottom: 8px; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: "▾"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 12px; color: rgba(62, 50, 39, 0.6); }
.co-form select.input, .co-form .input {
	width: 100%; height: 52px; padding: 0 16px;
	border: 1px solid rgba(62, 50, 39, 0.24); border-radius: var(--radius);
	background: var(--c-card); font-size: 15px; color: var(--c-bark);
	appearance: none; -webkit-appearance: none;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.co-form select.input { padding-right: 44px; cursor: pointer; }
.co-form .input:focus { border-color: var(--c-bark); box-shadow: 0 0 0 3px rgba(184, 164, 105, 0.28); outline: none; }
.co-form .input:disabled { opacity: 0.75; cursor: default; }

/* WooCommerce form rows */
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.co-form .form-row { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0; }
.co-form .form-row .field-label { margin: 0; }
#billing_country_field { display: none; }
.co-form .form-row .optional { letter-spacing: 0.04em; opacity: 0.7; }
.co-form .woocommerce-input-wrapper { display: block; }
.co-form .form-row.woocommerce-invalid .input { border-color: var(--c-danger); }
.co-form .form-row .checkout-inline-error-message { margin: 0; font-size: 13px; color: var(--c-danger); }

/* Payment methods as chips with a single box underneath */
#payment { background: none; }
.wc_payment_methods { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wc_payment_method { display: contents; }
.wc_payment_method > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wc_payment_method > label {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
	border: 1px solid rgba(62, 50, 39, 0.24); border-radius: var(--radius-pill);
	background: var(--c-card); color: var(--c-bark); font-size: 14px; letter-spacing: 0.03em; cursor: pointer;
	transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.wc_payment_method > label img { max-height: 22px; width: auto; margin: 0; }
.wc_payment_method:has(> input:checked) > label { background: var(--c-bark); color: var(--c-paper); border-color: var(--c-bark); }
.wc_payment_method > input:focus-visible + label { outline: 2px solid var(--c-olive); outline-offset: 3px; }
.wc_payment_method .payment_box {
	order: 99; flex: 1 1 100%; margin: 8px 0 0;
	background: var(--c-card); border: 1px solid var(--line); border-radius: 6px;
	padding: clamp(18px, 2.4vw, 24px); font-size: 14px; line-height: 1.7; color: var(--ink-72);
}
.wc_payment_method .payment_box p:first-child { margin-top: 0; }
.wc_payment_method .payment_box p:last-child { margin-bottom: 0; }
.wc_payment_method .payment_box fieldset { border: 0; margin: 0; padding: 0; }
.payment-note { margin: 0 0 18px; font-size: 12.5px; line-height: 1.6; color: var(--ink-62); }
.place-order { margin: 0; padding: 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; line-height: 1.6; color: var(--ink-80); }
.woocommerce-privacy-policy-text p { margin: 0 0 12px; font-size: 13px; color: var(--ink-62); }
.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.woocommerce-form__label-for-checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-bark); flex: none; }
.woocommerce-terms-and-conditions-link, .woocommerce-privacy-policy-link { text-decoration: underline; }
.woocommerce-terms-and-conditions { max-height: 200px; overflow: auto; padding: 12px; background: var(--c-card); border: 1px solid var(--line); }

/* Summary card (base styles in main.css) */
.summary-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stripes-dark); }
.summary-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.summary-card__rows { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(248, 244, 235, 0.16); color: var(--paper-80); }
.summary-card__rows > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.summary-card__rows > div span:last-child { text-align: right; }
.summary-card__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(248, 244, 235, 0.16); font-size: 12px; letter-spacing: 0.2em; }
.summary-card__amount { font-family: var(--font-display); font-size: 36px; letter-spacing: 0; }
.summary-card__amount .woocommerce-Price-amount { white-space: nowrap; }
.summary-card .btn { font-size: 14px; letter-spacing: 0.05em; }
.co-help { margin: 18px 0 0; font-size: 13.5px; line-height: 1.7; color: rgba(62, 50, 39, 0.65); }

/* WooCommerce notices and blocking overlay */
.woocommerce-NoticeGroup, .woocommerce-notices-wrapper { flex: 1 1 100%; }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	list-style: none; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius);
	font-size: 14.5px; line-height: 1.6; background: rgba(111, 100, 54, 0.12); border-left: 2px solid var(--c-olive);
}
.woocommerce-error { background: rgba(154, 59, 46, 0.08); border-left-color: var(--c-danger); }
.woocommerce-error li + li { margin-top: 6px; }
.blockUI.blockOverlay { background: rgba(248, 244, 235, 0.6) !important; }

/* Gateway instructions on the thank-you page (e.g. Multibanco reference) */
.success__gateway table { border-collapse: collapse; margin: 12px 0; }
.success__gateway th, .success__gateway td { padding: 6px 12px 6px 0; text-align: left; }
