/* ==========================================================================
   ARMÈLLE — cart, checkout, account, order confirmation (classic WooCommerce templates)
   WooCommerce's structural CSS (layout, smallscreen) stays; its visual skin is replaced here.
   Native fields, validation, notices, payment box and consent remain WooCommerce's own markup.
   ========================================================================== */

.commerce { padding: calc(var(--header-h) + 56px) var(--margin) 144px; }
.commerce__title { font-size: var(--display); line-height: 1; letter-spacing: -.04em; font-weight: 500; margin-bottom: 48px; }
.commerce .woocommerce { font-size: 15.5px; line-height: 1.5; }
.commerce .woocommerce h2, .commerce .woocommerce h3 { font-size: var(--title); letter-spacing: -.02em; font-weight: 500; line-height: 1.2; margin: 0 0 20px; }
.commerce .woocommerce a:not(.button):not(.cta) { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; }
.commerce .woocommerce a.remove, .commerce table.cart .product-thumbnail a { background: none !important; }
@media (max-width: 760px) { .commerce { padding-top: calc(var(--header-h) + 32px); padding-bottom: 96px; } .commerce__title { margin-bottom: 32px; } }

/* ---------- Buttons ---------- */
.commerce .button, .commerce button.button, .commerce input.button, .commerce #place_order, .commerce .checkout-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 0;
	background: var(--ink); color: var(--limestone); font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; text-decoration: none;
	transition: background var(--t-state) var(--ease);
}
.commerce .button:hover, .commerce #place_order:hover { background: var(--ink-hover); color: var(--limestone); }
.commerce .button:focus-visible, .commerce #place_order:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.commerce .button:disabled, .commerce .button[disabled], .commerce .button.disabled { background: transparent; color: var(--disabled); box-shadow: inset 0 0 0 1px var(--stone); cursor: default; opacity: 1; }
.commerce .checkout-button, .commerce #place_order { width: 100%; min-height: 56px; font-size: 16px; }
.commerce .woocommerce-Button--secondary, .commerce .button.alt-secondary, .commerce .woocommerce-form-coupon .button, .commerce button[name="apply_coupon"], .commerce button[name="update_cart"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.commerce button[name="apply_coupon"]:hover, .commerce button[name="update_cart"]:not(:disabled):hover { background: var(--ink); color: var(--limestone); }

/* ---------- Fields ---------- */
.commerce .form-row { margin: 0 0 18px; padding: 0; }
.commerce .form-row label { display: block; font-size: var(--small); color: var(--graphite); margin-bottom: 8px; line-height: 1.4; }
.commerce .form-row .required { color: var(--graphite); text-decoration: none; border: 0; }
.commerce .input-text, .commerce .form-row select, .commerce .select2-container .select2-selection--single, .commerce textarea {
	width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--stone);
	font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; transition: box-shadow var(--t-state) var(--ease);
}
.commerce textarea.input-text { min-height: 110px; line-height: 1.5; }
.commerce .input-text:hover, .commerce .select2-selection--single:hover { box-shadow: inset 0 0 0 1px var(--hover); }
.commerce .input-text:focus, .commerce .input-text:focus-visible, .commerce .select2-container--focus .select2-selection--single, .commerce .select2-container--open .select2-selection--single { outline: 2px solid transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.commerce .select2-container .select2-selection--single { display: flex; align-items: center; height: 52px; }
.commerce .select2-container .select2-selection__rendered { padding: 0 !important; line-height: 1.4 !important; color: var(--ink) !important; }
.commerce .select2-container .select2-selection__arrow { height: 50px !important; right: 10px !important; }
.select2-dropdown { border: 0 !important; border-radius: 0 !important; box-shadow: 0 0 0 1px var(--ink); background: var(--paper); font-size: 15px; }
.select2-search--dropdown .select2-search__field { min-height: 44px; border: 0 !important; box-shadow: inset 0 0 0 1px var(--stone); padding: 8px 10px; border-radius: 0; }
.select2-results__option { padding: 10px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ink) !important; color: var(--limestone) !important; }
.commerce .woocommerce-invalid .input-text, .commerce .woocommerce-invalid select, .commerce .woocommerce-invalid .select2-selection { box-shadow: inset 0 0 0 1.5px var(--error) !important; }
.commerce .woocommerce-invalid label { color: var(--error); }
.commerce .woocommerce-validated .input-text { box-shadow: inset 0 0 0 1px var(--stone); }
.commerce .checkout-inline-error-message, .commerce .woocommerce-error-message { color: var(--error); font-size: 13.5px; margin-top: 6px; }
.commerce input[type="checkbox"], .commerce input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); margin: 0 10px 0 0; vertical-align: -3px; }
.commerce .woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: flex-start; gap: 0; color: var(--ink) !important; font-size: 15px !important; cursor: pointer; }
.commerce .woocommerce-form__label-for-checkbox input { margin-top: 2px; flex: none; }
.commerce .woocommerce-password-strength { margin-top: 8px; padding: 8px 10px; font-size: 13.5px; text-align: left; background: var(--paper); box-shadow: inset 0 0 0 1px var(--stone); }
.commerce .woocommerce-password-strength.bad, .commerce .woocommerce-password-strength.short { color: var(--error); }
.commerce .woocommerce-password-hint { display: block; margin-top: 6px; font-size: 13.5px; color: var(--graphite); }
.commerce .password-input { display: block; position: relative; }
.commerce .show-password-input { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; cursor: pointer; }

