/* ==========================================================================
   Cart + checkout (loaded only on these pages — inc/checkout.php)
   ========================================================================== */

/* Focus: page title replaced by the step bar; no newsletter band. */
body.aq-flow .page-header { display: none; }
body.aq-flow .aq-nl-band { display: none !important; }
body.aq-flow .site-main.site-main { padding-top: 28px; }

/* Checkout: distraction-free header (logo + secure badge only). */
body.aq-flow--checkout .aq-header-main .aq-header-nav.e-con { display: none !important; }
body.aq-flow--checkout .aq-header-icons .elementor-widget-shortcode:not(:has(.aq-secure)) { display: none !important; }
body.aq-flow--checkout .aq-header-icons.e-con { justify-content: flex-end; }

/* ---------- Step bar ---------- */
.aq-flow-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 28px; }
.aq-flow-head__title { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; line-height: 1; }
.aq-steps { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.aq-steps li { display: flex; align-items: center; color: var(--aq-muted); font: 600 13px/1 var(--aq-font-body); }
.aq-steps li + li::before { content: ""; width: clamp(24px, 4vw, 56px); height: 2px; margin: 0 12px; border-radius: 2px; background: var(--aq-border-strong); }
.aq-steps li.is-done + li::before, .aq-steps li.is-current::before { background: var(--aq-red); }
.aq-steps a { display: flex; align-items: center; color: inherit; text-decoration: none; }
.aq-steps__dot {
	display: grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%;
	background: #fff; box-shadow: inset 0 0 0 1.5px var(--aq-border-strong); font-weight: 700;
}
.aq-steps__dot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.aq-steps li.is-done { color: var(--aq-text); }
.aq-steps li.is-done .aq-steps__dot { background: var(--aq-red); color: #fff; box-shadow: none; }
.aq-steps li.is-current { color: var(--aq-text); font-weight: 700; }
.aq-steps li.is-current .aq-steps__dot { background: var(--aq-black); color: #fff; box-shadow: 0 0 0 4px rgba(26, 22, 18, .1); }
@media (max-width: 600px) {
	.aq-flow-head { margin-bottom: 20px; }
	.aq-steps__label { display: none; }
	.aq-steps li.is-current .aq-steps__label { display: inline; }
	.aq-steps li + li::before { width: 18px; margin: 0 8px; }
}

/* ---------- Shared bits ---------- */
.aq-flow .woocommerce-notices-wrapper:empty { display: none; }
.aq-trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.aq-trust li { display: flex; align-items: center; gap: 9px; color: var(--aq-silver); font-size: 13px; font-weight: 600; line-height: 1.3; }
.aq-trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #23855a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aq-total-note { display: block; margin-top: 4px; color: var(--aq-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* ==========================================================================
   Cart
   ========================================================================== */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 40px; align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .aq-flow-head,
.woocommerce-cart .woocommerce > .cart-empty,
.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper .woocommerce-message { margin-bottom: 16px; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; min-width: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; width: auto; position: sticky; top: 120px; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100% !important; }

/* Items: table → cards */
.woocommerce-cart table.shop_table.cart { display: block; border: 0 !important; background: transparent; box-shadow: none; border-radius: 0; margin: 0; }
.woocommerce-cart table.shop_table.cart thead { display: none; }
.woocommerce-cart table.shop_table.cart tbody { display: grid; gap: 14px; }
.woocommerce-cart table.shop_table.cart tr.cart_item {
	display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; column-gap: 20px;
	grid-template-areas: "thumb name remove" "thumb price price" "thumb qty subtotal";
	align-items: center; padding: 18px; border-radius: 22px; background: #fff;
	box-shadow: inset 0 0 0 1px var(--aq-border), 0 18px 36px -30px rgba(61, 52, 45, .45);
}
.woocommerce-cart table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
.woocommerce-cart table.shop_table.cart tr.cart_item td::before { display: none !important; }
.woocommerce-cart table.cart td.product-thumbnail { grid-area: thumb; align-self: stretch; }
.woocommerce-cart table.cart td.product-thumbnail a { display: block; height: 100%; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 112px !important; height: 112px; object-fit: cover; border-radius: 16px; background: var(--aq-surface); }
.woocommerce-cart table.cart td.product-name { grid-area: name; align-self: end; }
.woocommerce-cart table.cart td.product-name a { color: var(--aq-text); font: 700 21px/1.1 var(--aq-font-head); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--aq-red); }
.woocommerce-cart table.cart td.product-name dl.variation { margin: 4px 0 0; color: var(--aq-muted); font-size: 13px; }
.woocommerce-cart table.cart td.product-price { grid-area: price; color: var(--aq-muted); font-size: 13.5px; margin: 4px 0 10px; }
.woocommerce-cart table.cart td.product-price::after { content: " each"; }
.woocommerce-cart table.cart td.product-quantity { grid-area: qty; }
.woocommerce-cart table.cart td.product-subtotal { grid-area: subtotal; justify-self: end; color: var(--aq-text); font: 700 19px/1 var(--aq-font-body); }
.woocommerce-cart table.cart td.product-remove { grid-area: remove; justify-self: end; align-self: start; }
.woocommerce-cart table.cart td.product-remove a.remove {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 0 !important; color: var(--aq-muted) !important;
	background: var(--aq-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5e53' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14M10 7V5h4v2M7 7l1 12.5h8L17 7M10.5 10.5v6M13.5 10.5v6'/%3E%3C/svg%3E") center / 17px no-repeat;
	transition: background-color .2s;
}
.woocommerce-cart table.cart td.product-remove a.remove:hover { background-color: #fdecee; }

/* Actions row: coupon behind a toggle; quantities save automatically (no Update button). */
.woocommerce-cart table.shop_table.cart tr:has(td.actions) { display: block; padding: 6px 4px 0; }
.woocommerce-cart table.cart td.actions { display: block; padding: 0 !important; border: 0 !important; background: none; }
.woocommerce-cart table.cart td.actions > button[name="update_cart"] { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }
.woocommerce-cart table.cart td.actions .coupon { float: none; display: flex; gap: 10px; max-width: 460px; margin-top: 12px; }
.woocommerce-cart table.cart td.actions .coupon[hidden] { display: none; }
.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; height: 50px; margin: 0; padding: 0 20px; border-radius: 999px; background: #fff; }
.woocommerce-cart table.cart td.actions .coupon .button { height: 50px; padding: 0 26px; background: var(--aq-black); border-color: var(--aq-black); }
.woocommerce-cart table.cart td.actions .coupon .button:hover { background: var(--aq-black-hover); border-color: var(--aq-black-hover); }
html body .aq-coupon-toggle, html body .aq-coupon-toggle:focus {
	display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border: 0; background: none; box-shadow: none;
	color: var(--aq-text); font: 600 14px/1.2 var(--aq-font-body); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
html body .aq-coupon-toggle:hover { background: none; color: var(--aq-red); transform: none; box-shadow: none; }
.aq-coupon-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--aq-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.woocommerce-cart .woocommerce-cart-form.is-updating { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* Summary card */
.woocommerce-cart .cart-collaterals .cart_totals {
	padding: 28px; border: 0; border-radius: 24px; background: #fff;
	box-shadow: inset 0 0 0 1px var(--aq-border), 0 24px 48px -36px rgba(61, 52, 45, .5);
}
.woocommerce-cart .cart_totals h2 { margin: 0 0 14px; font-size: 1.7rem; }
.woocommerce-cart .cart_totals table.shop_table { box-shadow: none; border: 0 !important; margin: 0 0 20px; }
.woocommerce-cart .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--aq-border); }
.woocommerce-cart .cart_totals table.shop_table th, .woocommerce-cart .cart_totals table.shop_table td { display: block; padding: 0 !important; border: 0 !important; background: none !important; width: auto; }
.woocommerce-cart .cart_totals table.shop_table td::before { display: none !important; }
.woocommerce-cart .cart_totals table.shop_table th { color: var(--aq-muted); font: 600 14px/1.3 var(--aq-font-body); letter-spacing: 0; text-transform: none; }
.woocommerce-cart .cart_totals table.shop_table td { text-align: right !important; color: var(--aq-text); font-weight: 600; }
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator { display: none; }
.woocommerce-cart .cart_totals ul#shipping_method { margin: 0; padding: 0; }
.woocommerce-cart .cart_totals ul#shipping_method li { margin: 0; padding: 0; color: #23855a; }
.woocommerce-cart .cart_totals tr.order-total { border-bottom: 0 !important; padding-top: 16px !important; }
.woocommerce-cart .cart_totals tr.order-total th { color: var(--aq-text); font-weight: 700; font-size: 16px; }
.woocommerce-cart .cart_totals tr.order-total td strong { font: 800 32px/1 var(--aq-font-head); }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; margin: 0; padding: 0; font-size: 17px; letter-spacing: .12em;
	box-shadow: 0 16px 30px -18px rgba(198, 42, 53, .9);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aq-trust--cart { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--aq-border-strong); }
.aq-continue { display: inline-block; margin-top: 18px; color: var(--aq-text); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.aq-flow a.aq-continue:hover { color: var(--aq-red); }

/* Empty cart */
.woocommerce-cart .cart-empty.woocommerce-info { margin: 10px 0 0; padding: 56px 24px 18px; border: 0; background: none; box-shadow: none; text-align: center; font: 800 28px/1.1 var(--aq-font-head); text-transform: uppercase; color: var(--aq-text); }
.woocommerce-cart .cart-empty.woocommerce-info::before { display: none; }
.woocommerce-cart .return-to-shop { text-align: center; margin-bottom: 40px; }
.woocommerce-cart .return-to-shop .button { height: 56px; padding: 0 36px; display: inline-flex; align-items: center; }

@media (max-width: 1024px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .cart-collaterals { grid-column: 1; position: static; margin-top: 24px; }
}
@media (max-width: 600px) {
	.woocommerce-cart table.shop_table.cart tr.cart_item { grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 14px; padding: 14px; }
	.woocommerce-cart table.cart td.product-thumbnail img { width: 84px !important; height: 84px; }
	.woocommerce-cart table.cart td.product-name a { font-size: 18px; }
	.woocommerce-cart table.cart td.product-subtotal { font-size: 16px; }
	.woocommerce-cart .cart-collaterals .cart_totals { padding: 22px; }
	.aq-trust { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.woocommerce-checkout .woocommerce > .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce > .woocommerce-form-coupon-toggle { display: inline-block; margin: 0 24px 16px 0; }
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none; color: var(--aq-muted); font-size: 14px;
}
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
.woocommerce-checkout .woocommerce-info a.showlogin, .woocommerce-checkout .woocommerce-info a.showcoupon { color: var(--aq-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-checkout form.checkout_coupon, .woocommerce-checkout form.woocommerce-form-login { max-width: 560px; margin: 0 0 22px; padding: 20px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--aq-border); }

form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "details summary" "pay summary"; gap: 0 40px; align-items: start; margin-top: 8px; }
form.checkout #customer_details { grid-area: details; }
form.checkout .aq-pay { grid-area: pay; display: block; } /* .aq-pay is also the footer logo row (flex, right-aligned) */
form.checkout .aq-summary { grid-area: summary; position: sticky; top: 110px; }
form.checkout #order_review_heading { display: none; }

/* Sections as numbered cards */
form.checkout { counter-reset: aqsec; }
form.checkout #customer_details,
form.checkout .aq-pay {
	padding: 30px; margin: 0 0 20px; border: 0; border-radius: 24px; background: #fff;
	box-shadow: inset 0 0 0 1px var(--aq-border), 0 24px 48px -40px rgba(61, 52, 45, .5);
}
form.checkout #customer_details .col-1, form.checkout #customer_details .col-2 { float: none; width: 100%; max-width: none; padding: 0; }
form.checkout .woocommerce-billing-fields > h3, form.checkout .aq-pay__title {
	counter-increment: aqsec; display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 1.5rem; text-transform: uppercase;
}
form.checkout .woocommerce-billing-fields > h3::before, form.checkout .aq-pay__title::before {
	content: counter(aqsec); display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
	background: var(--aq-black); color: #fff; font: 700 15px/1 var(--aq-font-body);
}
form.checkout .woocommerce-additional-fields > h3 { display: none; }
form.checkout .woocommerce-shipping-fields { margin-top: 6px; padding-top: 20px; border-top: 1px dashed var(--aq-border-strong); }
form.checkout #ship-to-different-address { margin: 0; font: 600 15px/1.3 var(--aq-font-body); text-transform: none; letter-spacing: 0; }
form.checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
/* Delivery address: its own inset panel. Grid + explicit order, because WooCommerce's address
   script re-applies the default locale (phone: priority 2, form-row-last) to these fields too. */
form.checkout .shipping_address { margin-top: 16px; padding: 22px 22px 6px; border-radius: 18px; background: #fcfaf7; box-shadow: inset 0 0 0 1px var(--aq-border); }
form.checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
form.checkout .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: 1 / -1; float: none; width: auto; order: 50; }
form.checkout .woocommerce-shipping-fields__field-wrapper .form-row::before,
form.checkout .woocommerce-shipping-fields__field-wrapper .form-row::after { display: none; }
form.checkout .woocommerce-shipping-fields__field-wrapper .form-row .input-text,
form.checkout .woocommerce-shipping-fields__field-wrapper .form-row select,
form.checkout .woocommerce-shipping-fields__field-wrapper .select2-container .select2-selection--single { background: #fff; box-shadow: inset 0 0 0 1px var(--aq-border); }
form.checkout .woocommerce-shipping-fields__field-wrapper .form-row .input-text:focus { box-shadow: inset 0 0 0 1.5px var(--aq-text); }
form.checkout #shipping_first_name_field { grid-column: 1; order: 1; }
form.checkout #shipping_last_name_field { grid-column: 2; order: 2; }
form.checkout #shipping_phone_field { order: 3; }
form.checkout #shipping_address_1_field { order: 4; }
form.checkout #shipping_address_2_field { order: 5; }
form.checkout #shipping_postcode_field { grid-column: 1; order: 6; }
form.checkout #shipping_city_field { grid-column: 2; order: 7; }
form.checkout #shipping_state_field { order: 8; }
form.checkout .woocommerce-additional-fields { margin-top: 6px; }

/* Fields: floating-feel labels, roomy inputs */
form.checkout .form-row { margin: 0 0 16px; padding: 0; }
form.checkout .form-row label { margin-bottom: 6px; color: var(--aq-silver); font-size: 13px; font-weight: 600; line-height: 1.3; }
form.checkout .form-row label .optional { color: var(--aq-muted); font-weight: 400; }
form.checkout .form-row .required { color: var(--aq-red); text-decoration: none; }
form.checkout .form-row .input-text, form.checkout .form-row select, form.checkout .select2-container .select2-selection--single {
	height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--aq-surface);
	box-shadow: inset 0 0 0 1px transparent; font-size: 15px; color: var(--aq-text); transition: box-shadow .2s, background .2s;
}
form.checkout .form-row textarea.input-text { height: 96px; padding: 14px 16px; }
form.checkout .form-row .input-text:focus, form.checkout .form-row select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--aq-text); }
form.checkout .select2-container .select2-selection--single { display: flex; align-items: center; }
form.checkout .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 52px; color: var(--aq-text); }
form.checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 50px; right: 10px; }
form.checkout .form-row.woocommerce-invalid .input-text, form.checkout .form-row.woocommerce-invalid .select2-selection { box-shadow: inset 0 0 0 1.5px #c62a35; background: #fff; }
form.checkout .form-row.woocommerce-validated .input-text { box-shadow: inset 0 0 0 1px rgba(35, 133, 90, .45); }
form.checkout #billing_country_field strong, form.checkout #shipping_country_field strong { display: inline-block; padding: 0; font-weight: 600; }
form.checkout #billing_country_field, form.checkout #shipping_country_field { display: none !important; }
form.checkout input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--aq-red); }

