/*
 * Gavafuté by XAD — WooCommerce's own pages in the design.
 *
 * Loaded only on the cart, checkout, account, order-received and shop
 * screens, and only while "Dress WooCommerce's pages" is on (Brand tab).
 * Every rule hangs from body.gv-woo, the class the plugin puts on those
 * screens. WooCommerce keeps its markup and behaviour; nothing here hides a
 * field or a step.
 *
 * NO HEADING TAG IS SELECTED (the client's rule). WooCommerce prints its own
 * headings ("Total del carrito", "Detalles de facturación"…); they are styled
 * by their class, their id, or as the first thing in their box — so an
 * H2 changed to an H3 looks exactly the same.
 */

body.gv-woo {
	--blue: #0B3B8C;
	--blue-btn: #0B3B8C;
	--blue-hover: #093073;
	--on-blue: #FFFFFF;
	--orange: #E2560F;
	--orange-btn: #C94C0D;
	--orange-hover: #AD420B;
	--on-orange: #FFFFFF;
	--orange-text: #B8460C;
	--ink: #0E1628;
	--paper: #FAFAFA;
	--mist: #FAFAFA;
	--tile: #FFFFFF;
	--muted: #5A6070;
	--line: #E3E5EA;
	--line-strong: #B1B3B6;
	--danger: #B42318;
	--danger-soft: #F8E9E8;
	--ok: #1F7A3D;
	--font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r-press: 4px;
	--r-card: 8px;
}

/* ── The screens' type ────────────────────────────────────────────── */

body.gv-woo .woocommerce,
body.gv-woo .wp-block-woocommerce-cart,
body.gv-woo .wp-block-woocommerce-checkout {
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
}

/* Sizes include padding and border, whatever the theme assumes. */
body.gv-woo .woocommerce,
body.gv-woo .woocommerce *,
body.gv-woo .woocommerce *::before,
body.gv-woo .woocommerce *::after { box-sizing: border-box; }

/* Visually hidden, still read out — never left to the theme to define. */
body.gv-woo .woocommerce .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Box titles: WooCommerce's headings, by their box — never by their tag. */
body.gv-woo .cart_totals > :first-child,
body.gv-woo #order_review_heading,
body.gv-woo .woocommerce-billing-fields > :first-child,
body.gv-woo .woocommerce-additional-fields > :first-child:not(.woocommerce-additional-fields__field-wrapper),
body.gv-woo .woocommerce-order-details__title,
body.gv-woo .woocommerce-column__title,
body.gv-woo .woocommerce-Address-title > :first-child,
body.gv-woo #customer_login .u-column1 > :first-child,
body.gv-woo #customer_login .u-column2 > :first-child,
body.gv-woo .wc-block-components-title,
body.gv-woo .wc-block-components-checkout-step__title {
	margin: 0 0 20px;
	padding: 0 0 14px;
	border-bottom: 2px solid var(--ink);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: none;
	font-style: normal;
}
body.gv-woo .cart_totals > :first-child::before,
body.gv-woo .cart_totals > :first-child::after,
body.gv-woo #order_review_heading::before,
body.gv-woo #order_review_heading::after,
body.gv-woo .woocommerce-billing-fields > :first-child::before,
body.gv-woo .woocommerce-billing-fields > :first-child::after,
body.gv-woo .woocommerce-additional-fields > :first-child:not(.woocommerce-additional-fields__field-wrapper)::after,
body.gv-woo .woocommerce-order-details__title::after,
body.gv-woo .woocommerce-column__title::after,
body.gv-woo .woocommerce-Address-title > :first-child::after,
body.gv-woo #customer_login .u-column1 > :first-child::after,
body.gv-woo #customer_login .u-column2 > :first-child::after,
body.gv-woo #ship-to-different-address::after,
body.gv-woo .woocommerce-products-header__title::after,
body.gv-woo .woocommerce-loop-product__title::after,
body.gv-woo .woocommerce div.product .product_title::after { content: none; display: none; }

/* WooCommerce's own links and paragraphs only: the plugin's blocks placed
   inside WooCommerce (thank-you, shipping meter, assurances) keep their own. */
body.gv-woo .woocommerce a:not(.gv *) { color: var(--ink); border-bottom: 0; box-shadow: none; }
body.gv-woo .woocommerce a:not(.gv *):hover { color: var(--blue); }

/* Links inside WooCommerce's tables (order numbers, product names) are a
   comfortable tap, not a 20px line of text. */
