/**
 * Vegan Fox - checkout rework.
 *
 * Scoped to the checkout form (.vf-checkout) and the checkout page title.
 * Header, footer and navigation are deliberately untouched.
 *
 * Tokens taken from the Figma (rv251IB6ymqR8NV0q1Ruug, node 4162-1796).
 * The accent resolves to the theme's live brand colour first so the checkout
 * stays consistent with the rest of the site; the Figma value is the fallback.
 */

.vf-checkout {
	--vf-accent: var(--wd-primary-color, #ff5031);
	--vf-ink: #4d4d4d;
	--vf-ink-strong: #3b3b3b;
	--vf-ink-soft: #6b6b6b;
	--vf-line: #d9d9d9;
	--vf-line-input: #b4bbc3;
	--vf-line-selected: #41423d;
	--vf-surface: #f7f7f7;
	--vf-radius-card: 16px;
	--vf-radius: 8px;
	--vf-radius-cta: 12px;
	--vf-gap: 24px;
	--vf-col: 900px;
}

/* ---------------------------------------------------------------- layout - */

.vf-checkout {
	max-width: var(--vf-col);
	margin-inline: auto;
	/* Designer omitted the gap before the newsletter block - added here. */
	padding-bottom: 80px;
	font-family: "Nunito Sans", sans-serif;
	color: var(--vf-ink-strong);
}

/* The theme ships a two-column flex checkout:
     form.woocommerce-checkout > :is(.customer-details,.checkout-order-review)
       { flex:1 0 0; max-width:50% }
   (woodmart/css/parts/woo-page-checkout-predefined.min.css)
   That selector is tag-qualified, so the override has to be too. The design is
   one centred stack. */
form.woocommerce-checkout.vf-checkout {
	display: block;
}

form.woocommerce-checkout.vf-checkout > .customer-details,
form.woocommerce-checkout.vf-checkout > .checkout-order-review,
form.woocommerce-checkout.vf-checkout > .vf-shipping {
	flex: none;
	width: 100%;
	max-width: none;
	float: none;
	padding: 0;
	position: static;
}

/* the theme makes the review column sticky in the sidebar layout */
form.woocommerce-checkout.vf-checkout > .checkout-order-review > * {
	position: static;
	top: auto;
}

.vf-checkout .vf-section-title,
.vf-checkout #order_review_heading {
	font-family: "Dosis", sans-serif;
	font-weight: 600;
	font-size: 28px;
	line-height: 1.2;
	color: var(--vf-ink);
	margin: 0 0 var(--vf-gap);
	text-transform: none;
}

/* --------------------------------------------------------- coupon toggle - */

