/*
 * LMB Theme — WooCommerce override surface.
 * The ONLY stylesheet in the theme. Preset custom properties only —
 * never a raw hex value, so every style variation restyles this for free.
 */

/* ---------- Global guards ---------- */

html,
body {
	overflow-x: clip;
}

/* ---------- Header ---------- */

/* Promo bar scrolls away; the main bar sticks. */
.lmb-header-main {
	position: sticky;
	top: 0;
	z-index: 40;
}

.lmb-main-nav {
	letter-spacing: 0.08em;
}

.lmb-main-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--subtle);
	background: var(--wp--preset--color--base);
	min-width: 220px;
	padding: 0.375rem 0;
}

.lmb-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1rem;
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 500;
}

.lmb-header-icons {
	gap: 1rem;
	align-items: center;
}

/* Expandable header search: icon at rest, field slides open on click (core view JS). */
.lmb-header-search .wp-block-search__button {
	background: transparent;
	border: none;
	color: var(--wp--preset--color--contrast);
	padding: 0.25rem;
	margin-left: 0;
	cursor: pointer;
}

.lmb-header-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--subtle);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 2px;
	padding: 0.375rem 0.625rem;
	font-size: 0.875rem;
}

.lmb-header-icons .wc-block-customer-account {
	display: flex;
	align-items: center;
}

.lmb-header-icons .wc-block-customer-account a {
	color: var(--wp--preset--color--contrast);
}

.lmb-header-icons .wc-block-mini-cart__button {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Mini-cart drawer (the primary cart surface) ---------- */

.wc-block-mini-cart__drawer {
	background: var(--wp--preset--color--base);
}

.wc-block-mini-cart__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.wc-block-mini-cart__drawer .wc-block-cart-items__row {
	border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.wc-block-mini-cart__drawer .wc-block-components-product-name {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.wc-block-mini-cart__drawer .wc-block-components-product-name:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
	background: var(--wp--preset--color--base);
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector input,
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: none;
}

.wc-block-mini-cart__footer {
	border-top: 1px solid var(--wp--preset--color--subtle);
}

.wc-block-mini-cart__footer .wc-block-components-totals-item__label,
.wc-block-mini-cart__footer .wc-block-components-totals-item__value {
	font-weight: 600;
}

/* Footer actions: outline View-cart, solid dark Checkout (accent hover) */
.wc-block-mini-cart__footer-actions .wc-block-components-button {
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	font-size: 0.8125rem;
	min-height: 46px;
}

.wc-block-mini-cart__footer-actions .wc-block-components-button.contained,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--primary);
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.wc-block-mini-cart__footer-actions .wc-block-components-button.outlined,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* ---------- Cart page (fallback surface) ---------- */

.wp-block-woocommerce-cart .wc-block-cart__totals-title,
.wp-block-woocommerce-cart .wc-block-cart-items__header th,
.wp-block-woocommerce-cart .wc-block-cart-items__header-image,
.wp-block-woocommerce-cart .wc-block-cart-items__header-product,
.wp-block-woocommerce-cart .wc-block-cart-items__header-total {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	opacity: 0.75;
}

.wp-block-woocommerce-cart .wc-block-cart-item__wrap .wc-block-components-product-name {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.wp-block-woocommerce-cart .wc-block-cart-item__wrap .wc-block-components-product-name:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row {
	border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector {
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector input,
.wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
	background: transparent;
	border: none;
	color: var(--wp--preset--color--contrast);
}

.wp-block-woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-totals-block {
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
	background: color-mix(in srgb, var(--wp--preset--color--subtle) 30%, var(--wp--preset--color--base));
	padding: 1rem 1.25rem;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover {
	background: var(--wp--preset--color--accent);
}

/* ---------- Checkout ---------- */

.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="text"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="tel"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="number"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="url"],
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
.wp-block-woocommerce-checkout select,
.wp-block-woocommerce-checkout .wc-block-components-textarea {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 30%, var(--wp--preset--color--subtle));
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 2px;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout select:focus,
.wp-block-woocommerce-checkout .wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
	outline: none;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.25rem;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
	border-color: var(--wp--preset--color--subtle);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	min-height: 52px;
	width: 100%;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--accent);
}

.wp-block-woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
	background: color-mix(in srgb, var(--wp--preset--color--subtle) 30%, var(--wp--preset--color--base));
	padding: 1rem 1.25rem;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
	border-radius: 2px;
}