body.gv-woo .woocommerce table.shop_table td a:not(.button):not(.remove),
body.gv-woo .woocommerce table.shop_table tbody th a:not(.button):not(.remove) { display: inline-flex; align-items: center; min-height: 32px; }

/* WooCommerce's own lists carry no bullets of the theme's. */
body.gv-woo .woocommerce ul.payment_methods li,
body.gv-woo .woocommerce ul.woocommerce-shipping-methods li,
body.gv-woo .woocommerce ul.woocommerce-order-overview li,
body.gv-woo .woocommerce ul.products li,
body.gv-woo .woocommerce-MyAccount-navigation li { list-style: none; padding-left: 0; }
body.gv-woo .woocommerce ul.payment_methods li::before,
body.gv-woo .woocommerce ul.woocommerce-shipping-methods li::before,
body.gv-woo .woocommerce ul.woocommerce-order-overview li::before,
body.gv-woo .woocommerce ul.products li::before { content: none; display: none; }

body.gv-woo .woocommerce p:not(.gv *) { margin: 0 0 1em; font-size: inherit; color: inherit; }

/* ── Notices ──────────────────────────────────────────────────────── */

body.gv-woo .woocommerce-message,
body.gv-woo .woocommerce-info,
body.gv-woo .woocommerce-error,
body.gv-woo .woocommerce-notice,
body.gv-woo .wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 0 0 24px;
	padding: 16px 20px;
	list-style: none;
	background: var(--mist);
	border: 0;
	border-left: 3px solid var(--blue);
	border-radius: 0 var(--r-press) var(--r-press) 0;
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	box-shadow: none;
}
body.gv-woo .woocommerce-message::before,
body.gv-woo .woocommerce-info::before,
body.gv-woo .woocommerce-error::before { display: none; }
body.gv-woo .woocommerce-error,
body.gv-woo .wc-block-components-notice-banner.is-error { border-left-color: var(--danger); background: var(--danger-soft); }
body.gv-woo .woocommerce-message,
body.gv-woo .wc-block-components-notice-banner.is-success { border-left-color: var(--ok); }
body.gv-woo .woocommerce-message .button,
body.gv-woo .woocommerce-info .button { order: 2; min-height: 40px; padding: 0 16px; }
body.gv-woo .woocommerce-info a,
body.gv-woo .woocommerce-message a:not(.button) { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }

/* The plugin's own thank-you block says it; WooCommerce's sentence would repeat it. */
body.gv-woo .gv + .woocommerce-thankyou-order-received { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────── */

body.gv-woo .woocommerce a.button,
body.gv-woo .woocommerce button.button,
body.gv-woo .woocommerce input.button,
body.gv-woo .woocommerce #respond input#submit,
body.gv-woo .woocommerce a.button.alt,
body.gv-woo .woocommerce button.button.alt,
body.gv-woo .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 1.5px solid var(--blue-btn);
	border-radius: var(--r-press);
	background: var(--blue-btn);
	color: var(--on-blue);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	min-width: 0;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
body.gv-woo .woocommerce a.button:hover,
body.gv-woo .woocommerce button.button:hover,
body.gv-woo .woocommerce input.button:hover,
body.gv-woo .wc-block-components-button:not(.is-link):hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--on-blue); }

/* Secondary actions: outlined. */
body.gv-woo .woocommerce button[name="update_cart"],
body.gv-woo .woocommerce button[name="apply_coupon"],
body.gv-woo .woocommerce-orders-table .button,
body.gv-woo .woocommerce .woocommerce-Address .edit,
body.gv-woo .wc-block-components-totals-coupon__button {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}
body.gv-woo .woocommerce button[name="update_cart"]:hover,
body.gv-woo .woocommerce button[name="apply_coupon"]:hover,
body.gv-woo .woocommerce-orders-table .button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Waiting to be usable ("Actualizar carrito" until a quantity changes): an
   outline in muted ink. Chemist, like WooCommerce, paints disabled buttons
   grey with !important — the one place this sheet answers in kind. */
body.gv-woo .woocommerce button.button:disabled,
body.gv-woo .woocommerce button.button[disabled],
body.gv-woo .woocommerce button.button:disabled:hover,
body.gv-woo .woocommerce button.button[disabled]:hover {
	border-width: 1.5px;
	border-style: solid;
	border-color: var(--line-strong) !important;
	background: transparent !important;
	color: var(--muted) !important;
	font-family: var(--font-body);   /* themes also give disabled buttons their own type */
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: 1;
	cursor: not-allowed;
}

