/* ==========================================================================
   KO Research Labs — WooCommerce markup mapped to the design system.
   Core WooCommerce stylesheets are disabled; this file styles the markup
   WooCommerce itself prints (notices, form rows, totals tables, payment
   methods, quantity inputs, AJAX overlays). Theme templates use the
   components in styles.css and shop.css.
   ========================================================================== */

/* ---------- Product loops ---------- */
ul.products { list-style: none; margin: 0; padding: 0; }
ul.products::before, ul.products::after { display: none; }
.product__art img { width: 100%; height: 100%; object-fit: cover; }
.product__art:has(img) { padding: 0; }
.price del { color: var(--muted); font-size: .85em; margin-right: 6px; }
.price ins { text-decoration: none; }
.add.loading { opacity: .6; pointer-events: none; }
.add.added .add__ok { transform: none; }
a.added_to_cart { display: none; } /* The drawer and toast confirm the add. */
.product[hidden] { display: none; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-notices-wrapper [tabindex="-1"]:focus, .woocommerce-NoticeGroup:focus, .woocommerce-message:focus, .woocommerce-error:focus, .woocommerce-info:focus { outline: none; }
.woocommerce-notices-wrapper { margin-bottom: 24px; display: grid; gap: 10px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner {
	position: relative; display: block; margin: 0 0 16px; padding: 14px 16px 14px 46px; list-style: none;
	border-radius: 10px; border: 1px solid var(--rule); background: var(--surface-subdued); color: var(--ink-2); font-size: 15px; line-height: 1.55;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%;
	background: var(--primary); box-shadow: inset 0 0 0 4px #fff;
}
.woocommerce-message { background: #ECFDF5; border-color: #A7F3D0; }
.woocommerce-message::before { background: var(--success); }
.woocommerce-error { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }
.woocommerce-error::before { background: var(--error); }
.woocommerce-error li { margin: 0; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 12px; text-decoration: none; }

/* ---------- Buttons printed by WooCommerce ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--ink); color: var(--surface); border: 0; font: 600 14px/1 var(--f-body); cursor: pointer; transition: background-color .25s;
}
.woocommerce .button:hover { background: var(--primary-strong); }
.woocommerce .button.alt { background: var(--primary-strong); color: #fff; }
.woocommerce .button.alt:hover { background: var(--primary-deep); }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .45; cursor: not-allowed; }
.woocommerce .btn.button { border-radius: 999px; }

/* ---------- Form rows (woocommerce_form_field) ---------- */
.woocommerce form .form-row { display: grid; gap: 6px; margin: 0; padding: 0; align-content: start; }
.woocommerce form .form-row label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.woocommerce form .form-row .required { color: #B91C1C; text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--muted); }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea,
.woocommerce-Input, .woocommerce input.input-text {
	width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px; background: var(--surface-raised);
	border: 1px solid var(--rule-strong); color: var(--ink); font: 400 16px/1.4 var(--f-body); outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.woocommerce form .form-row textarea { min-height: 112px; resize: vertical; }
.woocommerce form .form-row select {
	-webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526075' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus, .woocommerce form .form-row textarea:focus {
	border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, .15);
}
.woocommerce form .form-row.woocommerce-invalid .input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--error); }
.woocommerce form .form-row.woocommerce-validated .input-text { border-color: var(--rule-strong); }
.woocommerce form .form-row .description { margin: 0; font-size: 13px; color: var(--muted); }
.woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row .woocommerce-input-wrapper .description { margin-top: 6px; }
.woocommerce form .tick-row label, .woocommerce form .form-row label.checkbox {
	position: relative; display: block; padding-left: 32px; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.woocommerce form .tick-row label > input, .woocommerce form .form-row label.checkbox > input { position: absolute; left: 0; top: 1px; }
.woocommerce form .form-row input[type="checkbox"], .woocommerce form .form-row input[type="radio"] {
	flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary-strong);
}
.woocommerce form .form-row .woocommerce-input-wrapper:has(input[type="checkbox"]) { display: contents; }

/* Two-column field grids */
.co-grid, .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper, .co-inst__fields, .create-account {
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
}
.form-row-wide, .notes, .co-grid > .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-shipping-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-address-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }

/* Select2 / selectWoo (country and state pickers) */
.select2-container .select2-selection--single { height: 48px; border-radius: 8px; border: 1px solid var(--rule-strong); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; color: var(--ink); }
.select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }
.select2-dropdown { border-color: var(--rule-strong); border-radius: 8px; overflow: hidden; }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted[data-selected] { background: var(--primary-strong) !important; }