/* Theme styles .woocommerce-info as a bordered notice with an icon; the design
   is a plain line. Selectors are tag/attribute qualified to win. */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout div.woocommerce-form-coupon-toggle div.woocommerce-info {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 16px;
	color: var(--vf-ink-strong, #3b3b3b);
	display: block;
	min-height: 0;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
	display: none;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle a {
	color: var(--vf-accent);
	text-decoration: underline;
	font-weight: 600;
}

/* ------------------------------------------------------------- steps bar - */

/* Woodmart prints this <ul> inside the page-title block on BOTH cart and
   checkout, and the child theme overrides the pluggable woodmart_checkout_steps()
   to supply the design's labels. Banner + steps are the only rules in this file
   that apply to the cart page; everything else is scoped to .vf-checkout, a class
   that exists only on the checkout form.

   Figma "Headline" frame: 1440x180 with a 685x24 step row centred at y=78.
   Woodmart's title-size-large adds 100px padding top and bottom (242px total),
   so the band is reset to a fixed 180px and centred. Step text 18/24 weight 400,
   colours #878787 (past) / #F9F9F8 (current) / #CFCFCF (future). */

.woocommerce-checkout .wd-page-title.page-title,
.woocommerce-cart .wd-page-title.page-title {
	min-height: 180px;
	height: 180px;
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* The site's scrim is declared as .wd-page-title::before { z-index:0 }, but
   .wd-page-title-bg (the image) is position:absolute with z-index:auto, so the
   image painted over the scrim and it never darkened anything. Restack it above
   the image, with the step row above both. */
.woocommerce-checkout .wd-page-title.page-title > .wd-page-title-bg,
.woocommerce-cart .wd-page-title.page-title > .wd-page-title-bg {
	z-index: 0;
}

.woocommerce-checkout .wd-page-title.page-title::before,
.woocommerce-cart .wd-page-title.page-title::before {
	z-index: 1;
}

.woocommerce-checkout .wd-page-title.page-title > .container,
.woocommerce-cart .wd-page-title.page-title > .container {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wd-checkout-steps.vf-checkout-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	z-index: 2;
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	line-height: 24px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wd-checkout-steps.vf-checkout-steps > li,
.wd-checkout-steps.vf-checkout-steps > li.step-inactive {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
}

.wd-checkout-steps.vf-checkout-steps > li::marker {
	content: none;
}

/* Separator: reuse the theme's own arrow glyph
   (.wd-checkout-steps li:not(:last-child):after -> "\f120" in woodmart-font)
   rather than drawing a second one, which would double it up. */
.wd-checkout-steps.vf-checkout-steps > li:not(:last-child)::after {
	color: #cfcfcf;
	opacity: 0.9;
	font-size: 75%;
	font-weight: 400;
}

.wd-checkout-steps.vf-checkout-steps a,
.wd-checkout-steps.vf-checkout-steps > li > span,
.wd-checkout-steps.vf-checkout-steps a span {
	font-size: 18px;
	line-height: 24px;
	font-weight: 400;
	opacity: 1;
	background: none;
	border: 0;
	padding: 0;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* past step */
.wd-checkout-steps.vf-checkout-steps .step-cart a span {
	color: #878787;
}

/* future step */
.wd-checkout-steps.vf-checkout-steps .step-complete > span {
	color: #cfcfcf;
}

/* current step - brighter, same weight; keeps the theme's brand underline */
.wd-checkout-steps.vf-checkout-steps .step-active > a span,
.wd-checkout-steps.vf-checkout-steps .step-active > span {
	color: #f9f9f8;
	font-weight: 400;
	text-decoration: underline 2px solid var(--wd-primary-color, #ff5031);
	text-underline-offset: 6px;
}

.wd-checkout-steps.vf-checkout-steps a:hover span {
	color: #fff;
}

@media (max-width: 768px) {
	/* Mobile banner - Figma "Headline" on the 360px frame: 360x100 with the step
	   row (24px tall) centred at y=38. The design's step frame is 172px wide,
	   exactly the width of the active label, with the other two clipped outside
	   it - i.e. only the current step is shown. Doing that with display:none
	   rather than overflow keeps the page free of horizontal scroll. */
	.woocommerce-checkout .wd-page-title.page-title,
	.woocommerce-cart .wd-page-title.page-title {
		height: 100px;
		min-height: 100px;
		padding: 0;
	}

	.wd-checkout-steps.vf-checkout-steps,
	.wd-checkout-steps.vf-checkout-steps a span,
	.wd-checkout-steps.vf-checkout-steps > li > span {
		font-size: 14px;
		line-height: 18px;
	}

	.wd-checkout-steps.vf-checkout-steps,
	.wd-checkout-steps.vf-checkout-steps > li {
		gap: 0;
	}

	/* only the current step, and no dangling arrow after it */
	.wd-checkout-steps.vf-checkout-steps > li:not(.step-active),
	.wd-checkout-steps.vf-checkout-steps > li:not(:last-child)::after {
		display: none;
	}
}

/* -------------------------------------------------------------- shipping - */

.vf-shipping {
	margin-bottom: 48px;
}

.vf-shipping-package {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* Shipping cards - Figma spec (Frame 427322512):
   442x74 in a 900 row with 16px gap, 8px radius, 16px padding,
   1.5px #4D4D4D border when selected, carrier logo 32px tall. */
.vf-ship-card {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 74px;
	padding: 16px;
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin: 0;
}

.vf-ship-card:hover {
	border-color: var(--vf-line-input);
}

.vf-ship-card.is-selected {
	border: 1.5px solid #4d4d4d;
	box-shadow: none;
}

/* The radio itself is not in the design - the whole card is the control. */
.vf-ship-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.vf-ship-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.vf-ship-card__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	color: #4d4d4d;
}

.vf-ship-card__label .montonio-shipping-label {
	font-weight: 400;
}

.vf-ship-card__label .amount {
	font-weight: 700;
	color: #4d4d4d;
}

/* Carrier logo: a sibling of the text block, 32px tall (DPD 73x32, Omniva 92x32
   in the design). Rendered outside .vf-ship-card__label by render_rates() so it
   cannot inflate the label line height. */
.vf-ship-card__logo {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 0;
}

.vf-ship-card__logo img {
	width: auto;
	max-width: 100px;
	height: 32px;
	object-fit: contain;
	display: block;
}

.vf-ship-card__eta {
	font-family: "Nunito Sans", sans-serif;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #747474;
}


/* Montonio pickup-point dropdown, rendered into .vf-shipping-extra. */
.vf-shipping-extra {
	margin-top: var(--vf-gap);
}

.vf-shipping-extra:empty {
	margin-top: 0;
}

.vf-shipping-extra label,
.vf-checkout .vf-order-notes label {
	display: block;
	font-size: 16px;
	color: var(--vf-ink-strong);
	margin-bottom: 8px;
}

.vf-checkout .vf-order-notes {
	margin-top: var(--vf-gap);
}

.vf-checkout .vf-order-notes textarea {
	resize: vertical;
}

/* ------------------------------------------------------- fields / inputs - */

/* The "ship to a different address" control is an <h3> inside
   .woocommerce-shipping-fields, i.e. a sibling container from the newsletter and
   create-account rows in .woocommerce-billing-fields. The design orders them
   ship-to -> newsletter -> create account, so both containers are flattened into
   one grid with display:contents and then ordered. Presentation only - no markup
   or template changes, and div.shipping_address still slideToggles normally. */
.vf-checkout #customer_details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 4px;
}

.vf-checkout .woocommerce-billing-fields,
.vf-checkout .woocommerce-billing-fields__field-wrapper,
.vf-checkout .woocommerce-account-fields,
.vf-checkout .woocommerce-shipping-fields {
	display: contents;
}

.vf-checkout .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 4px;
}

/* order within the flattened grid (unset rows default to 0) */
.vf-checkout #ship-to-different-address {
	order: 1;
}

.vf-checkout .kl_newsletter_checkbox_field {
	order: 2;
}

.vf-checkout .form-row.create-account,
.vf-checkout #account_password_field {
	order: 3;
}

.vf-checkout div.shipping_address {
	order: 4;
	grid-column: 1 / -1;
}

.vf-checkout .form-row {
	float: none !important;
	width: auto !important;
	margin: 0 0 16px;
	padding: 0;
	grid-column: span 2;
}

.vf-checkout .form-row.form-row-first,
.vf-checkout .form-row.form-row-last {
	grid-column: span 1;
}

.vf-checkout .form-row > label {
	display: block;
	font-size: 16px;
	color: var(--vf-ink-strong);
	margin-bottom: 8px;
}

.vf-checkout .form-row .required {
	color: #e02b27;
	text-decoration: none;
}

.vf-checkout .form-row .optional {
	color: var(--vf-ink-soft);
}

.vf-checkout .form-row input[type="text"],
.vf-checkout .form-row input[type="email"],
.vf-checkout .form-row input[type="tel"],
.vf-checkout .form-row input[type="password"],
.vf-checkout .form-row input[type="number"],
.vf-checkout .form-row textarea,
.vf-checkout .form-row select,
.vf-checkout .select2-container .select2-selection,
.vf-shipping-extra select {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--vf-line-input);
	border-radius: var(--vf-radius);
	background-color: #fff;
	font-size: 16px;
	color: var(--vf-ink-strong);
	box-shadow: none;
}

.vf-checkout .form-row input:focus,
.vf-checkout .form-row textarea:focus,
.vf-checkout .form-row select:focus,
.vf-shipping-extra select:focus {
	border-color: var(--vf-line-selected);
	outline: none;
}

.vf-checkout .select2-container--default .select2-selection--single {
	height: 48px;
	display: flex;
	align-items: center;
}

/* Checkbox rows: newsletter, create account, ship-to-different. */
.vf-checkout .form-row.create-account,
.vf-checkout .kl_newsletter_checkbox_field,
.vf-checkout #ship-to-different-address {
	grid-column: span 2;
	margin-bottom: 10px;
}

.vf-checkout #ship-to-different-address {
	font-size: 16px;
	font-weight: 400;
}

.vf-checkout #ship-to-different-address label,
.vf-checkout .form-row.create-account label,
.vf-checkout .kl_newsletter_checkbox_field label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.vf-checkout input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	accent-color: var(--vf-accent);
	flex: 0 0 auto;
}

/* SUPP-6390: no VAT field on checkout. Vegan_Fox_Checkout::field_layout() drops
   it server-side and hide_vat_button() suppresses B2Bking's VIES button; this is
   the belt-and-braces for anything the plugin prints outside those two paths
   (e.g. the VAT input in its register-at-checkout block).
   B2Bking's own hidden country helpers were always display:none. */
.vf-checkout .b2bking_vat_field_container,
.vf-checkout .b2bking_vat_countries_hidden,
.vf-checkout #b2bking_vat_number_registration_field,
.vf-checkout #b2bking_checkout_registration_validate_vat_button,
.woocommerce-checkout #b2bking_checkout_registration_validate_vat_button {
	display: none !important;
}

.vf-checkout [id^="b2bking_custom_"] {
	grid-column: span 2;
}

/* --------------------------------------------------------- order review - */

.vf-checkout .checkout-order-review {
	background: var(--vf-surface);
	border-radius: var(--vf-radius-card);
	margin-top: 48px;
}

.vf-checkout .vf-order-table {
	display: block;
	background: #fff;
	border-radius: var(--vf-radius);
	padding: 8px 24px 24px;
	margin: 0 0 32px;
	border: 0;
}

.vf-checkout .vf-order-table thead,
.vf-checkout .vf-order-table tbody,
.vf-checkout .vf-order-table tfoot {
	display: block;
	width: 100%;
}

.vf-checkout .vf-order-table tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px 130px 110px;
	align-items: center;
	gap: 12px;
	border: 0;
	border-bottom: 1px solid #ececec;
	padding: 16px 0;
}

.vf-checkout .vf-order-table thead tr {
	padding: 16px 0 12px;
	border-bottom: 1px solid #ececec;
}