/* Paying is the orange, as everywhere else. */
body.gv-woo .woocommerce #place_order,
body.gv-woo .woocommerce a.checkout-button,
body.gv-woo .woocommerce .wc-proceed-to-checkout a.button,
body.gv-woo .woocommerce .single_add_to_cart_button,
body.gv-woo .wc-block-components-checkout-place-order-button,
body.gv-woo .wc-block-cart__submit-button {
	width: 100%;
	min-height: 58px;
	background: var(--orange-btn);
	border-color: var(--orange-btn);
	color: var(--on-orange);
	font-size: 14px;
}
body.gv-woo .woocommerce #place_order:hover,
body.gv-woo .woocommerce a.checkout-button:hover,
body.gv-woo .woocommerce .single_add_to_cart_button:hover,
body.gv-woo .wc-block-components-checkout-place-order-button:hover,
body.gv-woo .wc-block-cart__submit-button:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--on-orange); }
body.gv-woo .woocommerce .single_add_to_cart_button { width: auto; }
body.gv-woo .woocommerce button.button:disabled,
body.gv-woo .woocommerce button.button.disabled,
body.gv-woo .woocommerce button.button:disabled[disabled] { opacity: .45; cursor: not-allowed; padding: 0 24px; }

/* ── Fields ───────────────────────────────────────────────────────── */

body.gv-woo .woocommerce form .form-row { margin: 0 0 18px; padding: 0; }
body.gv-woo .woocommerce form .form-row label,
body.gv-woo .woocommerce-form-row label {
	display: block;
	margin: 0 0 7px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.4;
}
body.gv-woo .woocommerce form .form-row .required { color: var(--danger); text-decoration: none; border: 0; }
body.gv-woo .woocommerce form .form-row .optional { color: var(--muted); font-weight: 500; }

body.gv-woo .woocommerce form .input-text,
body.gv-woo .woocommerce form select,
body.gv-woo .woocommerce form textarea,
body.gv-woo .woocommerce .coupon .input-text,
body.gv-woo .woocommerce .quantity .qty,
body.gv-woo .select2-container--default .select2-selection--single,
body.gv-woo .wc-block-components-text-input input,
body.gv-woo .wc-block-components-combobox .wc-block-components-combobox-control input,
body.gv-woo .wc-block-components-textarea {
	width: 100%;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-press);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s ease;
}
body.gv-woo .woocommerce form textarea { min-height: 110px; }
body.gv-woo .woocommerce form .input-text:hover,
body.gv-woo .woocommerce form select:hover { border-color: var(--line-strong); }
body.gv-woo .woocommerce form .input-text:focus,
body.gv-woo .woocommerce form select:focus,
body.gv-woo .woocommerce form textarea:focus,
body.gv-woo .woocommerce .quantity .qty:focus,
body.gv-woo .wc-block-components-text-input input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}
body.gv-woo .woocommerce form .form-row.woocommerce-invalid .input-text,
body.gv-woo .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--danger); }
body.gv-woo .woocommerce form .form-row.woocommerce-validated .input-text { border-color: var(--line); }

body.gv-woo .select2-container--default .select2-selection--single { display: flex; align-items: center; padding: 0 14px; }
body.gv-woo .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--ink); }
body.gv-woo .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; right: 10px; height: 24px; transform: translateY(-50%); }
body.gv-woo .select2-dropdown { border: 1.5px solid var(--ink); border-radius: var(--r-press); }
body.gv-woo .select2-container--default .select2-results__option--highlighted[aria-selected],
body.gv-woo .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ink); color: var(--paper); }

body.gv-woo .woocommerce input[type="checkbox"],
body.gv-woo .woocommerce input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; }

/* ── Tables: the cart, the order review, order details, orders ───── */