/* ---------- Footer ---------- */

.lmb-footer-links a {
	text-decoration: none;
	line-height: 1.9;
}

.lmb-footer-links a:hover {
	text-decoration: underline;
}

.lmb-site-footer .wp-block-social-links {
	margin-top: 0.75rem;
}

/* ---------- Shop sidebar (product-filters) ---------- */

.lmb-filter-heading {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	margin: 1.75rem 0 0.75rem;
}

.lmb-shop-sidebar .wc-block-product-filter-checkbox-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmb-shop-sidebar .wc-block-product-filter-checkbox-list__item {
	margin: 0 0 0.5rem;
}

.lmb-shop-sidebar .wc-block-product-filter-checkbox-list__label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	cursor: pointer;
}

.lmb-shop-sidebar .wc-block-product-filter-checkbox-list__input-wrapper input {
	accent-color: var(--wp--preset--color--primary);
	width: 1rem;
	height: 1rem;
}

.lmb-shop-sidebar .wc-block-product-filter-checkbox-list__count {
	color: var(--wp--preset--color--contrast);
	opacity: 0.55;
}

.lmb-shop-sidebar .wc-block-product-filter-price-slider__range {
	accent-color: var(--wp--preset--color--primary);
}

.lmb-shop-sidebar .wc-block-product-filter-price-slider__content input[type="text"],
.lmb-shop-sidebar .wc-block-product-filter-price-slider__content input[type="number"] {
	max-width: 5.5em;
	border: 1px solid var(--wp--preset--color--subtle);
	background: var(--wp--preset--color--base);
	border-radius: 2px;
	padding: 0.25rem 0.375rem;
	font-size: 0.8125rem;
}

/* Shop toolbar */
.lmb-shop-toolbar {
	border-bottom: 1px solid var(--wp--preset--color--subtle);
	padding-bottom: 0.75rem;
	align-items: center;
}

.lmb-shop-toolbar .wc-block-product-results-count {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.75;
}

.lmb-shop-toolbar .wc-block-catalog-sorting select {
	border: 1px solid var(--wp--preset--color--subtle);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 2px;
	padding: 0.375rem 0.625rem;
	font-family: inherit;
}

/* ---------- Utilities ---------- */

.lmb-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 600;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent);
}

/* ---------- Home bands ---------- */

.lmb-hero .wp-block-cover__inner-container {
	width: 100%;
}