/* ---------- Notices ---------- */
.commerce .woocommerce-notices-wrapper:empty { display: none; }
.commerce .woocommerce-message, .commerce .woocommerce-info, .commerce .woocommerce-error {
	list-style: none; margin: 0 0 32px; padding: 16px 18px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--stone); color: var(--ink); font-size: 15px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.commerce .woocommerce-message::before, .commerce .woocommerce-info::before, .commerce .woocommerce-error::before { content: none; }
.commerce .woocommerce-error { box-shadow: inset 0 0 0 1.5px var(--error); color: var(--error); flex-direction: column; align-items: flex-start; }
.commerce .woocommerce-error li { margin: 0; }
.commerce .woocommerce-error a { color: var(--error); }
.commerce .woocommerce-message .button, .commerce .woocommerce-info .button { order: 2; margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.commerce .woocommerce-NoticeGroup { margin-bottom: 0; }

/* ---------- Tables (cart, order review, order details) ---------- */
.commerce table.shop_table { width: 100%; border: 0; border-collapse: collapse; border-radius: 0; margin: 0 0 32px; font-size: 15px; }
.commerce table.shop_table th, .commerce table.shop_table td { border: 0; border-top: 1px solid var(--stone); padding: 16px 12px 16px 0; text-align: left; vertical-align: middle; background: none; font-weight: 400; }
.commerce table.shop_table thead th { border-top: 0; padding-top: 0; color: var(--graphite); font-size: var(--small); font-weight: 400; }
.commerce table.shop_table tfoot th, .commerce table.shop_table .cart-subtotal th, .commerce table.shop_table .order-total th { color: var(--graphite); font-weight: 400; }
.commerce table.shop_table .order-total td, .commerce table.shop_table .order-total th { font-size: 18px; color: var(--ink); font-weight: 500; }
.commerce table.shop_table .order-total .includes_tax, .commerce small.includes_tax, .commerce .tax_label { display: block; font-size: 13px; color: var(--graphite); font-weight: 400; }
.commerce table.shop_table td.product-name a { background: none; font-weight: 500; }
.commerce table.shop_table .product-quantity, .commerce .product-subtotal, .commerce .product-total, .commerce .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
.commerce table.shop_table td.product-subtotal, .commerce table.shop_table td.product-total, .commerce table.shop_table tfoot td { text-align: right; padding-right: 0; }
.commerce table.shop_table thead th.product-subtotal, .commerce table.shop_table thead th.product-total { text-align: right; padding-right: 0; }

/* Cart */
.commerce .woocommerce-cart-form { margin-bottom: 64px; }
.commerce table.cart .product-thumbnail { width: 96px; }
.commerce table.cart .product-thumbnail a { background: none; display: block; }
.commerce table.cart img { width: 80px; height: 100px; object-fit: cover; background: var(--backdrop); display: block; }
.commerce table.cart .product-remove { width: 44px; }
.commerce a.remove { display: inline-flex !important; align-items: center; justify-content: center; width: 44px !important; height: 44px !important; font-size: 22px !important; font-weight: 300; color: var(--graphite) !important; border-radius: 0 !important; }
.commerce a.remove:hover { background: transparent !important; color: var(--ink) !important; }
.commerce .quantity .qty { width: 72px; min-height: 44px; text-align: center; padding: 8px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--stone); font: inherit; }
.commerce table.cart td.actions { padding-top: 20px; }
.commerce table.cart td.actions .coupon { display: flex; gap: 10px; float: left; }
.commerce table.cart td.actions .coupon .input-text { width: 200px; min-height: 52px; }
.commerce table.cart td.actions > .button { float: right; }
.commerce .cart-collaterals { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.commerce .cart-collaterals .cart_totals { grid-column: 8 / -1; width: auto; float: none; }
.commerce .cart_totals table.shop_table th { width: 40%; }
.commerce .woocommerce-shipping-destination { font-size: 13.5px; color: var(--graphite); margin: 6px 0 0; }
.commerce .woocommerce-shipping-calculator .shipping-calculator-button { font-size: 14px; }
.commerce .shipping-calculator-button::after { content: none !important; }
.commerce .shipping-calculator-form { margin-top: 12px; text-align: left; }
.commerce ul#shipping_method { list-style: none; margin: 0; padding: 0; text-align: right; }
.commerce ul#shipping_method li { margin: 0 0 6px; }
.commerce .wc-proceed-to-checkout { padding: 8px 0 0; }
.commerce .cart-empty { font-size: 18px; }
.commerce .return-to-shop .button { margin-top: 16px; }
@media (max-width: 900px) { .commerce .cart-collaterals .cart_totals { grid-column: 1 / -1; } }
@media (max-width: 768px) {
	.commerce table.shop_table_responsive tr { display: block; padding: 12px 0; border-top: 1px solid var(--stone); }
	.commerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; border: 0; padding: 6px 0; text-align: right !important; }
	.commerce table.shop_table_responsive tr td { gap: 12px; }
	.commerce table.shop_table_responsive tr td::before { color: var(--graphite); font-weight: 400; flex-shrink: 0; }
	/* Values may shrink and wrap (long product names, enlarged text on narrow phones) instead of widening the table. */
	.commerce table.shop_table_responsive tr td > * { min-width: 0; overflow-wrap: anywhere; }
	.commerce table.cart .product-thumbnail { display: block !important; width: auto; }
	.commerce table.cart .product-remove { width: auto; justify-content: flex-end !important; }
	.commerce table.cart td.actions { display: block !important; }
	.commerce table.cart td.actions .coupon { float: none; flex-wrap: wrap; margin-bottom: 12px; }
	/* Percentage width + min-width 0: the coupon field compresses instead of widening the cart at 320 px / large text. */
	.commerce table.cart td.actions .coupon .input-text { flex: 1 1 140px; width: 100%; min-width: 0; }
	.commerce table.cart td.actions > .button { float: none; width: 100%; }
}