body.gv-woo .woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 28px;
	border: 0;
	border-top: 2px solid var(--ink);
	border-radius: 0;
	border-collapse: collapse;
	font-size: 15.5px;
}
body.gv-woo .woocommerce table.shop_table th,
body.gv-woo .woocommerce table.shop_table td {
	padding: 18px 12px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	color: var(--ink);   /* themes colour the cells their own grey (Chemist: 3.5:1) */
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	vertical-align: middle;
}
body.gv-woo .woocommerce table.shop_table th:first-child,
body.gv-woo .woocommerce table.shop_table td:first-child { padding-left: 0; }
body.gv-woo .woocommerce table.shop_table th:last-child,
body.gv-woo .woocommerce table.shop_table td:last-child { padding-right: 0; }
body.gv-woo .woocommerce table.shop_table thead th {
	padding-block: 14px;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
body.gv-woo .woocommerce table.shop_table tfoot th { font-weight: 600; }
body.gv-woo .woocommerce table.shop_table .amount { font-weight: 700; }
body.gv-woo .woocommerce table.shop_table .product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
body.gv-woo .woocommerce table.shop_table .product-name a:hover { color: var(--blue); }
body.gv-woo .woocommerce table.shop_table .product-quantity { color: var(--muted); font-weight: 600; }

/* Cart rows */
body.gv-woo .woocommerce table.cart img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	border: 0;
	border-radius: var(--r-card);
	background: var(--tile);
	mix-blend-mode: multiply;
	box-shadow: none;
}
body.gv-woo .woocommerce table.cart .product-thumbnail { width: 112px; }
body.gv-woo .woocommerce table.cart .product-remove { width: 48px; }
body.gv-woo .woocommerce table.cart a.remove {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-press);
	color: var(--ink) !important;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}
body.gv-woo .woocommerce table.cart a.remove:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
body.gv-woo .woocommerce .quantity .qty { width: 84px; min-height: 48px; padding: 8px; text-align: center; font-weight: 700; }
body.gv-woo .woocommerce table.cart td.actions { padding: 22px 0 0; border-bottom: 0; }
body.gv-woo .woocommerce table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 10px; float: none; margin-bottom: 12px; }
body.gv-woo .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 200px; width: auto; min-height: 50px; }
body.gv-woo .woocommerce table.cart td.actions > .button { float: right; }

/* The cart beside its totals. */
body.gv-woo .woocommerce .cart-collaterals { width: 100%; }
body.gv-woo .woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	padding: clamp(22px, 2.5vw, 32px);
	border: 2px solid var(--ink);
	border-radius: var(--r-card);
}
body.gv-woo .woocommerce .cart-collaterals .cart_totals table.shop_table { border-top: 0; margin-bottom: 20px; }
body.gv-woo .woocommerce .cart_totals table.shop_table tr.order-total th,
body.gv-woo .woocommerce .cart_totals table.shop_table tr.order-total td,
body.gv-woo .woocommerce table.shop_table.woocommerce-checkout-review-order-table tr.order-total th,
body.gv-woo .woocommerce table.shop_table.woocommerce-checkout-review-order-table tr.order-total td {
	border-bottom: 0;
	padding-top: 22px;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.02em;
}
body.gv-woo .woocommerce .wc-proceed-to-checkout { padding: 0; }
body.gv-woo .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
body.gv-woo .woocommerce-shipping-methods li { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
/* Themes grey the method's name (Chemist: about 2:1); it is the choice being made. */
body.gv-woo .woocommerce ul#shipping_method li label,
body.gv-woo .woocommerce .woocommerce-shipping-methods li label { color: var(--ink); }
body.gv-woo .woocommerce-shipping-destination,
body.gv-woo .woocommerce-shipping-calculator { color: var(--muted); font-size: 14px; }

@media (min-width: 981px) {
	body.gv-woo.woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
		column-gap: clamp(32px, 4vw, 64px);
		align-items: start;
	}
	body.gv-woo.woocommerce-cart .woocommerce > * { grid-column: 1 / -1; }
	body.gv-woo.woocommerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
	body.gv-woo.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 120px; }
}

/* Empty cart */
body.gv-woo .cart-empty.woocommerce-info { font-size: 17px; }
body.gv-woo .return-to-shop .button { min-height: 54px; }

/* ── Checkout ─────────────────────────────────────────────────────── */

body.gv-woo .woocommerce-form-coupon-toggle .woocommerce-info { justify-content: flex-start; }
body.gv-woo form.checkout_coupon {
	margin: 0 0 24px;
	padding: 20px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
}
body.gv-woo .woocommerce .col2-set .col-1,
body.gv-woo .woocommerce .col2-set .col-2 { float: none; width: 100%; max-width: none; padding: 0; }
body.gv-woo .woocommerce .col2-set .col-2 { margin-top: 28px; }

body.gv-woo .woocommerce-billing-fields__field-wrapper,
body.gv-woo .woocommerce-shipping-fields__field-wrapper,
body.gv-woo .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}
body.gv-woo .woocommerce-billing-fields__field-wrapper > .form-row,
body.gv-woo .woocommerce-shipping-fields__field-wrapper > .form-row,
body.gv-woo .woocommerce-address-fields__field-wrapper > .form-row { grid-column: 1 / -1; float: none; width: auto; }
body.gv-woo .woocommerce-billing-fields__field-wrapper > .form-row-first,
body.gv-woo .woocommerce-shipping-fields__field-wrapper > .form-row-first,
body.gv-woo .woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }
body.gv-woo .woocommerce-billing-fields__field-wrapper > .form-row-last,
body.gv-woo .woocommerce-shipping-fields__field-wrapper > .form-row-last,
body.gv-woo .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }

body.gv-woo #ship-to-different-address {
	margin: 0 0 18px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}
body.gv-woo #ship-to-different-address label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }

body.gv-woo .woocommerce-checkout #order_review {
	padding: clamp(22px, 2.5vw, 32px);
	border: 2px solid var(--ink);
	border-radius: var(--r-card);
	background: var(--paper);
}
body.gv-woo #order_review_heading { margin-top: 0; }

@media (min-width: 981px) {
	/* Form on the left; the order — heading, then its box — on the right.
	   The second row takes the form's extra height, so the box sits right
	   under its heading. */
	body.gv-woo form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: clamp(32px, 4.5vw, 72px);
		align-items: start;
	}
	body.gv-woo form.checkout.woocommerce-checkout > * { grid-column: 1 / -1; }
	body.gv-woo form.checkout.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	body.gv-woo form.checkout.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 1; }
	body.gv-woo form.checkout.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 120px; }
}

body.gv-woo .woocommerce-checkout-review-order-table { border-top: 0 !important; }
body.gv-woo .woocommerce-checkout-review-order-table thead { display: none; }
/* One rule, never two: the total row closes its table without a hairline,
   and a table right under a box title borrows the title's rule. */
body.gv-woo .woocommerce table.shop_table tr.order-total > * { border-bottom: 0; }
body.gv-woo .woocommerce .woocommerce-order-details__title + table.shop_table { border-top: 0; }

/* Payment */
body.gv-woo .woocommerce-checkout #payment {
	margin-top: 8px;
	background: transparent;
	border-radius: 0;
}
body.gv-woo .woocommerce-checkout #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}
body.gv-woo .woocommerce-checkout #payment ul.payment_methods > li {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	list-style: none;
}
body.gv-woo .woocommerce-checkout #payment ul.payment_methods > li > label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0 8px;
	color: var(--ink);
	font-weight: 700;
	cursor: pointer;
}
body.gv-woo .woocommerce-checkout #payment ul.payment_methods > li img { max-height: 24px; width: auto; margin: 0; border: 0; box-shadow: none; }
body.gv-woo .woocommerce-checkout #payment div.payment_box {
	margin: 12px 0 0;
	padding: 14px 16px;
	border-radius: var(--r-press);
	background: var(--mist);
	color: var(--muted);
	font-size: 14px;
}
body.gv-woo .woocommerce-checkout #payment div.payment_box::before { display: none; }
body.gv-woo .woocommerce-checkout #payment div.form-row { margin: 0; padding: 20px 0 0; }
body.gv-woo .woocommerce-privacy-policy-text,
body.gv-woo .woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
body.gv-woo .woocommerce-privacy-policy-text a { color: var(--ink); text-decoration: underline; }

/* ── Checkout in three steps (assets/js/gavafute-checkout.js) ────────
   The script marks each part with the steps it belongs to; one step shows
   at a time. The order stays beside the form as a summary — its payment
   box only on the last step; on phones the summary waits for that step. */

body.gv-woo .gv-co-on[data-gv-at="1"] [data-gv-steps]:not([data-gv-steps~="1"]):not([data-gv-steps~="review"]),
body.gv-woo .gv-co-on[data-gv-at="2"] [data-gv-steps]:not([data-gv-steps~="2"]):not([data-gv-steps~="review"]),
body.gv-woo .gv-co-on[data-gv-at="3"] [data-gv-steps]:not([data-gv-steps~="3"]):not([data-gv-steps~="review"]) { display: none !important; }
body.gv-woo .gv-co-on:not([data-gv-at="3"]) #payment { display: none !important; }
@media (max-width: 980px) {
	body.gv-woo .gv-co-on:not([data-gv-at="3"]) [data-gv-steps~="review"] { display: none !important; }
}