/* ---------- Quantity input with steppers (shop.js adds the buttons) ---------- */
.quantity { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface-raised); }
.quantity .qty {
	width: 48px; height: 100%; border: 0; background: none; text-align: center; font: 500 16px var(--f-mono); color: var(--ink);
	-moz-appearance: textfield; appearance: textfield; padding: 0;
}
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity .qty:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; }
.qty-step { width: 44px; height: 100%; border-radius: 999px; font-size: 18px; color: var(--ink-2); transition: background-color .2s; }
.qty-step:hover { background: var(--surface-subdued); color: var(--ink); }
.quantity:has(input[type="hidden"]) { display: none; }
.cart-table .quantity { height: 42px; }

/* ---------- Single product add-to-cart form ---------- */
.pdp__buy form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.pdp__buy .quantity { height: 54px; }
.pdp__buy .single_add_to_cart_button {
	flex: 1 1 220px; height: 54px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--primary-strong); color: #fff; font: 600 15px/1 var(--f-body); transition: background-color .25s;
}
.pdp__buy .single_add_to_cart_button:hover { background: var(--primary-deep); }
.pdp__buy .single_add_to_cart_button.disabled { opacity: .45; }
.pdp__buy .stock { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.pdp__buy .stock.in-stock { color: var(--success-ink); }
.pdp__buy .stock.out-of-stock { color: #B91C1C; }
.pdp__buy table.variations { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
.pdp__buy table.variations th, .pdp__buy table.variations td { display: block; padding: 0 0 6px; text-align: left; }
.pdp__buy table.variations select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--rule-strong); font: inherit; }
.pdp__buy .reset_variations { font-size: 13px; color: var(--primary-ink); }
.pdp__buy .woocommerce-variation-price { margin-bottom: 12px; font: 500 20px var(--f-mono); }
.pdp__buy .group_table { width: 100%; margin-bottom: 16px; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdp__thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
.pdp__thumbs img { width: 100%; height: auto; }
.pdp__stage img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.prose--product > * { max-width: 64ch; }

/* Reviews tab */
#reviews .commentlist { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
#reviews .comment_container { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
#reviews .comment_container img { border-radius: 50%; }
#reviews .star-rating { color: var(--primary); }

/* ---------- Cart page ---------- */
.cart__main { min-width: 0; }
.cart-item__art { overflow: hidden; }
.cart-item__art img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__art svg { width: 56%; }
.cart__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.cart__actions .coupon { flex: 1 1 280px; max-width: 380px; }
.cart__actions .coupon .input { min-height: 42px; font: 500 14px var(--f-mono); letter-spacing: .04em; }
.js .cart__update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cart__below { margin: 20px 0 0; }

/* Cart totals (core cart-totals.php) */
.cart_totals { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; }
.cart_totals > h2 { margin: 0; font: 400 clamp(26px, 2.4vw, 32px)/1.1 var(--f-display); }
.cart_totals table.shop_table, .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td {
	padding: 10px 0; text-align: left; vertical-align: top; font-size: 15px; border-bottom: 1px solid var(--surface-subdued);
}
.cart_totals table.shop_table th, .woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: var(--ink-2); }
.cart_totals table.shop_table td, .woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table tfoot td { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.cart_totals .order-total th, .cart_totals .order-total td,
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; padding-top: 14px; color: var(--ink); font-weight: 600; }
.cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total td { font-size: 20px; }
.cart_totals .woocommerce-shipping-totals td, .woocommerce-checkout-review-order-table .woocommerce-shipping-totals td { font-family: var(--f-body); font-size: 14px; }
td[data-title] #shipping_method, .woocommerce-shipping-totals td { text-align: left; }
#shipping_method { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
#shipping_method li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; column-gap: 10px; }
#shipping_method input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary-strong); }
#shipping_method label { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); cursor: pointer; }
#shipping_method li:only-child { grid-template-columns: minmax(0, 1fr); }
.ship__cost { flex: none; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.woocommerce-shipping-destination, .shipping-calculator-button { margin: 0; font-size: 13px; color: var(--muted); }
.shipping-calculator-button { color: var(--primary-ink); text-decoration: underline; }
.wc-proceed-to-checkout { display: grid; gap: 14px; }
.cart-collaterals .cross-sells { display: none; }

/* Cross-sells under the cart */
.cross-sells { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--rule); }
.cross-sells > h2 { margin: 0 0 28px; font: 400 clamp(32px, 3.4vw, 44px)/1 var(--f-display); }

/* ---------- Checkout ---------- */
.checkout__main { min-width: 0; }
.co-section h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.woocommerce-shipping-fields, .woocommerce-additional-fields { padding: 24px 0 8px; border-top: 1px solid var(--rule); }
.woocommerce-shipping-fields:empty { display: none; }
#ship-to-different-address label { display: flex; gap: 12px; align-items: center; font-size: 15px; cursor: pointer; }
#ship-to-different-address input { width: 20px; height: 20px; accent-color: var(--primary-strong); }
.shipping_address { margin-top: 16px; }
.co-account { padding: 0 0 24px; display: grid; gap: 16px; }
.co-inst__fields { margin-top: 4px; }

/* Payment methods (core payment.php / payment-method.php) */
.woocommerce-checkout-payment { display: grid; gap: 20px; }
.wc_payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wc_payment_method { border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--surface-raised); transition: border-color .2s, box-shadow .2s; }
.wc_payment_method:has(> input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: #F7FBFF; }
.wc_payment_method > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wc_payment_method > label {
	position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px 16px 48px; cursor: pointer; font-weight: 600; color: var(--ink);
}
.wc_payment_method > label::before {
	content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
	border: 1.5px solid #94A3B8; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.wc_payment_method > input:checked + label::before { border-color: var(--primary-strong); box-shadow: inset 0 0 0 4px #fff; background: var(--primary-strong); }
.wc_payment_method > input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
.wc_payment_method > label img { max-height: 22px; width: auto; margin-left: auto; }
.payment_box { padding: 0 18px 18px 48px; font-size: 14px; color: var(--ink-2); }
.payment_box p { margin: 0 0 12px; }
.payment_box p:last-child { margin-bottom: 0; }
.payment_box .form-row { margin-top: 10px; }
.payment_box fieldset { border: 0; padding: 0; margin: 0; }
.place-order { display: grid; gap: 14px; }
.place-order #place_order { height: 58px; font-size: 16px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--ink-2); }
.woocommerce-terms-and-conditions-wrapper a { color: var(--primary-ink); }
.woocommerce-privacy-policy-text p { margin: 0; font-size: 13px; color: var(--muted); }
.woocommerce-privacy-policy-text a { color: var(--primary-ink); }
.co-payment__fine { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Order review table */
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table .cart_item td.product-name { font-weight: 600; font-family: var(--f-body); text-align: left; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 500; color: var(--muted); }
.woocommerce-checkout-review-order-table dl.variation { margin: 4px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 20px; }
form.checkout_coupon { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; padding: 16px; border: 1px dashed var(--rule-strong); border-radius: 10px; }
form.checkout_coupon .form-row { flex: 1 1 200px; }

/* AJAX overlay (blockUI) */
.blockUI.blockOverlay { background: rgba(248, 250, 252, .7) !important; opacity: 1 !important; }
.blockUI.blockOverlay::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
	border: 2px solid var(--rule-strong); border-top-color: var(--primary); animation: korl-spin .8s linear infinite;
}
@keyframes korl-spin { to { transform: rotate(360deg); } }

/* ---------- Mini-cart drawer ---------- */
.drawer__content, .drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__body { flex: 1; overflow-y: auto; margin: 0; padding: 8px 24px; list-style: none; overscroll-behavior: contain; }
.line-item__art { overflow: hidden; background: radial-gradient(circle at 50% 60%, var(--tint, #E0F2FE), var(--surface-subdued) 75%); }
.line-item__art img { width: 100%; height: 100%; object-fit: cover; }
.line-item .price { display: block; margin-top: 4px; }
.line-item__remove { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-item__remove:hover { color: #B91C1C; }
.drawer__row { margin: 0; }
.drawer__row strong, .drawer__row .amount { font: 500 16px var(--f-mono); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; }
.drawer__empty { display: grid; justify-items: center; gap: 4px; }

/* ---------- Thank-you ---------- */
.woocommerce-order { display: grid; gap: 24px; }
.woocommerce-bacs-bank-details, .wc-bacs-bank-details-heading { margin: 0; }
.wc-bacs-bank-details-heading { font: 400 28px/1.1 var(--f-display); }
.wc-bacs-bank-details { list-style: none; margin: 12px 0 0; padding: 16px 18px; border-radius: 10px; border: 1.5px dotted var(--rule-strong); background: var(--surface-raised); display: grid; gap: 6px; font-size: 14px; }
.wc-bacs-bank-details strong { font-family: var(--f-mono); }

/* ---------- Account (core forms we do not override) ---------- */
.acct-content { min-width: 0; display: grid; gap: 24px; }
.acct-content > h2, .woocommerce-MyAccount-content h2, .woocommerce-Address-title h2, .woocommerce-column__title {
	margin: 0; font: 400 clamp(28px, 3vw, 40px)/1.05 var(--f-display); letter-spacing: -.015em;
}
.woocommerce-EditAccountForm, .woocommerce-address-fields, .woocommerce-ResetPassword, .lost_reset_password {
	display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--rule);
}
.woocommerce-EditAccountForm fieldset { margin: 8px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--rule); display: grid; gap: 18px; }
.woocommerce-EditAccountForm legend { font-weight: 600; padding: 0; }
.woocommerce-EditAccountForm .form-row-first, .woocommerce-EditAccountForm .form-row-last { grid-column: auto; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-Address { padding: 24px; border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--rule); display: grid; gap: 12px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2 { font-size: 24px; }
.woocommerce-Address-title .edit { font-size: 14px; font-weight: 600; color: var(--primary-ink); }
.woocommerce-Address address { font-style: normal; line-height: 1.7; color: var(--ink-2); }
.woocommerce-table, .woocommerce-orders-table, .woocommerce-table--order-downloads { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.woocommerce-table th, .woocommerce-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--surface-subdued); font-size: 15px; }
.woocommerce-table thead th { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.woocommerce-table tfoot th { font-weight: 500; color: var(--ink-2); }
.woocommerce-table tfoot td { font-family: var(--f-mono); }
.woocommerce-customer-details address { font-style: normal; padding: 18px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface-raised); line-height: 1.7; }
.order-again { margin: 0; }
mark.order-number, mark.order-date, mark.order-status { background: none; color: var(--ink); font-weight: 600; }
.verify-steps__icon.is-open { background: var(--surface-subdued); }
.verify-steps__icon.is-open svg { stroke: var(--muted); }
.verify-form { display: grid; gap: 18px; }
.verify-form .panel__title { margin: 0; }
.verify-form .btn { justify-self: start; }
.acct-dash__links { margin: 0; font-size: 14px; color: var(--muted); }
.acct-dash__links a, .tile__foot a { color: var(--primary-ink); font-weight: 600; }
.order-card__summary { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.order-card__extra { margin-top: 10px; font-size: 14px; }

/* Sign in / register */
.auth__grid--single { grid-template-columns: minmax(0, 520px); }
.auth__form { display: grid; gap: 18px; }
.auth__form .input-group { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.co-grid, .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper, .co-inst__fields, .create-account, .woocommerce-Addresses { grid-template-columns: 1fr; }
	.woocommerce-message .button, .woocommerce-info .button { float: none; display: flex; margin: 10px 0 0; }
	.payment_box { padding-left: 18px; }
	.cart-table td.product-quantity { align-self: center; }
}

/* ---------- Fixes for Woo classes on theme layouts ---------- */
/* wc_product_class() adds "product" to the single-product grid; keep card styles off it. */
.pdp__grid.product { display: grid; flex-direction: initial; overflow: visible; background: none; border: 0; border-radius: 0; animation: none; box-shadow: none; transform: none; }
@media (hover: hover) { .pdp__grid.product:hover { transform: none; box-shadow: none; } }
/* Quantity inputs beat the generic text-input rule. */
.woocommerce .quantity input.qty, .quantity input.qty {
	width: 52px; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center;
}
.pdp__buy { display: block; }
.pdp__buy form.cart { align-items: center; }