/* Payment */
form.checkout .aq-pay #payment { padding: 0; border: 0; border-radius: 0; background: none !important; }
form.checkout .aq-pay #payment ul.payment_methods { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
form.checkout .aq-pay #payment ul.payment_methods li {
	margin: 0; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--aq-border-strong); line-height: 1.4;
}
form.checkout .aq-pay #payment ul.payment_methods li:has(input:checked) { box-shadow: inset 0 0 0 2px var(--aq-text); background: #fffdf9; }
form.checkout .aq-pay #payment ul.payment_methods li > label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
form.checkout .aq-pay #payment ul.payment_methods li input[type="radio"] { width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: middle; accent-color: var(--aq-red); }
form.checkout .aq-pay #payment div.payment_box { margin: 10px 0 0; padding: 0 0 0 28px; background: none !important; color: var(--aq-muted); font-size: 14px; }
form.checkout .aq-pay #payment div.payment_box::before { display: none; }
form.checkout .aq-pay #payment div.payment_box p { margin: 0; }
form.checkout .aq-pay #payment .place-order { margin: 0; padding: 0; }
form.checkout .aq-pay .woocommerce-privacy-policy-text p { margin: 0 0 12px; color: var(--aq-muted); font-size: 13px; line-height: 1.5; }
form.checkout .aq-pay .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 0 16px; }
form.checkout .aq-pay .woocommerce-terms-and-conditions-checkbox-text { font-size: 14px; color: var(--aq-silver); }
form.checkout .aq-pay label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
form.checkout .aq-pay #place_order {
	float: none; width: 100%; height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px;
	font-size: 18px; letter-spacing: .12em; box-shadow: 0 18px 32px -18px rgba(198, 42, 53, .9);
}
form.checkout .aq-pay .aq-trust--checkout { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--aq-border-strong); }
form.checkout .aq-pay .aq-trust--checkout li { display: flex; float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; }