body.gv-woo .gv-co-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 32px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--ink);
}
body.gv-woo .gv-co-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.gv-woo .gv-co-steps__item { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
/* The line between two steps, after each but the last (::after, so it can never
   be mistaken for — or replaced by — a theme's list bullet on ::before). */
body.gv-woo .gv-co-steps__item::before { content: none; display: none; }
body.gv-woo .gv-co-steps__item:not(:last-child)::after {
	content: "";
	display: block;
	width: clamp(14px, 4vw, 48px);
	height: 2px;
	background: var(--line);
}
body.gv-woo .gv .gv-co-steps__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 4px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
}
body.gv-woo .gv .gv-co-steps__btn[aria-disabled="true"] { cursor: default; }
body.gv-woo .gv-co-steps__n {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: none;
	border: 1.5px solid var(--line-strong);
	border-radius: 50%;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body.gv-woo .gv .gv-co-steps__btn.is-done,
body.gv-woo .gv .gv-co-steps__btn[aria-current] { color: var(--ink); }
body.gv-woo .gv-co-steps__btn.is-done .gv-co-steps__n { border-color: var(--ink); color: var(--ink); }
body.gv-woo .gv-co-steps__btn.is-done:hover .gv-co-steps__name { text-decoration: underline; text-underline-offset: .25em; }
body.gv-woo .gv-co-steps__btn[aria-current] .gv-co-steps__n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
body.gv-woo .gv-co-steps__item:has(.is-done):not(:last-child)::after { background: var(--ink); }
body.gv-woo .gv-co-total { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
body.gv-woo .gv-co-total:empty { display: none; }
body.gv-woo .gv-co-total strong { color: var(--ink); font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; }
@media (min-width: 981px) { body.gv-woo .gv-co-total { display: none; } }

/* What was given in the earlier steps, with a way back to each. */
body.gv-woo .gv-co-recap:empty { display: none; }
body.gv-woo .gv-co-recap { display: grid; margin: 0 0 28px; border: 1.5px solid var(--line); border-radius: var(--r-card); }
body.gv-woo .gv-co-recap__row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
}
body.gv-woo .gv-co-recap__row + .gv-co-recap__row { border-top: 1px solid var(--line); }
body.gv-woo .gv-co-recap__label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body.gv-woo .gv-co-recap__value { min-width: 0; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
body.gv-woo .gv .gv-co-recap__edit { min-height: 40px; padding: 0 4px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
body.gv-woo .gv .gv-co-recap__edit:hover { color: var(--blue); }
body.gv-woo .gv-co-recap__hint { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--mist); color: var(--ink); font-size: 14.5px; font-weight: 600; }

/* Back and Continue, at the end of each step. */
body.gv-woo .gv-co-nav { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
body.gv-woo .gv-co-nav__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; }
body.gv-woo .woocommerce .gv-co-nav button.gv-co-nav__next { min-height: 56px; padding: 0 32px; }
body.gv-woo .gv .gv-co-nav__back { min-height: 44px; margin-right: auto; padding: 0 4px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
body.gv-woo .gv .gv-co-nav__back:hover { color: var(--blue); }
body.gv-woo .gv-co-nav__error + .gv-co-nav__row { margin-top: 16px; }
body.gv-woo .gv-co-nav__error {
	margin: 0;
	padding: 12px 16px;
	border-left: 3px solid var(--danger);
	background: var(--danger-soft);
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 600;
}

/* Returning customers: logging in is offered as the first thing, in a box. */
body.gv-woo .gv-co-on .woocommerce-form-login-toggle .woocommerce-info { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); }
body.gv-woo .woocommerce-account-fields { margin-top: 8px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-card); }
body.gv-woo .woocommerce-account-fields .create-account label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 700; cursor: pointer; }
body.gv-woo .woocommerce-account-fields p.create-account { margin: 0; }

@media (max-width: 560px) {
	body.gv-woo .gv-co-steps__name { font-size: 13px; }
	body.gv-woo .gv-co-steps__item:not(:has([aria-current])) .gv-co-steps__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	body.gv-woo .gv-co-recap__row { grid-template-columns: minmax(0, 1fr) auto; }
	body.gv-woo .gv-co-recap__label { grid-column: 1 / -1; }
	body.gv-woo .gv-co-nav__row { flex-direction: column-reverse; align-items: stretch; }
	body.gv-woo .woocommerce .gv-co-nav button.gv-co-nav__next { width: 100%; }
	body.gv-woo .gv .gv-co-nav__back { margin-right: 0; }
}

/* ── Order received ───────────────────────────────────────────────── */

body.gv-woo .woocommerce ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 0 0 40px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
	list-style: none;
	overflow: hidden;
}
body.gv-woo .woocommerce ul.woocommerce-order-overview li {
	margin: 0;
	padding: 18px 20px;
	border: 0;
	border-right: 1px solid var(--line);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	float: none;
}
body.gv-woo .woocommerce ul.woocommerce-order-overview li:last-child { border-right: 0; }
body.gv-woo .woocommerce ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 18px;
	letter-spacing: -.01em;
	text-transform: none;
	word-break: break-word;
}
body.gv-woo .woocommerce-customer-details address {
	padding: 20px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
	font-style: normal;
	line-height: 1.7;
}