/* ---------- Checkout ---------- */
.commerce form.checkout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.commerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / span 7; grid-row: 1; }
.commerce form.checkout #customer_details { grid-column: 1 / span 7; grid-row: 2 / span 20; }
.commerce form.checkout #customer_details .col-1, .commerce form.checkout #customer_details .col-2 { float: none; width: 100%; }
.commerce form.checkout #customer_details .col-2 { margin-top: 32px; }
.commerce form.checkout #order_review_heading { grid-column: 9 / -1; grid-row: 1; margin-top: 0; align-self: end; }
.commerce form.checkout #order_review { grid-column: 9 / -1; grid-row: 2 / span 20; position: sticky; top: calc(var(--header-h) + 24px); }
.commerce .woocommerce-billing-fields__field-wrapper, .commerce .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.commerce .woocommerce-billing-fields__field-wrapper .form-row, .commerce .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: 1 / -1; float: none; width: auto; }
.commerce .woocommerce-billing-fields__field-wrapper .form-row-first, .commerce .woocommerce-shipping-fields__field-wrapper .form-row-first { grid-column: 1; }
.commerce .woocommerce-billing-fields__field-wrapper .form-row-last, .commerce .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 2; }
.commerce .woocommerce-form-login-toggle .woocommerce-info, .commerce .woocommerce-form-coupon-toggle .woocommerce-info { box-shadow: none; padding: 0; background: none; margin-bottom: 16px; }
.commerce form.woocommerce-form-login, .commerce form.checkout_coupon { margin: 0 0 32px; padding: 24px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--stone); }
.commerce form.checkout_coupon { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.commerce form.checkout_coupon p:first-child { flex-basis: 100%; }
.commerce form.checkout_coupon .form-row { margin: 0; float: none; width: auto; }
.commerce form.checkout_coupon .form-row-first { flex: 1; }
.commerce #ship-to-different-address { font-size: 17px; }
.commerce .woocommerce-checkout-review-order-table { margin-bottom: 24px !important; }
.commerce .woocommerce-checkout-review-order-table .product-name { font-weight: 400; }
.commerce .woocommerce-checkout-review-order-table .product-quantity { color: var(--graphite); font-weight: 400; }
.commerce .woocommerce-checkout-review-order-table .variation { font-size: 13.5px; color: var(--graphite); margin: 4px 0 0; }
.commerce .woocommerce-checkout-review-order-table .variation dt, .commerce .woocommerce-checkout-review-order-table .variation dd, .commerce .woocommerce-checkout-review-order-table .variation p { display: inline; margin: 0; }
.commerce #payment { background: none !important; border-radius: 0 !important; }
.commerce #payment ul.payment_methods { list-style: none; margin: 0 0 24px; padding: 0; border: 0 !important; }
.commerce #payment ul.payment_methods li { padding: 16px 0; border-top: 1px solid var(--stone); line-height: 1.4; }
.commerce #payment ul.payment_methods li:last-child { border-bottom: 1px solid var(--stone); }
.commerce #payment ul.payment_methods li label { font-weight: 500; cursor: pointer; }
.commerce #payment ul.payment_methods li img { max-height: 24px; vertical-align: middle; margin-left: 6px; }
.commerce #payment div.payment_box { margin: 12px 0 0 28px; padding: 0; background: none !important; color: var(--graphite); font-size: 14px; }
.commerce #payment div.payment_box::before { content: none !important; }
.commerce #payment .place-order { padding: 0 !important; margin: 0; }
.commerce .woocommerce-privacy-policy-text { font-size: 13.5px; color: var(--graphite); margin-bottom: 16px; }
.commerce .woocommerce-terms-and-conditions-wrapper { margin-bottom: 20px; }
.commerce .woocommerce-terms-and-conditions-wrapper .form-row { margin-bottom: 0; }
.commerce .woocommerce-terms-and-conditions { max-height: 240px; overflow: auto; padding: 16px; margin-bottom: 16px; box-shadow: inset 0 0 0 1px var(--stone); font-size: 14px; }
.commerce .blockUI.blockOverlay { background: var(--limestone) !important; opacity: .6 !important; }
.commerce .blockUI.blockOverlay::before { content: none !important; }
@media (max-width: 1000px) {
	.commerce form.checkout { display: block; }
	.commerce form.checkout #order_review { position: static; }
	.commerce form.checkout #order_review_heading { margin-top: 48px; }
}
@media (max-width: 600px) {
	.commerce .woocommerce-billing-fields__field-wrapper .form-row-first, .commerce .woocommerce-billing-fields__field-wrapper .form-row-last,
	.commerce .woocommerce-shipping-fields__field-wrapper .form-row-first, .commerce .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 1 / -1; }
}