.lmb-view-all a {
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.lmb-view-all a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Collection tiles: photo + chip label, whole tile clickable */
.lmb-tile {
	position: relative;
	overflow: hidden;
}

.lmb-tile img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.lmb-tile:hover img {
	transform: scale(1.04);
}

.lmb-tile-chip {
	position: absolute;
	left: 0.875rem;
	bottom: 0.875rem;
	margin: 0;
}

.lmb-tile-chip a {
	display: inline-block;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.5rem 0.875rem;
	border-radius: 2px;
}

.lmb-tile-chip a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Value props */
.lmb-vp {
	text-align: center;
}

.lmb-vp .lmb-vp-icon {
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.25rem;
}

.lmb-vp p {
	margin-top: 0.25rem;
	margin-bottom: 0;
}

/* ---------- Product grid (product-collection) ---------- */

.wc-block-product-template .wc-block-product {
	position: relative;
}

.wc-block-product-template .wp-block-post-title a {
	text-decoration: none;
}

.wc-block-product-template .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Card image: rounded-off corners kept square, zoom + crossfade on hover */
.wc-block-product .wc-block-components-product-image {
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.wc-block-product .wc-block-components-product-image a {
	position: relative;
	display: block;
}

.wc-block-product .wc-block-components-product-image img {
	transition: transform 0.45s ease, opacity 0.35s ease;
	display: block;
	width: 100%;
}

.wc-block-product .wc-block-components-product-image .lmb-hover-image {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

@media (hover: hover) {
	.wc-block-product .wc-block-components-product-image a:hover img:first-child {
		transform: scale(1.04);
	}

	.wc-block-product .wc-block-components-product-image a:hover .lmb-hover-image {
		opacity: 1;
		transform: none;
	}
}

/* Stock indicator in grids: silent when in stock, sold-out chip over the image */
.lmb-grid-stock {
	display: none;
	margin: 0;
}

.lmb-grid-stock.wc-block-components-product-stock-indicator--out-of-stock {
	display: inline-block;
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25rem 0.625rem;
	border-radius: 2px;
}

/* Sale badge */
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

/* Prices: sale treatment */
.wc-block-components-product-price del {
	color: var(--wp--preset--color--contrast);
	opacity: 0.55;
}

.wc-block-components-product-price ins {
	text-decoration: none;
}

/* ---------- Single product (blockified PDP) ---------- */

.lmb-pdp-price {
	font-weight: 600;
	font-size: 1.375rem;
	margin-top: 0.25rem;
}

.lmb-pdp-summary {
	opacity: 0.85;
}

/* Variation pills (product-filter-chips inside the variation selector) */
.lmb-pdp-buy .wc-block-product-filter-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmb-pdp-buy .wc-block-product-filter-chips__item {
	border: 1px solid var(--wp--preset--color--subtle);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 2px;
	padding: 0.5rem 0.875rem;
	min-width: 2.75rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lmb-pdp-buy .wc-block-product-filter-chips__item:hover {
	border-color: var(--wp--preset--color--contrast);
}

.lmb-pdp-buy .wc-block-product-filter-chips__item[aria-checked="true"],
.lmb-pdp-buy .wc-block-product-filter-chips__item.is-selected {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.lmb-pdp-buy .wc-block-product-filter-chips__item[aria-disabled="true"] {
	opacity: 0.4;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* Attribute name labels above pills */
.lmb-pdp-buy .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8125rem;
	font-weight: 600;
}

/* Quantity stepper + ATC button row */
.lmb-pdp-buy .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
	overflow: hidden;
}

.lmb-pdp-buy .wc-block-components-quantity-selector__button {
	background: var(--wp--preset--color--base);
	border: none;
	color: var(--wp--preset--color--contrast);
	width: 2.75rem;
	min-height: 48px;
	font-size: 1.125rem;
	cursor: pointer;
}

.lmb-pdp-buy .wc-block-components-quantity-selector__input {
	border: none;
	width: 3em;
	text-align: center;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
}

.lmb-pdp-buy .wp-block-woocommerce-product-button {
	flex: 1 1 auto;
}

.lmb-pdp-buy .wc-block-components-product-button__button,
.lmb-pdp-buy .single_add_to_cart_button {
	width: 100%;
	min-height: 48px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	font-size: 0.875rem;
	border-radius: 2px;
	border: 1px solid var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lmb-pdp-buy .wc-block-components-product-button__button:hover:not(:disabled) {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

/* Disabled = quiet outline, not a muddy solid — reads as "pick your options" */
.lmb-pdp-buy .wc-block-components-product-button__button:disabled,
.lmb-pdp-buy .single_add_to_cart_button.disabled {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--subtle);
	opacity: 0.55;
	cursor: not-allowed;
}

/* Live stock line inside the ATC block */
.lmb-pdp-buy .wp-block-woocommerce-product-stock-indicator {
	font-size: 0.875rem;
	font-weight: 600;
}

.lmb-pdp-buy .wc-block-components-product-stock-indicator:empty {
	display: none;
}

.lmb-pdp-buy .wc-block-components-product-stock-indicator--in-stock:not(:empty)::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	margin-right: 0.375rem;
	vertical-align: middle;
}

/* Size-guide + reassurance lines */
.lmb-pdp-sizeguide {
	margin-top: 0.75rem;
}

/* Woo's collection CSS forces h2 inside product-collection to small — restore
   the section scale on the PDP recommendation bands */
.lmb-pdp-crosssell .wp-block-woocommerce-product-collection h2.wp-block-heading,
.lmb-pdp-related .wp-block-woocommerce-product-collection h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
}

/* Per-product details accordion (post-content details blocks) */
.lmb-pdp-details {
	margin-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--subtle);
}

.lmb-pdp-details .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--subtle);
	padding: 1rem 0;
	margin: 0;
}