/* ── My account ───────────────────────────────────────────────────── */

@media (min-width: 981px) {
	body.gv-woo.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		column-gap: clamp(32px, 4vw, 64px);
		align-items: start;
	}
	body.gv-woo.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}
body.gv-woo .woocommerce-MyAccount-navigation,
body.gv-woo .woocommerce-MyAccount-content { float: none; width: auto; }
body.gv-woo .woocommerce-MyAccount-navigation ul { margin: 0 0 32px; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
body.gv-woo .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
body.gv-woo .woocommerce-MyAccount-navigation li::before { content: none; }
body.gv-woo .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 12px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-left: 3px solid transparent;
}
body.gv-woo .woocommerce-MyAccount-navigation a:hover { color: var(--ink); background: var(--mist); }
body.gv-woo .woocommerce-MyAccount-navigation .is-active a { color: var(--ink); font-weight: 700; border-left-color: var(--orange); }
body.gv-woo .woocommerce-MyAccount-content > p:first-of-type { font-size: 18px; }
body.gv-woo .woocommerce-Addresses .woocommerce-Address {
	padding: 24px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
}

/* Logged out: log in beside register, each in its box. */
body.gv-woo #customer_login { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
body.gv-woo #customer_login::before,
body.gv-woo #customer_login::after { display: none; }
body.gv-woo #customer_login > div { float: none; width: auto; }
body.gv-woo .woocommerce form.login,
body.gv-woo .woocommerce form.register,
body.gv-woo .woocommerce form.lost_reset_password {
	margin: 0;
	padding: clamp(22px, 2.5vw, 32px);
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
}
body.gv-woo .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 16px 0 0 !important; font-weight: 600 !important; }
body.gv-woo .woocommerce-LostPassword a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; text-decoration: underline; }

/* ── The shop archive and a product without its own page ─────────── */

body.gv-woo .woocommerce-products-header__title {
	margin: 0 0 24px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(34px, 4.4vw, 62px);
	font-style: normal;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.04em;
	text-transform: none;
}
body.gv-woo .woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; }
body.gv-woo .woocommerce .woocommerce-ordering select { min-height: 44px; width: auto; }

body.gv-woo .woocommerce ul.products {
	display: grid;
	/* Four products: four columns, then two — never a row with an empty slot. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px clamp(16px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
body.gv-woo .woocommerce ul.products::before,
body.gv-woo .woocommerce ul.products::after { display: none; }
body.gv-woo .woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: left;
	list-style: none;
}
body.gv-woo .woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 0 18px;
	aspect-ratio: 1;
	object-fit: contain;
	border: 0;
	border-radius: var(--r-card);
	background: var(--tile);
	mix-blend-mode: multiply;
	box-shadow: none;
}
body.gv-woo .woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 20px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: none;
}
body.gv-woo .woocommerce ul.products li.product a.woocommerce-LoopProduct-link { position: relative; display: block; color: var(--ink); text-decoration: none; }
body.gv-woo .woocommerce ul.products li.product .price {
	display: block;
	margin: 6px 0 16px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
}
body.gv-woo .woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 500; opacity: 1; }
body.gv-woo .woocommerce ul.products li.product .price ins { color: var(--ink); text-decoration: none; }
body.gv-woo .woocommerce ul.products li.product .button { width: 100%; margin-top: auto; }
body.gv-woo .woocommerce span.onsale {
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
	right: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 6px 10px;
	border-radius: var(--r-press);
	background: var(--orange-btn);
	color: var(--on-orange);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
}
body.gv-woo .woocommerce div.product .product_title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; }
body.gv-woo .woocommerce div.product p.price,
body.gv-woo .woocommerce div.product span.price { color: var(--ink); font-family: var(--font-display); font-size: 30px; font-weight: 700; }
body.gv-woo .woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 2px solid var(--ink); }
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; border: 0; border-radius: 0; background: none; }
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.gv-woo .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }

/* ── The block cart and checkout ──────────────────────────────────── */

body.gv-woo .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: clamp(24px, 4vw, 64px); }
body.gv-woo .wc-block-components-sidebar .wc-block-components-panel,
body.gv-woo .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
body.gv-woo .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border-radius: var(--r-card);
}
body.gv-woo .wp-block-woocommerce-checkout-order-summary-block {
	padding: 20px;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-card);
}
body.gv-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.gv-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.02em;
}
body.gv-woo .wc-block-components-product-name { color: var(--ink); font-weight: 700; text-decoration: none; }
body.gv-woo .wc-block-components-product-metadata,
body.gv-woo .wc-block-components-product-details { color: var(--muted); font-size: 13.5px; }
body.gv-woo .wc-block-cart-item__image img,
body.gv-woo .wc-block-components-order-summary-item__image img { border-radius: var(--r-card); background: var(--tile); mix-blend-mode: multiply; }
body.gv-woo .wc-block-components-sale-badge { border: 0; border-radius: var(--r-press); background: var(--orange-btn); color: var(--on-orange); font-weight: 700; }
body.gv-woo .wc-block-components-quantity-selector { border: 1.5px solid var(--ink); border-radius: var(--r-press); }
body.gv-woo .wc-block-components-quantity-selector::after { display: none; }
body.gv-woo .wc-block-components-radio-control__option,
body.gv-woo .wc-block-components-radio-control-accordion-option { border-radius: var(--r-press); }
body.gv-woo .wc-block-components-checkout-step__description,
body.gv-woo .wc-block-checkout__terms { color: var(--muted); font-size: 13.5px; }