/* Order summary */
.aq-summary {
	padding: 26px; border-radius: 24px; background: #fff;
	box-shadow: inset 0 0 0 1px var(--aq-border), 0 24px 48px -36px rgba(61, 52, 45, .5);
}
html body .aq-sum-toggle, html body .aq-sum-toggle:focus {
	display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; margin: 0 0 14px; padding: 0; border: 0; border-radius: 0;
	background: none; box-shadow: none; color: var(--aq-text); text-transform: none; letter-spacing: 0; cursor: default; pointer-events: none;
}
html body .aq-sum-toggle:hover { background: none; color: var(--aq-text); transform: none; box-shadow: none; }
.aq-sum-toggle__label { font: 800 1.5rem/1 var(--aq-font-head); text-transform: uppercase; }
.aq-sum-toggle__total, .aq-sum-toggle svg { display: none; }
form.checkout #order_review { padding: 0; border: 0; background: none; box-shadow: none; }
form.checkout table.woocommerce-checkout-review-order-table { margin: 0; border: 0 !important; box-shadow: none; background: none; }
form.checkout table.woocommerce-checkout-review-order-table thead { display: none; }
form.checkout table.woocommerce-checkout-review-order-table tr { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--aq-border); }
form.checkout table.woocommerce-checkout-review-order-table th, form.checkout table.woocommerce-checkout-review-order-table td { display: block; padding: 0 !important; border: 0 !important; background: none !important; width: auto; }
form.checkout table.woocommerce-checkout-review-order-table td.product-name { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--aq-text); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.aq-sum-thumb { position: relative; flex: none; display: block; width: 64px; height: 64px; }
.aq-sum-thumb img { width: 64px !important; height: 64px; object-fit: cover; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--aq-border); background: var(--aq-surface); }
.aq-sum-qty { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--aq-black); color: #fff; font-size: 11.5px; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.aq-sum-name { min-width: 0; }
form.checkout table.woocommerce-checkout-review-order-table td.product-total { color: var(--aq-text); font-weight: 700; white-space: nowrap; }
form.checkout table.woocommerce-checkout-review-order-table tfoot th { color: var(--aq-muted); font: 600 14px/1.3 var(--aq-font-body); letter-spacing: 0; text-transform: none; }
form.checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; color: var(--aq-text); font-weight: 600; }
form.checkout table.woocommerce-checkout-review-order-table ul#shipping_method { margin: 0; padding: 0; }
form.checkout table.woocommerce-checkout-review-order-table ul#shipping_method li { margin: 0; padding: 0; color: #23855a; }
form.checkout table.woocommerce-checkout-review-order-table tr.order-total { border-bottom: 0; padding-top: 16px; }
form.checkout table.woocommerce-checkout-review-order-table tr.order-total th { color: var(--aq-text); font-weight: 700; font-size: 16px; }
form.checkout table.woocommerce-checkout-review-order-table tr.order-total td strong { font: 800 30px/1 var(--aq-font-head); }