/* ---------- Order received ---------- */
.commerce .woocommerce-order > p.woocommerce-thankyou-order-received, .commerce .woocommerce-notice--success { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 32px; padding: 0; box-shadow: none; background: none; }
.commerce ul.woocommerce-order-overview { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.commerce ul.woocommerce-order-overview li { margin: 0; padding: 16px 16px 16px 0; border: 0; font-size: 13.5px; color: var(--graphite); text-transform: none; }
.commerce ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 16px; color: var(--ink); font-weight: 500; }
.commerce .woocommerce-order .wc-bacs-bank-details-heading, .commerce .woocommerce-order h2 { margin-top: 48px; }
.commerce ul.wc-bacs-bank-details { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px var(--gap); }
.commerce ul.wc-bacs-bank-details li { font-size: 13.5px; color: var(--graphite); }
.commerce ul.wc-bacs-bank-details li strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 500; }
.commerce .woocommerce-customer-details address { font-style: normal; padding: 20px; border: 0 !important; border-radius: 0 !important; box-shadow: inset 0 0 0 1px var(--stone); line-height: 1.6; }
.commerce .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.commerce .woocommerce-customer-details .woocommerce-column { float: none; width: auto; }
.commerce .woocommerce-order-details, .commerce .woocommerce-customer-details { max-width: 860px; }
@media (max-width: 760px) { .commerce .woocommerce-customer-details .woocommerce-columns { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Account ---------- */
.commerce .u-columns.col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.commerce .u-columns .u-column1, .commerce .u-columns .u-column2 { float: none; width: auto; }
.commerce .woocommerce-form-login, .commerce .woocommerce-form-register, .commerce .woocommerce-ResetPassword { max-width: 520px; border: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.commerce .woocommerce-form-login__rememberme { display: inline-flex !important; margin: 4px 0 20px; }
.commerce .woocommerce-form-login .form-row:last-of-type { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.commerce .woocommerce-form-login__submit, .commerce .woocommerce-form-register__submit, .commerce .woocommerce-ResetPassword .button { width: 100%; }
.commerce .woocommerce-LostPassword { margin-top: 16px; font-size: 15px; }
.commerce .woocommerce-MyAccount-navigation { float: none; width: auto; }
.commerce .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.commerce .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 40px; background: none !important; font-size: 15.5px; }
.commerce .woocommerce-MyAccount-navigation .is-active a { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.commerce .woocommerce-MyAccount-navigation a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.commerce .woocommerce-account .woocommerce, .commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation { grid-column: 1 / span 3; }
.commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content { grid-column: 4 / span 8; float: none; width: auto; }
.commerce .woocommerce-MyAccount-content > p:first-child { font-size: 18px; }
.commerce .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.commerce .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; padding: 20px; box-shadow: inset 0 0 0 1px var(--stone); }
.commerce .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.commerce .woocommerce-Address-title h2 { font-size: 18px !important; }
.commerce .woocommerce-Address address { font-style: normal; line-height: 1.6; }
.commerce .woocommerce-orders-table .button, .commerce .woocommerce-MyAccount-content .woocommerce-button { min-height: 40px; padding: 0 14px; font-size: 14px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); margin: 2px 4px 2px 0; }
.commerce .woocommerce-MyAccount-content fieldset { border: 0; padding: 0; margin: 32px 0 0; }
.commerce .woocommerce-MyAccount-content legend { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.commerce .woocommerce-EditAccountForm .form-row-first, .commerce .woocommerce-EditAccountForm .form-row-last { width: calc(50% - 8px); }
.commerce mark { background: none; color: inherit; font-weight: 500; }
@media (max-width: 900px) {
	.commerce .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: block; }
	.commerce .woocommerce-MyAccount-navigation { margin-bottom: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--stone); }
	.commerce .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
	.commerce .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
	.commerce .woocommerce-EditAccountForm .form-row-first, .commerce .woocommerce-EditAccountForm .form-row-last { width: 100%; float: none; }
}