.vf-checkout .vf-order-table th,
.vf-checkout .vf-order-table td {
	border: 0;
	padding: 0;
	background: none;
	font-size: 16px;
}

.vf-checkout .vf-cell-price,
.vf-checkout .vf-cell-price .amount,
.vf-checkout .vf-cell-price bdi {
	color: var(--vf-ink-strong);
	font-weight: 400;
}

.vf-checkout .vf-cell-total,
.vf-checkout .vf-cell-total .amount,
.vf-checkout .vf-cell-total bdi {
	color: var(--vf-ink-strong);
	font-weight: 600;
}

.vf-checkout .vf-order-table thead th {
	font-family: "Nunito Sans", sans-serif;
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--vf-ink-soft);
}

.vf-checkout .vf-order-table .vf-cell-price,
.vf-checkout .vf-order-table .vf-cell-qty,
.vf-checkout .vf-order-table .vf-cell-total,
.vf-checkout .vf-order-table thead .product-price,
.vf-checkout .vf-order-table thead .product-quantity,
.vf-checkout .vf-order-table thead .product-total {
	text-align: right;
	justify-self: end;
}

.vf-checkout .vf-order-table thead .product-quantity,
.vf-checkout .vf-order-table .vf-cell-qty {
	justify-self: center;
	text-align: center;
}

/* product cell: X + thumb + title */
.vf-checkout .vf-cell-prod {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.vf-checkout .wd-checkout-remove-btn-wrapp {
	flex: 0 0 auto;
}

/* Remove icon - Figma "eva:close-outline": a 24x24 box with a 12x12 glyph in
   #AEADAD at full opacity. Woodmart draws the X with an ::after font glyph at
   10px/#333 and dims the anchor to 0.55, so both are reset here. */
.vf-checkout .wd-checkout-remove-btn {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	opacity: 1;
	color: #aeadad;
	font-size: 12px;
	line-height: 1;
}

.vf-checkout .wd-checkout-remove-btn::after {
	font-size: 12px;
	line-height: 1;
	color: #aeadad;
}

.vf-checkout .wd-checkout-remove-btn:hover,
.vf-checkout .wd-checkout-remove-btn:hover::after {
	opacity: 1;
	color: var(--vf-accent);
}

.vf-checkout .wd-checkout-remove-btn-wrapp {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Product thumbnail - Figma 'image' rectangle: 56x56, 8px radius (same on the
   desktop and 360px frames). Something sets min-width:65px on the cart thumb,
   and min-width beats both width and max-width, so it has to be cleared. */
.vf-checkout .wd-checkout-prod-img,
.vf-checkout .wd-checkout-prod-img a {
	flex: 0 0 auto;
	display: block;
	width: 56px;
	height: 56px;
	max-width: 56px;
	overflow: hidden;
	border-radius: 8px;
}

.vf-checkout .wd-checkout-prod-img img {
	min-width: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}

.vf-checkout .wd-checkout-prod-cont {
	min-width: 0;
	flex: 1 1 auto;
}

.vf-checkout .wd-checkout-prod-title {
	font-size: 15px;
	line-height: 1.35;
}

.vf-checkout .wd-checkout-prod-title a,
.vf-checkout .cart-product-label-link {
	color: var(--vf-accent);
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 400;
}

.vf-checkout .wd-checkout-prod-title a:hover {
	text-decoration: underline;
}

/* quantity stepper */
.vf-checkout .vf-cell-qty .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
	overflow: hidden;
	background: #fff;
	height: 40px;
}

.vf-checkout .vf-cell-qty .quantity input.qty {
	width: 44px;
	min-height: 0;
	height: 38px;
	border: 0;
	border-inline: 1px solid var(--vf-line);
	border-radius: 0;
	text-align: center;
	padding: 0;
	font-size: 16px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.vf-checkout .vf-cell-qty .quantity input.qty::-webkit-outer-spin-button,
.vf-checkout .vf-cell-qty .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vf-checkout .vf-cell-qty .quantity :is(.minus, .plus, .wd-plus, .wd-minus) {
	width: 38px;
	height: 38px;
	border: 0;
	background: none;
	color: var(--vf-ink-soft);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vf-checkout .vf-cell-qty .quantity :is(.minus, .plus, .wd-plus, .wd-minus):hover {
	color: var(--vf-ink-strong);
}

/* totals */
.vf-checkout .vf-order-table tfoot tr {
	grid-template-columns: minmax(0, 1fr) auto;
	border-bottom: 0;
	padding: 6px 0;
}

.vf-checkout .vf-order-table tfoot th {
	font-weight: 400;
	font-size: 16px;
	text-align: left;
	color: var(--vf-ink-strong);
}

.vf-checkout .vf-order-table tfoot td {
	text-align: right;
	justify-self: end;
}

.vf-checkout .vf-order-table tfoot .vf-row-subtotal {
	padding-bottom: 16px;
	border-bottom: 1px solid #ececec;
}

.vf-checkout .vf-order-table tfoot .vf-row-total {
	padding-top: 16px;
	align-items: start;
}

.vf-checkout .vf-order-table tfoot .vf-row-total th {
	font-family: "Nunito Sans", sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--vf-ink-strong);
}

.vf-checkout .vf-order-table tfoot .vf-row-total td {
	font-size: 20px;
	font-weight: 700;
	color: var(--vf-accent);
	line-height: 1.3;
}

.vf-checkout .vf-order-table tfoot .vf-row-total .includes_tax {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: var(--vf-ink-soft);
}

.vf-checkout .vf-order-table tfoot .vf-row-total .includes_tax .amount {
	color: var(--vf-accent);
	font-weight: 600;
}

/* ---------------------------------------------------------------- payment - */

.vf-checkout #payment {
	background: none;
	border-radius: 0;
	padding: 0;
}

.vf-checkout #payment::before {
	display: none;
}

.vf-checkout #order_review_heading + #order_review #payment {
	margin-top: 32px;
}

.vf-checkout #payment .wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.vf-checkout #payment .wc_payment_method {
	border: 0;
	padding: 0;
	margin: 0 0 12px;
	background: none;
}

.vf-checkout #payment .wc_payment_method > label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 400;
	color: var(--vf-ink-strong);
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.vf-checkout #payment .wc_payment_method > label img {
	max-height: 24px;
	width: auto;
	margin: 0 2px;
	display: inline-block;
}

.vf-checkout #payment input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--vf-accent);
	margin: 0;
}

/* the expanded panel (Montonio bank grid) */
.vf-checkout #payment .payment_box {
	background: #fff;
	border-radius: var(--vf-radius);
	padding: 20px;
	margin: 12px 0 0;
	font-size: 15px;
	color: var(--vf-ink-soft);
}

.vf-checkout #payment .payment_box::before {
	display: none;
}

.vf-checkout .montonio-bank-items--grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

/* Montonio ships .montonio-bank-item { width:100px }, which stops the cards
   filling their grid cells. The design has them stretched evenly across the row. */