/* ── Phones ───────────────────────────────────────────────────────── */

@media (max-width: 980px) {
	body.gv-woo .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	body.gv-woo .woocommerce-billing-fields__field-wrapper,
	body.gv-woo .woocommerce-shipping-fields__field-wrapper,
	body.gv-woo .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	body.gv-woo .woocommerce-billing-fields__field-wrapper > .form-row-last,
	body.gv-woo .woocommerce-shipping-fields__field-wrapper > .form-row-last,
	body.gv-woo .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 1; }

	/* Tables become one card per row: each cell a line, its label (WooCommerce's
	   data-title) on the left, its value on the right. Self-contained, so it
	   holds even where the theme drops WooCommerce's small-screen sheet. */
	body.gv-woo .woocommerce table.shop_table_responsive,
	body.gv-woo .woocommerce table.shop_table_responsive tbody { display: block; width: 100%; }
	body.gv-woo .woocommerce table.shop_table_responsive thead,
	body.gv-woo .woocommerce table.shop_table_responsive tbody th:not([data-title]) { display: none; }
	body.gv-woo .woocommerce table.shop_table_responsive tr { display: flow-root; padding: 14px 0; border-bottom: 1px solid var(--line); }
	body.gv-woo .woocommerce table.shop_table_responsive tr > td,
	body.gv-woo .woocommerce table.shop_table_responsive tr > th[data-title] { display: block; padding: 7px 0; border: 0; text-align: right; }
	body.gv-woo .woocommerce table.shop_table_responsive tr > [data-title]::before {
		content: attr(data-title);
		float: left;
		margin-right: 16px;
		color: var(--muted);
		font-family: var(--font-body);
		font-size: 12px;
		font-weight: 700;
		line-height: 2.2;
		letter-spacing: .1em;
		text-transform: uppercase;
	}
	body.gv-woo .woocommerce table.shop_table_responsive tr > :not([data-title])::before { content: none; }
	body.gv-woo .woocommerce table.shop_table_responsive .woocommerce-shipping-methods li { justify-content: flex-end; }

	/* The cart: photo on the left, the remove cross on the right, then the lines. */
	body.gv-woo .woocommerce table.cart td.product-remove { float: right; padding: 0; }
	body.gv-woo .woocommerce table.cart td.product-thumbnail { width: auto; padding: 0 0 6px; text-align: left; }
	body.gv-woo .woocommerce table.cart td.product-thumbnail img { width: 72px; height: 72px; }
	body.gv-woo .woocommerce table.cart td.actions { padding-top: 18px; text-align: left; }
	body.gv-woo .woocommerce table.cart td.actions .coupon { flex-wrap: nowrap; }
	body.gv-woo .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 0; min-width: 0; }
	body.gv-woo .woocommerce table.cart td.actions .coupon .button { flex: 0 0 auto; width: auto; }
	body.gv-woo .woocommerce table.cart td.actions > .button { float: none; width: 100%; }
	body.gv-woo .woocommerce ul.woocommerce-order-overview li { border-right: 0; border-bottom: 1px solid var(--line); }
	body.gv-woo .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}

/* ── Less motion ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	body.gv-woo .woocommerce *,
	body.gv-woo .woocommerce *::before,
	body.gv-woo .woocommerce *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}