@media (max-width: 1024px) {
	form.checkout.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "details" "pay"; }
	form.checkout .aq-summary { position: static; margin-bottom: 20px; padding: 0; overflow: hidden; }
	html body .aq-sum-toggle, html body .aq-sum-toggle:focus { margin: 0; padding: 18px 20px; pointer-events: auto; cursor: pointer; background: #fff; }
	.aq-sum-toggle__label { font-size: 1.2rem; }
	.aq-sum-toggle__total { display: block; margin-left: auto; font-weight: 800; font-size: 17px; }
	.aq-sum-toggle svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--aq-ease); }
	.aq-sum-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	form.checkout .aq-summary #order_review { padding: 0 20px 18px; }
	form.checkout .aq-summary.is-collapsed #order_review { display: none; }
}
@media (max-width: 600px) {
	form.checkout #customer_details, form.checkout .aq-pay { padding: 22px 18px; border-radius: 20px; }
	form.checkout .form-row-first, form.checkout .form-row-last { float: none; width: 100%; }
	form.checkout .shipping_address { padding: 18px 14px 4px; }
	form.checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	form.checkout .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: 1 !important; }
	.aq-secure__more { display: none; }
}

/* ==========================================================================
   Order received
   ========================================================================== */
.woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 24px; padding: 22px 24px 22px 66px; border-radius: 20px; background: #eaf6ef; color: #1d6b49; font-weight: 700; font-size: 17px;
	position: relative;
}
.woocommerce-order .woocommerce-thankyou-order-received::before {
	content: ""; position: absolute; left: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
	background: #23855a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* Order still awaiting payment (declined / abandoned at the bank): amber notice with "!" instead of the green tick. */
.aq-flow-head--unpaid ~ .woocommerce-thankyou-order-received { background: #fdf3e1; color: #8a5300; }
.aq-flow-head--unpaid ~ .woocommerce-thankyou-order-received::before {
	background: #c77700 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5h.01'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.aq-flow-head--unpaid ~ .woocommerce-thankyou-order-received a { color: inherit; font-weight: 800; }
.woocommerce-order ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.woocommerce-order ul.woocommerce-order-overview li { margin: 0; padding: 16px 18px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--aq-border); color: var(--aq-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce-order ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; color: var(--aq-text); font-size: 16px; letter-spacing: 0; text-transform: none; }

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::after,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::after { display: none; }

/* Inline field errors are enough; collapse WooCommerce's top error list to one line. */
form.checkout .woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }
form.checkout .woocommerce-NoticeGroup-checkout .woocommerce-error { margin: 0 0 18px; padding: 14px 18px 14px 48px; border: 0; border-radius: 14px; background: #fdecee; color: #9e1b25; font-weight: 600; list-style: none; }
form.checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li { display: none; }
form.checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li:first-child { display: block; }
form.checkout .woocommerce-NoticeGroup-checkout .woocommerce-error.aq-multi li:first-child { font-size: 0; }
form.checkout .woocommerce-NoticeGroup-checkout .woocommerce-error.aq-multi li:first-child::after { content: "Please fill in the highlighted fields."; font-size: 15px; }
form.checkout .woocommerce-NoticeGroup-checkout .woocommerce-error::before { color: #c62a35; top: 14px; left: 18px; }
form.checkout .form-row .checkout-inline-error-message { margin: 6px 0 0; color: #b4232f; font-size: 12.5px; }

/* Order received */
.woocommerce-order { max-width: 860px; margin: 0 auto; }
.woocommerce-order ul.woocommerce-order-overview { box-shadow: none; border: 0; }
.woocommerce-order ul.woocommerce-order-overview::before, .woocommerce-order ul.woocommerce-order-overview::after { display: none; }
.woocommerce-order section.woocommerce-order-details,
.woocommerce-order section.woocommerce-customer-details { margin: 0 0 24px; padding: 26px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--aq-border), 0 24px 48px -40px rgba(61, 52, 45, .5); }
.woocommerce-order .woocommerce-order-details__title, .woocommerce-order .woocommerce-column__title { margin: 0 0 14px; font-size: 1.5rem; text-transform: uppercase; }
.woocommerce-order table.woocommerce-table--order-details { margin: 0; border: 0 !important; box-shadow: none; }
.woocommerce-order table.woocommerce-table--order-details thead { display: none; }
.woocommerce-order table.woocommerce-table--order-details tr { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--aq-border); }
.woocommerce-order table.woocommerce-table--order-details tr:last-child { border-bottom: 0; }
.woocommerce-order table.woocommerce-table--order-details th, .woocommerce-order table.woocommerce-table--order-details td { display: block; padding: 0 !important; border: 0 !important; background: none !important; width: auto; }
.woocommerce-order table.woocommerce-table--order-details tfoot th { color: var(--aq-muted); font: 600 14px/1.3 var(--aq-font-body); letter-spacing: 0; text-transform: none; }
.woocommerce-order table.woocommerce-table--order-details td.product-name a { color: var(--aq-text); font-weight: 700; }
.woocommerce-order table.woocommerce-table--order-details tfoot tr:nth-last-child(2) th, .woocommerce-order table.woocommerce-table--order-details tfoot tr:nth-last-child(2) td { color: var(--aq-text); font-weight: 800; font-size: 18px; }
.woocommerce-order .woocommerce-customer-details address { padding: 0; border: 0; color: var(--aq-silver); line-height: 1.7; font-style: normal; }
.woocommerce-order > p:not(.woocommerce-thankyou-order-received) { margin: 0 0 24px; color: var(--aq-muted); }

.aq-secure {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
	background: #eaf6ef; color: #23855a; font: 700 12px/1 var(--aq-font-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.aq-secure svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* WooCommerce's smallscreen CSS hides cart thumbnails and turns rows into label/value lines; keep our cards. */
.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail { display: block !important; }
.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td { text-align: left !important; }
.woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-subtotal, .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-remove { justify-self: end; }
/* "X has been added to your cart" is redundant on the cart itself. */
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message:has(a.wc-forward) { display: none; }
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message:not(:has(a)) { display: none; }
.woocommerce-cart table.shop_table.cart tr:has(td.actions), .woocommerce-cart table.shop_table.cart tr:has(td.actions) td { background: none !important; }

/* Order overview: one card, equal columns that never clip (email can be long, and appears only for logged-in customers). */
.woocommerce-order ul.woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 24px; padding: 6px; border-radius: 20px; background: #fff;
	box-shadow: inset 0 0 0 1px var(--aq-border), 0 24px 48px -40px rgba(61, 52, 45, .5);
}
.woocommerce-order ul.woocommerce-order-overview li {
	flex: 1 1 140px; min-width: 0; margin: 0; padding: 16px 18px; border: 0 !important; border-radius: 0; background: none; box-shadow: none;
	float: none; font-size: 11px; letter-spacing: .14em; line-height: 1.2;
}
.woocommerce-order ul.woocommerce-order-overview li + li { box-shadow: inset 1px 0 0 var(--aq-border); }
.woocommerce-order ul.woocommerce-order-overview li.email { flex: 2 1 240px; }
.woocommerce-order ul.woocommerce-order-overview li strong { margin-top: 8px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.woocommerce-order section.woocommerce-order-details .woocommerce-order-details__title,
.woocommerce-order section.woocommerce-customer-details .woocommerce-column__title { margin-top: 0; }
.woocommerce-order > p:not(.woocommerce-thankyou-order-received) { padding: 14px 18px; border-radius: 14px; background: var(--aq-surface); color: var(--aq-silver); font-weight: 600; }
@media (max-width: 760px) {
	.woocommerce-order ul.woocommerce-order-overview li { flex: 1 1 45%; }
	.woocommerce-order ul.woocommerce-order-overview li.email { flex: 1 1 100%; order: 9; }
	.woocommerce-order ul.woocommerce-order-overview li + li { box-shadow: inset 0 1px 0 var(--aq-border); }
}
.woocommerce-order { max-width: 980px; }
.woocommerce-order ul.woocommerce-order-overview li strong { white-space: nowrap; }
.woocommerce-order ul.woocommerce-order-overview li.email strong { white-space: normal; }