.vf-checkout .montonio-bank-payments-form .montonio-bank-items .montonio-bank-item,
.vf-checkout .montonio-bank-item {
	width: auto;
	min-width: 0;
	max-width: none;
	flex: 1 1 auto;
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
	background: #fff;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.vf-checkout .montonio-bank-payments-form .montonio-bank-items .montonio-bank-item-img,
.vf-checkout #montonio-payments-description.montonio-bank-items .montonio-bank-item-img {
	max-width: 100%;
	max-height: 28px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.vf-checkout .montonio-bank-payments-form .montonio-bank-items .montonio-bank-item:hover,
.vf-checkout .montonio-bank-payments-form .montonio-bank-items .montonio-bank-item.active,
.vf-checkout .montonio-bank-item.selected {
	border-color: var(--vf-line-selected);
}

/* ------------------------------------------------------- terms + place order - */

.vf-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--vf-line);
}

.vf-checkout .woocommerce-privacy-policy-text p {
	font-size: 15px;
	color: var(--vf-ink-strong);
	margin: 0 0 12px;
}

.vf-checkout .woocommerce-privacy-policy-text a,
.vf-checkout .woocommerce-terms-and-conditions-checkbox-text a {
	color: var(--vf-accent);
	text-decoration: underline;
	font-weight: 600;
}

.vf-checkout .validate-required .woocommerce-terms-and-conditions-checkbox-text {
	font-size: 15px;
}

.vf-checkout .form-row.place-order {
	margin: 24px 0 0;
	padding: 0;
}

.vf-checkout #place_order {
	background: var(--vf-accent);
	color: #fff;
	border: 0;
	border-radius: var(--vf-radius-cta);
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	font-weight: 600;
	min-height: 56px;
	padding: 0 32px;
	width: auto;
	min-width: 194px;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.vf-checkout #place_order:hover {
	filter: brightness(0.94);
	background: var(--vf-accent);
	color: #fff;
}

/* ------------------------------------ coupon form (in payment section) - */

/* SUPP-6390. The block now sits under the "Maksājuma metode" heading, rendered
   by Vegan_Fox_Checkout::coupon_form(). It is still not a descendant of
   .form-row, so the field styling further up does not reach it and it is styled
   to the same system here: 48px controls, 8px radius, --vf-line-input borders -
   otherwise it falls back to the theme's square, red-bordered inputs. */

.vf-checkout .vf-coupon {
	margin: 0 0 24px;
}

.vf-checkout .vf-coupon .woocommerce-form-coupon-toggle {
	margin: 0;
}

/* "Kupona kods veiksmīgi ievadīts" - WooCommerce inserts this before the form,
   i.e. inside .vf-coupon, so it picks up the card's rounding rather than running
   edge to edge as a square band. (Invalid codes render inline under the input
   instead, as .coupon-error-notice - that is WooCommerce's own behaviour.) */
.vf-checkout .vf-coupon .woocommerce-message,
.vf-checkout .vf-coupon .woocommerce-error {
	margin: 12px 0 0;
	border-radius: var(--vf-radius);
}

/* Woodmart caps .woocommerce-form-coupon at 470px for its own top-of-page
   placement; in the 852px order card the row should fill the width. */