.lmb-pdp-details .wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lmb-pdp-details .wp-block-details summary::after {
	content: "+";
	font-size: 1.125rem;
	line-height: 1;
	opacity: 0.6;
}

.lmb-pdp-details .wp-block-details[open] summary::after {
	content: "−";
}

/* Gallery: thumbnails rail + clipped large-image strip.
   The block's own wrapper div (wc-block-product-gallery) MUST exist in the
   template markup — the view script resolves the gallery root via
   closest('.wp-block-woocommerce-product-gallery'); without it, arrows and
   thumbnail clicks update state but never scroll the strip.
   min-width:0 is load-bearing — without it the large-image scroll strip
   expands to its content width and overflows the buy column. */
.lmb-pdp-gallery .wp-block-woocommerce-product-gallery {
	max-width: 100%;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.5rem;
}

@media (min-width: 601px) {
	.lmb-pdp-gallery .wc-block-product-gallery-thumbnails {
		flex: 0 0 auto;
		max-width: 96px;
	}

	.lmb-pdp-gallery .wc-block-product-gallery-thumbnails__scrollable {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}
}

@media (max-width: 600px) {
	.lmb-pdp-gallery .wc-block-product-gallery-thumbnails__scrollable {
		display: flex;
		flex-direction: row;
		gap: 0.5rem;
	}
}

.lmb-pdp-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	border: 1px solid transparent;
	border-radius: 2px;
	cursor: pointer;
}

.lmb-pdp-gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	border-color: var(--wp--preset--color--contrast);
}

.lmb-pdp-gallery .wc-block-product-gallery-large-image {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.lmb-pdp-gallery .wc-block-product-gallery-large-image img {
	border-radius: 2px;
	max-width: 100%;
	width: 100%;
	height: auto;
}

/* ---------- Single product (legacy pieces kept for clones) ---------- */

.lmb-product-stock {
	font-size: 0.875rem;
}

.lmb-product-stock.wc-block-components-product-stock-indicator--out-of-stock {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lmb-product-stock.wc-block-components-product-stock-indicator--low-stock {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

/* Variation form: styled core selects, 44px touch targets */
.wc-block-add-to-cart-form table.variations {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 0.5rem;
}

.wc-block-add-to-cart-form table.variations th.label {
	text-align: left;
	padding: 0 0 0.25rem;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.wc-block-add-to-cart-form table.variations td.value {
	padding: 0 0 1rem;
}

.wc-block-add-to-cart-form table.variations select {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 2.25rem 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 1rem;
}

.wc-block-add-to-cart-form table.variations select:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

.wc-block-add-to-cart-form .reset_variations {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent);
}

/* Quantity + add-to-cart row */
.wc-block-add-to-cart-form .woocommerce-variation-add-to-cart,
.wc-block-add-to-cart-form form.cart:not(:has(table.variations)) {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	flex-wrap: wrap;
}

.wc-block-add-to-cart-form .quantity .qty {
	min-height: 44px;
	width: 4.5em;
	border: 1px solid var(--wp--preset--color--subtle);
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	text-align: center;
	font-size: 1rem;
}

.wc-block-add-to-cart-form .single_add_to_cart_button {
	flex: 1 1 auto;
}

/* Sold out: the form area reads clearly */
.wc-block-add-to-cart-form .stock.out-of-stock {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- Reassurance line under the buy box ---------- */

.lmb-slot-reassurance {
	color: var(--wp--preset--color--contrast);
	opacity: 0.75;
	border-top: 1px solid var(--wp--preset--color--subtle);
	padding-top: 0.875rem;
}