.woocommerce-checkout form.checkout_coupon {
	max-width: none;
	margin: 12px 0 0;
	padding: 20px;
	border: 1px solid var(--vf-line, #d9d9d9);
	border-radius: var(--vf-radius-card, 16px);
	background: #fff;
	font-family: "Nunito Sans", sans-serif;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.woocommerce-checkout form.checkout_coupon .form-row {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	width: auto;
	min-width: 0;
	float: none;
}

.woocommerce-checkout form.checkout_coupon .form-row-last {
	flex: 0 0 auto;
}

.woocommerce-checkout form.checkout_coupon .clear {
	display: none;
}

.woocommerce-checkout form.checkout_coupon input.input-text {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--vf-line-input, #b4bbc3);
	border-radius: var(--vf-radius, 8px);
	background-color: #fff;
	box-shadow: none;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	color: #3b3b3b;
}

.woocommerce-checkout form.checkout_coupon input.input-text:focus {
	border-color: var(--vf-line-selected, #41423d);
	outline: none;
}

.woocommerce-checkout form.checkout_coupon input.input-text::placeholder {
	color: #878787;
	opacity: 1;
}

.woocommerce-checkout form.checkout_coupon button.button {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--vf-radius, 8px);
	background: var(--vf-accent, #ff5031);
	color: #fff;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.woocommerce-checkout form.checkout_coupon button.button:hover {
	background: var(--vf-accent, #ff5031);
	color: #fff;
	filter: brightness(0.94);
}

@media (max-width: 768px) {
	/* Stacked below 768px. `nowrap` and the rigid children are not cosmetic:
	   WooCommerce opens this form with jQuery slideToggle, which animates HEIGHT
	   under overflow:hidden. In column direction the height is the main axis, so
	   the flex algorithm re-solves on every frame - `flex: 1 1 auto` stretches the
	   input, and once the items no longer fit the (still small) height, `wrap`
	   moves the button into a SECOND COLUMN and it slides in from the right.
	   Fixing the children's main size keeps the animation a plain reveal.
	   Row direction is unaffected: there, wrapping is driven by width, which
	   slideToggle never touches. */
	.woocommerce-checkout form.checkout_coupon {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
	}

	.woocommerce-checkout form.checkout_coupon .form-row,
	.woocommerce-checkout form.checkout_coupon .form-row-last {
		flex: 0 0 auto;
	}

	.woocommerce-checkout form.checkout_coupon button.button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ mobile - */

@media (max-width: 991px) {
	.vf-checkout .montonio-bank-items--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.vf-checkout {
		padding-bottom: 48px;
	}

	.vf-checkout .vf-section-title,
	.vf-checkout #order_review_heading {
		font-size: 22px;
	}

	/* single column stack, per the 360px frame.
	   The billing grid lives on #customer_details (the field wrappers are
	   display:contents so their rows become items of that grid), so the column
	   count has to be set there - not on the wrappers. */
	.vf-shipping-package,
	.vf-checkout #customer_details,
	.vf-checkout .woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.vf-checkout .form-row,
	.vf-checkout .form-row.form-row-first,
	.vf-checkout .form-row.form-row-last {
		grid-column: span 1;
	}

	.vf-checkout .checkout-order-review {
		padding: 20px 16px;
	}

	.vf-checkout .vf-order-table {
		padding: 8px 16px 16px;
	}

	/* Product rows - Figma mobile frame (Frame 427323006):
	     row 264x148, horizontal, 12px gap, 16px bottom padding
	     left group 88x56  = [X 24x24][8px][image 56x56], X centred on the image
	     right column 163  = title (14/400) / qty 115x40 / price (14/400), 16px gaps
	   .vf-cell-prod becomes display:contents so its X, image and title can be
	   placed independently on that grid. */
	.vf-checkout .vf-order-table thead .product-price,
	.vf-checkout .vf-order-table thead .product-quantity,
	.vf-checkout .vf-order-table thead .product-total {
		display: none;
	}

	.vf-checkout .vf-order-table thead tr {
		grid-template-columns: minmax(0, 1fr);
		border-bottom: 0; /* SUPP-8115: no divider under PRODUKTS in the mobile frame */
	}

	.vf-checkout .vf-order-table tbody tr {
		grid-template-columns: 24px 56px minmax(0, 1fr);
		column-gap: 8px;
		row-gap: 16px;
		align-items: start;
		padding: 16px 0; /* SUPP-8115: 16px above and below, so dividers clear the thumbnail and title */
	}

	.vf-checkout .vf-order-table .vf-cell-prod {
		display: contents;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-remove-btn-wrapp {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
		width: 24px;
		height: 24px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-remove-btn {
		width: 24px;
		height: 24px;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img {
		grid-column: 2;
		grid-row: 1;
		width: 56px;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img img {
		width: 56px;
		height: 56px;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-cont {
		grid-column: 3;
		grid-row: 1;
	}

	.vf-checkout .wd-checkout-prod-title,
	.vf-checkout .wd-checkout-prod-title a {
		font-size: 14px;
		line-height: 20px;
	}

	/* qty then price stacked under the title, both in the right column */
	.vf-checkout .vf-order-table .vf-cell-qty {
		grid-column: 3;
		grid-row: 2;
		justify-self: start;
		text-align: left;
	}

	.vf-checkout .vf-order-table .vf-cell-qty .quantity {
		width: 115px;
		height: 40px;
	}

	.vf-checkout .vf-cell-qty .quantity input.qty {
		height: 38px;
	}

	.vf-checkout .vf-cell-qty .quantity :is(.minus, .plus, .wd-plus, .wd-minus) {
		width: 36px;
		height: 38px;
	}

	.vf-checkout .vf-order-table .vf-cell-price {
		display: none;
	}

	.vf-checkout .vf-order-table .vf-cell-total {
		grid-column: 3;
		grid-row: 3;
		justify-self: start;
		text-align: left;
		font-size: 14px;
		line-height: 20px;
		font-weight: 400;
	}

	/* card padding is 16px on the 360px frame */
	.vf-checkout .vf-order-table {
		padding: 16px;
	}

	.vf-checkout .montonio-bank-items--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vf-checkout #place_order {
		width: 100%;
	}

	.wd-checkout-steps.vf-checkout-steps {
		gap: 12px;
		font-size: 12px;
	}

	.wd-checkout-steps.vf-checkout-steps > li {
		gap: 12px;
	}

	.wd-checkout-steps.vf-checkout-steps > li:not(:last-child)::after {
		font-size: 70%;
	}
}

/* ==========================================================================
   Typography - exact scale from the Figma checkout frame (node 4162-1946).

   The mock mixes in placeholder families from pasted components (Inter,
   Geologica, Montserrat, Neue Haas, Open Sans, Quasimoda, Calibri, Gilroy).
   The two intentional families are Dosis (headings) and Nunito Sans (body) -
   both already enqueued by the theme as
   Dosis:400,500,600 | Nunito Sans:400,600,700.
   Sizes/weights/line-heights below are taken verbatim from the design; the
   stray families are mapped onto Nunito Sans at their specified size+weight.
   ========================================================================== */

.vf-checkout,
.vf-checkout input,
.vf-checkout select,
.vf-checkout textarea,
.vf-checkout button,
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	font-family: "Nunito Sans", sans-serif;
}

/* Section headings - Dosis 600 / 28 / 34 */
.vf-checkout .vf-section-title,
.vf-checkout #order_review_heading {
	font-family: "Dosis", sans-serif;
	font-weight: 600;
	font-size: 28px;
	line-height: 34px;
	color: #4d4d4d;
	letter-spacing: 0;
}

/* Sub-heading (Maksājuma metode) - Dosis 600 / 22 / 28 */
.vf-checkout #payment > h3,
.vf-checkout .vf-payment-title {
	font-family: "Dosis", sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 28px;
	color: #4d4d4d;
}

/* Field labels - 500/16/20. Nunito Sans has no 500, so 600 is the nearest cut. */
.vf-checkout .form-row > label,
.vf-checkout .vf-shipping-extra label,
.vf-checkout .vf-order-notes label {
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #4d4d4d;
}

/* Inputs + placeholders - 400/16, placeholder #878787 */
.vf-checkout .form-row input,
.vf-checkout .form-row select,
.vf-checkout .form-row textarea,
.vf-checkout .vf-shipping-extra select {
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: #3b3b3b;
}

.vf-checkout .form-row ::placeholder,
.vf-checkout .vf-shipping-extra ::placeholder {
	color: #878787;
	font-weight: 400;
	opacity: 1;
}

/* Checkbox / body copy - 400/16/20 */
.vf-checkout #ship-to-different-address label,
.vf-checkout .form-row.create-account label,
.vf-checkout .kl_newsletter_checkbox_field label,
.vf-checkout .woocommerce-privacy-policy-text p,
.vf-checkout .woocommerce-terms-and-conditions-checkbox-text {
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: #4d4d4d;
}

/* Coupon toggle - 600/16/20 */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #242424;
}

/* Shipping card: title 600/16/20, price 700/16, ETA 400/14/20 #747474 */
.vf-checkout .vf-ship-card__label {
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #4d4d4d;
}

.vf-checkout .vf-ship-card__label .amount {
	font-weight: 700;
	color: #747474;
}

.vf-checkout .vf-ship-card__eta {
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #747474;
}

/* Order table head - 600/14/20 #41423D, uppercase per the mock */
.vf-checkout .vf-order-table thead th {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: #41423d;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Line price / line total - 600/16 */
.vf-checkout .vf-cell-price,
.vf-checkout .vf-cell-price .amount,
.vf-checkout .vf-cell-total,
.vf-checkout .vf-cell-total .amount {
	font-weight: 600;
	font-size: 16px;
	color: #4d4d4d;
}

/* Product title - 400/16/20 */
.vf-checkout .wd-checkout-prod-title,
.vf-checkout .wd-checkout-prod-title a {
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
}

/* Subtotal rows - 400/16/20 */
.vf-checkout .vf-order-table tfoot th,
.vf-checkout .vf-order-table tfoot td {
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: #4d4d4d;
}

/* Grand total - label 600/20/28 #3B3B3B, amount 700/20/28 accent */
.vf-checkout .vf-order-table tfoot .vf-row-total th {
	font-family: "Nunito Sans", sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 28px;
	color: #3b3b3b;
}

.vf-checkout .vf-order-table tfoot .vf-row-total td,
.vf-checkout .vf-order-table tfoot .vf-row-total td .amount {
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	color: var(--vf-accent);
}

.vf-checkout .vf-order-table tfoot .vf-row-total .includes_tax {
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #747474;
}

/* Payment method rows - 400/16/20 */
.vf-checkout #payment .wc_payment_method > label {
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: #4d4d4d;
}

/* CTA. SUPP-6390 follow-up asked for it uppercase and a size up from the
   Figma's 600/16; the uppercase itself is set with the width rules below, which
   are the ones that outrank the theme. */
.vf-checkout #place_order {
	font-family: "Nunito Sans", sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 768px) {
	.vf-checkout .vf-section-title,
	.vf-checkout #order_review_heading {
		font-size: 22px;
		line-height: 28px;
	}
}

/* ---- alignment / colour corrections against the Figma ---- */

/* Theme centres the order heading; the design is left aligned. */
.vf-checkout .checkout-order-review > #order_review_heading,
.vf-checkout #order_review_heading {
	text-align: left;
}

/* Piegāde / Summa amounts are ink, not accent (accent is the grand total only). */
.vf-checkout .vf-order-table tfoot .vf-row-shipping td,
.vf-checkout .vf-order-table tfoot .vf-row-shipping td .amount,
.vf-checkout .vf-order-table tfoot .vf-row-shipping td bdi,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal td,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal td .amount,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal td bdi,
.vf-checkout .vf-order-table tfoot .cart-discount td,
.vf-checkout .vf-order-table tfoot .fee td {
	color: #4d4d4d;
}

/* CTA is auto width, left aligned (theme stretches it to 100%). */
.vf-checkout .form-row.place-order {
	text-align: left;
}

.vf-checkout .form-row.place-order #place_order,
.woocommerce-checkout .vf-checkout button#place_order {
	width: auto;
	min-width: 194px;
	max-width: 100%;
	display: inline-block;
	float: none;
	text-transform: uppercase;
	font-size: 18px;
}

@media (max-width: 768px) {
	.vf-checkout .form-row.place-order #place_order,
	.woocommerce-checkout .vf-checkout button#place_order {
		width: 100%;
	}
}

/* Free-shipping progress bar, relocated to the top of the form.
   Keep the theme's own appearance (wd-style-bordered = dashed outline on a
   transparent background) so it looks identical to production - only spacing
   is set here. */
.vf-checkout > .wd-shipping-progress-bar {
	margin: 0 0 32px;
	background: none;
	border-radius: 0;
}

.vf-checkout > .wd-shipping-progress-bar .wd-free-progress-bar {
	margin: 0;
}


/* ---- checkbox rows: one shared alignment ---- */

.vf-checkout #ship-to-different-address,
.vf-checkout .form-row.create-account,
.vf-checkout .kl_newsletter_checkbox_field {
	grid-column: 1 / -1;
	margin: 0 0 12px;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
}

.vf-checkout #ship-to-different-address label,
.vf-checkout .form-row.create-account label,
.vf-checkout .kl_newsletter_checkbox_field label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: #4d4d4d;
	cursor: pointer;
}


/* the input-wrapper WooCommerce puts around some checkbox fields */
.vf-checkout .kl_newsletter_checkbox_field .woocommerce-input-wrapper,
.vf-checkout .form-row.create-account .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

/* The Klaviyo opt-in row ships with its own indent, which knocked it ~10px out
   of line with the other two checkboxes. Reset padding on all three. */
.vf-checkout #ship-to-different-address,
.vf-checkout #ship-to-different-address label,
.vf-checkout .form-row.create-account,
.vf-checkout .form-row.create-account label,
.vf-checkout .kl_newsletter_checkbox_field,
.vf-checkout .kl_newsletter_checkbox_field label,
.vf-checkout .kl_newsletter_checkbox_field .woocommerce-input-wrapper {
	padding-left: 0;
	margin-left: 0;
	text-indent: 0;
}

.vf-checkout .kl_newsletter_checkbox_field .woocommerce-input-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Woodmart adds a zero-width ::before to label.checkbox. Combined with a flex
   `gap` that pseudo consumed one gap slot and pushed the Klaviyo checkbox 10px
   right of the other two. Space the label with a margin on the input instead so
   the pseudo cannot offset anything, and all three share one left edge. */
.vf-checkout #ship-to-different-address label,
.vf-checkout .form-row.create-account label,
.vf-checkout .kl_newsletter_checkbox_field label {
	display: inline-flex;
	align-items: center;
	gap: 0;
}



.vf-checkout .kl_newsletter_checkbox_field > .woocommerce-input-wrapper {
	display: block;
	gap: 0;
}

/* Woodmart sets font-size:0 on label.checkbox to collapse whitespace between
   inline children and restores the size on an inner <span>. The Klaviyo opt-in
   renders its text as a bare text node, so it inherited 0 and disappeared.
   Restore an explicit size on the label and its spans. */
.vf-checkout p.form-row.create-account label.checkbox,
.vf-checkout p.form-row.create-account label.checkbox > span,
.vf-checkout h3#ship-to-different-address label.checkbox,
.vf-checkout h3#ship-to-different-address label.checkbox > span {
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: #4d4d4d;
}

.vf-checkout p.form-row.kl_newsletter_checkbox_field label.checkbox .optional,
.vf-checkout p.form-row.create-account label.checkbox .optional {
	font-size: 14px;
	color: var(--vf-ink-soft);
}


/* The Klaviyo opt-in label is translated by a pseudo-element in style.css
   ("Translate Klavio chechout checkbox text hack"): the label is font-size:0 to
   hide the untranslated English text node, and label:before carries the real
   copy per language. Do not restore a font-size on that label and do not clear
   its ::before - style the pseudo instead so it matches the other two checkbox
   rows, and drop its 3px indent so all three share one left edge. */
.vf-checkout #kl_newsletter_checkbox_field label.checkbox::before {
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	color: #4d4d4d;
	margin-left: 0;
}

/* Section headings inside the flattened #customer_details grid.
   WooCommerce prints "Norēķinu informācija" as a bare <h3> inside
   .woocommerce-billing-fields; once that wrapper is display:contents the heading
   becomes a grid item and was taking a single column, shifting every field one
   cell to the right. Span the full row.
   #ship-to-different-address is also an <h3> but is a checkbox row - excluded. */
.vf-checkout #customer_details > h3,
.vf-checkout .woocommerce-billing-fields > h3,
.vf-checkout .woocommerce-shipping-fields > h3:not(#ship-to-different-address),
.vf-checkout .woocommerce-account-fields > h3 {
	grid-column: 1 / -1;
	margin: 0 0 var(--vf-gap);
	font-family: "Dosis", sans-serif;
	font-weight: 600;
	font-size: 28px;
	line-height: 34px;
	color: var(--vf-ink);
	text-transform: none;
}

/* Montonio's bank-country dropdown is auto-width; the design has it span the
   full width of the payment panel, matching the other selects on the page. */
.vf-checkout .montonio-bank-payments-form .montonio-payments-country-dropdown,
.vf-checkout select.montonio-payments-country-dropdown {
	width: 100%;
	max-width: none;
	min-height: 48px;
	margin-bottom: 16px;
	padding: 10px 16px;
	border: 1px solid var(--vf-line-input);
	border-radius: var(--vf-radius);
	background-color: #fff;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	color: #3b3b3b;
}

/* ==========================================================================
   Checkboxes - Figma spec: 18x18, 4px radius, 1px #B4BBC3, no fill, 8px gap.
   Native controls (even with accent-color) cannot express that, so the box is
   drawn with appearance:none and a CSS tick for the checked state.
   ========================================================================== */

/* style.css has `.checkout.woocommerce-checkout input { appearance: auto }`,
   which restores native rendering and discards any custom border/radius. It ties
   on specificity and is enqueued later, so these selectors are tag-qualified to
   outrank it. */
/* One selector only: the longer variants were redundant and their higher
   specificity beat the :checked rule below, so the box never filled. */
form.checkout.vf-checkout input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	min-height: 0;
	min-width: 0;
	margin: 0 8px 0 0;
	padding: 0;
	border: 1px solid var(--vf-line-input, #b4bbc3);
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

form.checkout.vf-checkout input[type="checkbox"]:hover {
	border-color: var(--vf-line-selected, #41423d);
}

form.checkout.vf-checkout input[type="checkbox"]:checked {
	background: var(--vf-accent);
	border-color: var(--vf-accent);
}

/* tick */
form.checkout.vf-checkout input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

form.checkout.vf-checkout input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--vf-line-selected, #41423d);
	outline-offset: 1px;
}

/* gap is carried by the input's own margin so a theme ::before cannot offset it */
.vf-checkout #ship-to-different-address label,
.vf-checkout .form-row.create-account label,
.vf-checkout .kl_newsletter_checkbox_field label {
	gap: 0;
}

/* the Klaviyo row's text comes from label:before (see style.css translation hack) */
.vf-checkout #kl_newsletter_checkbox_field label.checkbox::before {
	margin-left: 0;
}

/* ==========================================================================
   Order card + totals - Figma spec (Frame 427322511 / 427320771 / 427319527)

   White card : 852x421, 8px radius, 24px padding all round
   Totals rows: 804x36, 12px between rows, 16px label/amount gap,
                Nunito Sans 600 16/20 #4D4D4D  (both label and amount)
   Total row  : 16px top padding, "Kopā" Nunito Sans 600 20/28 #3B3B3B
   ========================================================================== */

.vf-checkout .vf-order-table {
	padding: 24px;
	border-radius: 8px;
	overflow: hidden;
}

.vf-checkout .vf-order-table tfoot {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vf-checkout .vf-order-table tfoot tr {
	padding: 8px 0;
	margin: 0;
}

/* Piegāde / Summa - 600, not 400 */
.vf-checkout .vf-order-table tfoot .vf-row-shipping th,
.vf-checkout .vf-order-table tfoot .vf-row-shipping td,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal th,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal td,
.vf-checkout .vf-order-table tfoot .cart-discount th,
.vf-checkout .vf-order-table tfoot .cart-discount td,
.vf-checkout .vf-order-table tfoot .fee th,
.vf-checkout .vf-order-table tfoot .fee td,
.vf-checkout .vf-order-table tfoot .tax-total th,
.vf-checkout .vf-order-table tfoot .tax-total td {
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
	color: #4d4d4d;
}

.vf-checkout .vf-order-table tfoot .vf-row-shipping td .amount,
.vf-checkout .vf-order-table tfoot .vf-row-shipping td bdi,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal td .amount,
.vf-checkout .vf-order-table tfoot .vf-row-subtotal td bdi {
	font-weight: 600;
	color: #4d4d4d;
}

/* divider + spacing above the grand total */
.vf-checkout .vf-order-table tfoot .vf-row-subtotal {
	padding-bottom: 16px;
	border-bottom: 1px solid #ececec;
}

.vf-checkout .vf-order-table tfoot .vf-row-total {
	padding-top: 16px;
	align-items: start;
}

/* Total block - Figma Frame 427322507: amount 20/28 700 accent, VAT line
   16/20 400 #4D4D4D (was 14px/#747474), 2px between them.
   The row carries no bottom padding so the card's own 24px is the only gap
   below it, matching the design's 24px bottom edge. */
.vf-checkout .vf-order-table tfoot .vf-row-total {
	padding: 16px 0 0;
}

.vf-checkout .vf-order-table tfoot .vf-row-total td {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.vf-checkout .vf-order-table tfoot .vf-row-total .includes_tax {
	display: block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	color: #4d4d4d;
}

.vf-checkout .vf-order-table tfoot .vf-row-total .includes_tax .amount {
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	color: var(--vf-accent);
}

/* Woodmart wraps the review table in .wd-table-wrapper (white bg, 5px 25px
   padding, 20px bottom margin - added by woodmart_open_table_wrapper_div on
   woocommerce_checkout_order_review). Nested inside .vf-order-table's own 24px
   that produced 49px of inset instead of the design's 24px, and two stacked
   white boxes. The wrapper is neutralised so the table is the only card.

   Design: grey section 900 wide with 24px padding -> white card 852 with 24px
   padding (Frame 427320346 / 427322511). */
/* Theme selectors to beat:
     :is(.woocommerce-checkout > .checkout-order-review, ...)      { padding:30px }
     .checkout-order-review > .woocommerce-checkout-review-order
       .wd-table-wrapper                                           { padding:5px 25px; background:white }
   (woodmart/css/parts/woo-page-checkout-predefined.min.css) */
/* The theme rule is :is(.woocommerce-checkout > .checkout-order-review,
   .woocommerce-order-pay #order_review) - :is() takes the specificity of its
   most specific argument, and that second one carries an ID, so it computes as
   (1,1,0). form-checkout.php gives this wrapper an id purely so the override can
   match honestly at (1,1,1) instead of resorting to !important. */
form.vf-checkout > #vf_order_review {
	padding: 24px;
}

form.vf-checkout .checkout-order-review > .woocommerce-checkout-review-order .wd-table-wrapper,
form.vf-checkout .checkout-order-review > .woocommerce-checkout-review-order .wd-table-wrapper.wd-manage-on {
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

/* ==========================================================================
   Field controls - Figma: 16px padding, 16/20 Nunito Sans 400, 8px radius,
   1px #B4BBC3, 48px tall.

   Two things to beat:
   1) Elementor's global kit prints
        .elementor-kit-1838 input:not([type="button"]):not([type="submit"])...
        { padding:14px 20px; font-size:18px }
      Each :not([type=..]) adds an attribute to the specificity, so the selectors
      below are class/tag qualified to outrank it rather than use !important.
   2) Select2 renders the country field, adding its own padding INSIDE the box
      that already carries 16px - the two stacked to ~31px on the left.
   ========================================================================== */

form.checkout.woocommerce-checkout.vf-checkout .form-row input[type="text"],
form.checkout.woocommerce-checkout.vf-checkout .form-row input[type="email"],
form.checkout.woocommerce-checkout.vf-checkout .form-row input[type="tel"],
form.checkout.woocommerce-checkout.vf-checkout .form-row input[type="password"],
form.checkout.woocommerce-checkout.vf-checkout .form-row input[type="number"],
form.checkout.woocommerce-checkout.vf-checkout .form-row select,
form.checkout.woocommerce-checkout.vf-checkout .form-row textarea,
form.checkout.woocommerce-checkout.vf-checkout .vf-shipping-extra select {
	padding: 14px 16px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	min-height: 48px;
	border-radius: 8px;
}

/* SUPP-6390: the order-notes box is one line high, the same 48px control as
   every other field (14 + 20 + 14). Still resizable, so a long note is not
   cramped.

   The id in the selector is load-bearing: style.css carries
   `textarea#order_comments { min-height: 110px }`, and a class-only selector -
   however long - cannot outrank an id. A min-height also beats a smaller
   height, so both properties have to be reset here. */
form.checkout.woocommerce-checkout.vf-checkout .form-row textarea,
form.vf-checkout textarea#order_comments {
	padding: 14px 16px;
	min-height: 48px;
	height: 48px;
}

/* Select2: the visible box keeps the 16px; its inner text span must not add more.
   Right side keeps room for the arrow. */
form.checkout.vf-checkout .select2-container .select2-selection--single {
	height: 48px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	border: 1px solid var(--vf-line-input);
	border-radius: 8px;
	background-color: #fff;
}

form.checkout.vf-checkout .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 24px 0 0;
	line-height: 20px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	color: #3b3b3b;
}

form.checkout.vf-checkout .select2-container .select2-selection--single .select2-selection__arrow {
	right: 12px;
	height: 100%;
	top: 0;
}

/* Pickup-point delivery needs no street address (design frame 1); courier does
   (frame 2). Toggled by vf-checkout.js; Vegan_Fox_Checkout::field_layout()
   drops the server-side `required` to match. */
form.vf-checkout.vf-no-address .vf-address-field,
form.vf-checkout.vf-no-address #ship-to-different-address,
form.vf-checkout.vf-no-address div.shipping_address {
	display: none !important;
}

/* SUPP-6390: the VAT field is gone from checkout. B2Bking still toggles
   .b2bking_vat_hidden on country change for markup it prints elsewhere, so the
   rule stays. */
form.vf-checkout .b2bking_vat_hidden {
	display: none !important;
}


@media (max-width: 768px) {
	/* every field is full width in the 360px frame */
	.vf-checkout .form-row,
	.vf-checkout .form-row.form-row-first,
	.vf-checkout .form-row.form-row-last,
	.vf-checkout #ship-to-different-address,
	.vf-checkout .form-row.create-account,
	.vf-checkout .kl_newsletter_checkbox_field,
	.vf-checkout div.shipping_address {
		grid-column: 1 / -1;
	}
}


@media (max-width: 768px) {
	/* Theme rules position the remove link absolutely and size the thumb; both
	   are pinned to their grid tracks here so the row matches the 24/56 spec. */
	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-remove-btn-wrapp {
		position: static;
		margin: 0;
		inset: auto;
		justify-self: start;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-remove-btn {
		position: static;
		margin: 0;
		inset: auto;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img,
	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img a {
		display: block;
		width: 56px;
		max-width: 56px;
		margin: 0;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img img {
		margin: 0;
	}

	/* qty + line total align to the left edge of the text column */
	.vf-checkout .vf-order-table .vf-cell-qty,
	.vf-checkout .vf-order-table .vf-cell-total {
		justify-self: start;
		text-align: left;
		padding: 0;
		margin: 0;
	}
}

@media (max-width: 768px) {
	/* The thumbnail was overflowing its 56px anchor (used width 65px despite
	   max-width). Clip at the container and let the image fill it, which is
	   robust regardless of what sizes the <img> itself. */
	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img,
	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img a {
		width: 56px;
		height: 56px;
		max-width: 56px;
		overflow: hidden;
		border-radius: 6px;
		flex: 0 0 56px;
	}

	.vf-checkout .vf-order-table .vf-cell-prod .wd-checkout-prod-img img {
		/* min-width beats width and max-width in CSS resolution, and something
		   sets min-width:65px on the cart thumbnail - so it has to be cleared
		   here or the image overflows its 56px track. */
		min-width: 0;
		width: 100%;
		height: 100%;
		max-width: 100%;
		object-fit: cover;
		display: block;
	}
}

/* Terms row - Figma Frame 705: checkbox + text on one line, 8px apart, text
   wrapping beside the box rather than under it.
   The text span had been swept into the checkbox-LABEL rule above and made
   inline-flex, which gave it full width and pushed it onto its own line. */
.vf-checkout .woocommerce-terms-and-conditions-wrapper .form-row > label,
.vf-checkout .form-row.validate-required > label.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	line-height: 20px;
	font-weight: 400;
	color: var(--vf-ink);
	cursor: pointer;
}

.vf-checkout .woocommerce-terms-and-conditions-wrapper .form-row > label > input[type="checkbox"],
.vf-checkout .form-row.validate-required > label.checkbox > input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 1px 0 0;
}

.vf-checkout .woocommerce-terms-and-conditions-checkbox-text {
	display: inline;
	flex: 1 1 auto;
	min-width: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	line-height: 20px;
	font-weight: 400;
	color: var(--vf-ink);
}

/* WooCommerce prints the required marker as a SIBLING of the text span, so in a
   flex label it becomes its own flex item and drifts to the far right. Render it
   on the text instead and keep the original visually hidden but still exposed to
   screen readers (it carries title="required"). */
.vf-checkout .woocommerce-terms-and-conditions-wrapper .form-row > label > .required,
.vf-checkout .form-row.validate-required > label.checkbox > .required {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	clip-path: inset(50%);
}

.vf-checkout .woocommerce-terms-and-conditions-checkbox-text::after {
	content: " *";
	color: #e02b27;
}

/* "(nav obligāts)" - Figma character override on the label text node:
   Nunito Sans 400 16/20 #717171, i.e. the same size as the label itself, only
   lighter. The theme renders it smaller and raised, so reset the baseline too. */
.vf-checkout .form-row > label .optional,
.vf-checkout .vf-order-notes label .optional,
.vf-checkout .vf-shipping-extra label .optional,
.vf-checkout label .optional {
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	color: #717171;
	font-style: normal;
	text-transform: none;
	vertical-align: baseline;
	position: static;
	top: auto;
}

@media (max-width: 768px) {
	/* the design's mobile banner shows the current step without the underline */
	.wd-checkout-steps.vf-checkout-steps .step-active > a span,
	.wd-checkout-steps.vf-checkout-steps .step-active > span {
		text-decoration: none;
	}
}


/* Quantity input must never show native spinner arrows - the stepper's own
   -/+ buttons are the control. Firefox honours appearance:textfield; WebKit
   needs the pseudo-elements (already set above, repeated here so this block is
   self-contained if the earlier rule is ever edited). */
.vf-checkout .vf-cell-qty input.qty,
.vf-checkout .quantity input.qty {
	appearance: textfield;
	-moz-appearance: textfield;
}

.vf-checkout .vf-cell-qty input.qty::-webkit-outer-spin-button,
.vf-checkout .vf-cell-qty input.qty::-webkit-inner-spin-button,
.vf-checkout .quantity input.qty::-webkit-outer-spin-button,
.vf-checkout .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

/* ==========================================================================
   SUPP-8115 (2) - checkout order table, mobile spacing and quantity stepper
   ========================================================================== */

/* The Oct 2026 "QA fixes" in Customizer > Additional CSS style every
   div.quantity <button> site-wide with !important: 30px wide, their own grey
   border, and Woodmart’s 42px button min-height. In the checkout stepper the
   wrapper draws the border; the buttons fill its height and draw none. */
.vf-checkout .vf-cell-qty .quantity button.minus,
.vf-checkout .vf-cell-qty .quantity button.plus {
	flex: 0 0 auto;
	width: 38px !important;
	min-width: 0 !important;
	height: 38px;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--vf-ink-soft) !important;
}

.vf-checkout .vf-cell-qty .quantity button.minus:hover,
.vf-checkout .vf-cell-qty .quantity button.plus:hover {
	background: none !important;
	color: var(--vf-ink-strong) !important;
}

@media (max-width: 768px) {
	/* 115x40 stepper: 36px buttons, the number takes the rest */
	.vf-checkout .vf-cell-qty .quantity button.minus,
	.vf-checkout .vf-cell-qty .quantity button.plus {
		width: 36px !important;
	}

	.vf-checkout .vf-order-table .vf-cell-qty .quantity input.qty {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	/* Card padding is 16px on the 360px frame; the desktop 24px rule above
	   comes later in this file and was winning. */
	.vf-checkout .vf-order-table {
		padding: 16px;
	}

	/* 16px card top to PRODUKTS, about 20px from PRODUKTS to the first product */
	.vf-checkout .vf-order-table thead tr {
		padding: 0 0 12px;
	}

	.vf-checkout .vf-order-table tbody tr:first-child {
		padding-top: 8px;
	}
}
