/**
 * Pashers: basket, checkout, order and account pages.
 *
 * These are WooCommerce's classic layouts (the [woocommerce_cart], [woocommerce_checkout]
 * and [woocommerce_my_account] shortcodes). The theme switches WooCommerce's own stylesheets
 * off, so everything these pages need is here. Loaded only on these pages.
 */

.p-commerce {
	--p-field-h: 50px;
	--p-side: clamp(330px, 34%, 430px);
	--p-gap: clamp(32px, 5vw, 72px);
	--p-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	--p-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.8 10.8 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.6 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
	--p-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323231F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* =========================================================================
   Shared: headings, links, fields, buttons, tables
   ========================================================================= */
.p-commerce .woocommerce { color: var(--ink); font: 400 16px/1.55 var(--body); }
:where(.p-commerce .woocommerce) :where(h2, h3):not(.p-product-title) { font: 800 clamp(24px, 2.4vw, 30px)/1.05 var(--p-font-display); letter-spacing: -.03em; margin: 0 0 18px; color: var(--ink); text-transform: none; }
:where(.p-commerce .woocommerce) a:where(:not(.button, .wp-element-button)) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.p-commerce .woocommerce) a:where(:not(.button, .wp-element-button)):hover { color: var(--blue); }
.p-commerce .woocommerce :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer; }
.p-commerce .woocommerce .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Fields */
.p-commerce .woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; min-width: 0; }
.p-commerce .woocommerce form .form-row > label { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.p-commerce .woocommerce form .form-row .required { color: var(--brick); text-decoration: none; border: 0; font-weight: 600; }
.p-commerce .woocommerce form .form-row .optional { color: var(--ink-soft); font-weight: 400; }
.p-commerce .woocommerce .woocommerce-input-wrapper { display: block; position: relative; min-width: 0; }
.p-commerce .woocommerce :where(input.input-text, textarea.input-text, select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"]):not(.qty) {
	display: block; width: 100%; box-sizing: border-box; min-height: var(--p-field-h); margin: 0; padding: 12px 14px;
	border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink);
	font: 400 16px/1.3 var(--body); box-shadow: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.p-commerce .woocommerce select:not(.qty) { appearance: none; padding-right: 42px; background: var(--white) var(--p-chevron) no-repeat right 12px center / 18px; cursor: pointer; }
.p-commerce .woocommerce textarea.input-text { min-height: 112px; resize: vertical; }
.p-commerce .woocommerce :is(.input-text, select, textarea)::placeholder { color: var(--ink-soft); opacity: .75; }
.p-commerce .woocommerce :is(.input-text, select, textarea):not(.qty):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 71, 107, .18); }
.p-commerce .woocommerce .woocommerce-invalid :is(.input-text, select, .select2-selection) { border-color: var(--brick) !important; }
.p-commerce .woocommerce .checkout-inline-error-message { margin: 0; font-size: 13px; color: var(--brick); }
.p-commerce .woocommerce label.checkbox, .p-commerce .woocommerce .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.p-commerce .woocommerce fieldset { border: 1.5px solid var(--line); border-radius: var(--r-md); margin: 8px 0 20px; padding: 18px 18px 2px; min-width: 0; }
.p-commerce .woocommerce legend { padding: 0 6px; font-weight: 700; }

/* Two fields to a row where WooCommerce asks for it (first and last name) */
.p-commerce .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper),
.p-commerce .woocommerce form.woocommerce-EditAccountForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.p-commerce .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, form.woocommerce-EditAccountForm) > * { grid-column: 1 / -1; }
.p-commerce .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, form.woocommerce-EditAccountForm) > .form-row-first { grid-column: 1; }
.p-commerce .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, form.woocommerce-EditAccountForm) > .form-row-last { grid-column: 2; }
.p-commerce .woocommerce :is(#billing_address_2_field, #shipping_address_2_field) { margin-top: -8px; }

/* Show / hide password */
.p-commerce .woocommerce .password-input { display: block; position: relative; }
.p-commerce .woocommerce .password-input .input-text { padding-right: 50px; }
.p-commerce .woocommerce .show-password-input {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 38px; height: 38px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer;
}
.p-commerce .woocommerce .show-password-input::before { content: ""; display: block; width: 20px; height: 20px; margin: auto; background: currentColor; -webkit-mask: var(--p-eye) center / contain no-repeat; mask: var(--p-eye) center / contain no-repeat; }
.p-commerce .woocommerce .show-password-input.display-password::before { -webkit-mask-image: var(--p-eye-off); mask-image: var(--p-eye-off); }
.p-commerce .woocommerce .show-password-input:hover { background: var(--paper); color: var(--ink); }

/* Country picker (WooCommerce's searchable dropdown) */
.p-commerce .woocommerce .select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
	height: var(--p-field-h, 50px); display: flex; align-items: center; box-sizing: border-box;
	border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { flex: 1; padding: 0 44px 0 14px; color: var(--ink); font: 400 16px/1.3 var(--body); }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-soft); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 12px; width: 18px; height: 100%; background: var(--p-chevron, none) no-repeat center / 18px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 71, 107, .18); outline: none; }
.select2-dropdown { border: 1.5px solid var(--blue); border-radius: 12px !important; overflow: hidden; background: var(--white); color: var(--ink); font: 400 15px/1.35 var(--body); box-shadow: var(--shadow); }
.select2-container--open .select2-dropdown--below { margin-top: 6px; border-top: 1.5px solid var(--blue); }
.select2-container--open .select2-dropdown--above { margin-top: -6px; border-bottom: 1.5px solid var(--blue); }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 42px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; font: inherit; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { outline: none; border-color: var(--blue); }
.select2-results__option { padding: 9px 14px; }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--paper); color: var(--ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--blue); color: var(--white); }

/* Buttons: main actions are blue, side actions (update, apply) are outlined */
.p-commerce .woocommerce :is(.button, button.button, a.button, input.button) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; box-sizing: border-box;
	border: 1.5px solid var(--blue); border-radius: 999px; background: var(--blue); color: var(--white);
	font: 600 15px/1.1 var(--body); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.p-commerce .woocommerce :is(.button, button.button, a.button, input.button):hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.p-commerce .woocommerce :is(.button, button.button, a.button, input.button):active { transform: scale(.98); }
.p-commerce .woocommerce :is(.button, button.button, a.button, input.button):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.p-commerce .woocommerce :is(button[name="update_cart"], button[name="apply_coupon"], button[name="calc_shipping"], .woocommerce-orders-table .button, .woocommerce-Address .edit, .woocommerce-button--previous, .woocommerce-button--next) {
	background: transparent; color: var(--ink); border-color: var(--ink);
}
.p-commerce .woocommerce :is(button[name="update_cart"], button[name="apply_coupon"], button[name="calc_shipping"], .woocommerce-orders-table .button):hover { background: var(--ink); color: var(--white); }
.p-commerce .woocommerce :is(.button, button.button):is(:disabled, .disabled, [aria-disabled="true"]) { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* Plain tables (orders, order details, downloads) */
.p-commerce .woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 15px; border: 0; }
.p-commerce .woocommerce table.shop_table :is(th, td) { padding: 13px 10px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.p-commerce .woocommerce table.shop_table :is(th, td):first-child { padding-left: 0; }
.p-commerce .woocommerce table.shop_table :is(th, td):last-child { padding-right: 0; }
.p-commerce .woocommerce table.shop_table thead th { font: 600 13px/1.2 var(--body); color: var(--ink-soft); padding-top: 0; }
.p-commerce .woocommerce table.shop_table tfoot th { font-weight: 500; color: var(--ink-soft); }
.p-commerce .woocommerce table.shop_table tfoot td { font-weight: 600; }
.p-commerce .woocommerce table.shop_table .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-commerce .woocommerce dl.variation { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 3px 0 0; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.p-commerce .woocommerce dl.variation :is(dt, dd) { margin: 0; }
.p-commerce .woocommerce dl.variation dd p { display: inline; margin: 0; }
.p-commerce .woocommerce mark { background: var(--paper); color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* Cards (totals, order summary, addresses, log in) */
.p-commerce .woocommerce :is(.cart_totals, #order_review, .woocommerce-Address, .woocommerce-customer-details .woocommerce-column, .u-column1, .u-column2) {
	background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow);
}

/* Totals rows, shared by the basket and checkout summaries */
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) { display: block; margin: 0; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) :is(thead, tbody, tfoot) { display: block; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) :is(th, td) { display: block; padding: 0 !important; border: 0; font-size: 15px; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) :is(th, td)::before { content: none !important; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) :is(tbody, tfoot) th { font-weight: 500; color: var(--ink-soft); text-align: left; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) :is(tbody, tfoot) td { font-weight: 600; text-align: right; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: 10px; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr.woocommerce-shipping-totals td { text-align: left; font-weight: 400; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr.cart-discount td { color: var(--green); }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) .woocommerce-remove-coupon { font-size: 13px; font-weight: 500; margin-left: 6px; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr.order-total { border-bottom: 0; padding-top: 18px; }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr.order-total :is(th, td) { font: 800 24px/1 var(--p-font-display); letter-spacing: -.02em; color: var(--ink); }
.p-commerce .woocommerce :is(.cart_totals table.shop_table, table.woocommerce-checkout-review-order-table) tr.order-total td small { display: block; margin-top: 6px; font: 400 12px/1.3 var(--body); letter-spacing: 0; color: var(--ink-soft); }

/* Delivery options as tappable cards */
.p-commerce .woocommerce ul.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-commerce .woocommerce ul.woocommerce-shipping-methods li { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--milk); font-size: 15px; line-height: 1.35; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.p-commerce .woocommerce ul.woocommerce-shipping-methods li:has(input:checked), .p-commerce .woocommerce ul.woocommerce-shipping-methods li:only-child { border-color: var(--blue); background: var(--white); box-shadow: inset 0 0 0 1px var(--blue); }
.p-commerce .woocommerce ul.woocommerce-shipping-methods li label { flex: 1; cursor: pointer; }
.p-commerce .woocommerce ul.woocommerce-shipping-methods li label::after { content: ""; position: absolute; inset: 0; }
.p-commerce .woocommerce ul.woocommerce-shipping-methods li .amount { font-weight: 600; }
.p-commerce .woocommerce .woocommerce-shipping-destination { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.p-commerce .woocommerce .woocommerce-shipping-calculator { margin: 0; }
.p-commerce .woocommerce .shipping-calculator-button { font-size: 14px; font-weight: 600; }
.p-commerce .woocommerce .shipping-calculator-form { padding-top: 14px; }
.p-commerce .woocommerce .shipping-calculator-form .form-row { margin-bottom: 10px; }
.p-commerce .woocommerce .shipping-calculator-form p:last-of-type { margin-bottom: 0; }

/* Notices inside these pages sit flush with the content */
.p-commerce .woocommerce .wc-block-components-notice-banner { max-width: none; margin: 0 0 20px; }

/* =========================================================================
   Basket
   ========================================================================= */
.p-commerce .woocommerce:has(> .woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1fr) var(--p-side); gap: 0 var(--p-gap); align-items: start; }
.p-commerce .woocommerce:has(> .woocommerce-cart-form) > * { grid-column: 1 / -1; }
.p-commerce .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; min-width: 0; }
.p-commerce .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; }
.p-commerce .woocommerce-cart-form { margin: 0; }

.p-commerce .woocommerce table.shop_table.cart { margin: 0; }
.p-commerce .woocommerce table.shop_table.cart thead th.product-subtotal, .p-commerce .woocommerce table.shop_table.cart td.product-subtotal { text-align: right; }
.p-commerce .woocommerce table.shop_table.cart td { padding-top: 18px; padding-bottom: 18px; }
.p-commerce .woocommerce table.shop_table.cart td.product-remove { width: 36px; padding-right: 4px; }
.p-commerce .woocommerce table.shop_table.cart a.remove {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	color: var(--ink-soft); font-size: 22px; line-height: 1; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.p-commerce .woocommerce table.shop_table.cart a.remove:hover { background: var(--paper); color: var(--brick); }
.p-commerce .woocommerce table.shop_table.cart td.product-thumbnail { width: 96px; }
.p-commerce .woocommerce table.shop_table.cart td.product-thumbnail a { display: block; }
.p-commerce .woocommerce table.shop_table.cart td.product-thumbnail img { display: block; width: 88px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--paper); }
.p-media-portrait .p-commerce .woocommerce table.shop_table.cart td.product-thumbnail img { aspect-ratio: 4 / 5; }
.p-commerce .woocommerce table.shop_table.cart td.product-name { font-weight: 600; line-height: 1.35; }
.p-commerce .woocommerce table.shop_table.cart td.product-name a { text-decoration: none; }
.p-commerce .woocommerce table.shop_table.cart td.product-name a:hover { text-decoration: underline; }
.p-commerce .woocommerce table.shop_table.cart :is(td.product-price, td.product-subtotal) { white-space: nowrap; }
.p-commerce .woocommerce table.shop_table.cart td.product-subtotal { font-weight: 600; }
.p-commerce .woocommerce table.shop_table.cart .quantity { height: 44px; }
.p-commerce .woocommerce table.shop_table.cart .quantity .qty { width: 34px; }
.p-commerce .woocommerce table.shop_table.cart .p-qty-btn { width: 34px; height: 34px; margin: 0 4px; }
.p-commerce .woocommerce table.shop_table.cart td.actions { padding: 20px 0 0 !important; border-bottom: 0; }
.p-commerce .woocommerce table.shop_table.cart td.actions::after { content: ""; display: table; clear: both; }
.p-commerce .woocommerce table.shop_table.cart td.actions .coupon { float: left; display: flex; gap: 8px; }
.p-commerce .woocommerce table.shop_table.cart td.actions .coupon .input-text { width: 210px; min-height: 50px; }
.p-commerce .woocommerce table.shop_table.cart td.actions > .button { float: right; }
.p-cart-auto button[name="update_cart"] { display: none !important; }

.p-commerce .woocommerce .cart-collaterals { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.p-commerce .woocommerce .cart_totals { order: -1; padding: clamp(20px, 2.4vw, 28px); }
.p-commerce .woocommerce .cart_totals h2 { font-size: 26px; margin-bottom: 4px; }
.p-commerce .woocommerce .wc-proceed-to-checkout { padding-top: 10px; }
.p-commerce .woocommerce .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 58px; font-size: 17px; }
.p-commerce .woocommerce .cross-sells > h2 { font-size: 22px; }
.p-commerce .woocommerce .cross-sells ul.p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.p-commerce .woocommerce .cross-sells .p-quick { display: none; }

/* Empty basket */
.p-commerce .woocommerce:has(> .wc-empty-cart-message) { display: grid; justify-items: center; text-align: center; padding: 8px 0 24px; }
.p-commerce .p-empty-basket-art { width: 150px; height: auto; color: var(--ink); }
.p-commerce .woocommerce .wc-empty-cart-message .wc-block-components-notice-banner { justify-content: center; margin: 8px 0 4px; padding: 0 !important; border: 0 !important; background: none !important; font: 800 clamp(28px, 3.4vw, 40px)/1.05 var(--p-font-display); letter-spacing: -.03em; }
.p-commerce .woocommerce .wc-empty-cart-message .wc-block-components-notice-banner > svg { display: none; }
.p-commerce .woocommerce .return-to-shop { margin: 16px 0 0; }

/* =========================================================================
   Checkout
   ========================================================================= */
.p-commerce .woocommerce .woocommerce-form-coupon-toggle .wc-block-components-notice-banner { background: var(--paper) !important; border-color: transparent !important; }
.p-commerce .woocommerce form.checkout_coupon { margin: 0 0 28px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.p-commerce .woocommerce form.checkout_coupon > p:first-child { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
.p-commerce .woocommerce form.checkout_coupon .form-row { display: inline-block; vertical-align: top; margin: 0; }
.p-commerce .woocommerce form.checkout_coupon .form-row-first { width: calc(100% - 136px); margin-right: 8px; }
.p-commerce .woocommerce form.checkout_coupon .form-row-last { width: 120px; }
.p-commerce .woocommerce form.checkout_coupon .form-row-last .button { width: 100%; }

.p-commerce form.woocommerce-checkout { display: flow-root; margin: 0; }
.p-commerce form.woocommerce-checkout :is(.col-1, .col-2) { width: auto; float: none; }
.p-commerce form.woocommerce-checkout .col-2 { margin-top: 12px; }
.p-commerce form.woocommerce-checkout #ship-to-different-address { margin: 8px 0 18px; font: 600 16px/1.3 var(--body); letter-spacing: 0; }
.p-commerce form.woocommerce-checkout .woocommerce-additional-fields > h3 { font-size: 22px; margin-top: 12px; }

.p-commerce form.woocommerce-checkout #order_review_heading { margin: 40px 0 0; padding: 26px 26px 4px; background: var(--white); border-radius: var(--r-lg) var(--r-lg) 0 0; font-size: 26px; }
.p-commerce form.woocommerce-checkout #order_review { padding: 0 26px 26px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.p-commerce .woocommerce table.woocommerce-checkout-review-order-table thead tr { padding: 10px 0; }
.p-commerce .woocommerce table.woocommerce-checkout-review-order-table thead th { font: 600 13px/1.2 var(--body); color: var(--ink-soft); }
.p-commerce .woocommerce table.woocommerce-checkout-review-order-table tbody td.product-name { font-weight: 600; color: var(--ink); text-align: left; line-height: 1.35; }
.p-commerce .woocommerce table.woocommerce-checkout-review-order-table .product-quantity { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }

/* Payment */
.p-commerce .woocommerce #payment { margin-top: 20px; background: none; }
.p-commerce .woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; border: 0; }
.p-commerce .woocommerce #payment ul.payment_methods > li { margin: 0; list-style: none; }
.p-commerce .woocommerce #payment ul.payment_methods > li .wc-block-components-notice-banner { margin: 0; }
.p-commerce .woocommerce #payment li.wc_payment_method { padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--milk); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.p-commerce .woocommerce #payment li.wc_payment_method:has(> input:checked), .p-commerce .woocommerce #payment li.wc_payment_method:only-child { border-color: var(--blue); background: var(--white); box-shadow: inset 0 0 0 1px var(--blue); }
.p-commerce .woocommerce #payment li.wc_payment_method > input.input-radio { display: inline-block; vertical-align: middle; margin-right: 10px; }
.p-commerce .woocommerce #payment li.wc_payment_method > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; width: calc(100% - 32px); vertical-align: middle; font-weight: 600; font-size: 15px; cursor: pointer; }
.p-commerce .woocommerce #payment li.wc_payment_method > label img { max-height: 22px; width: auto; margin: 0; }
.p-commerce .woocommerce #payment .payment_box { margin: 12px 0 0; padding: 0; background: none; font-size: 14px; color: var(--ink-soft); }
.p-commerce .woocommerce #payment .payment_box::before { display: none; }
.p-commerce .woocommerce #payment .payment_box :is(p:last-child, fieldset) { margin-bottom: 0; }
.p-commerce .woocommerce #payment .payment_box fieldset { border: 0; padding: 0; margin: 0; }
.p-commerce .woocommerce #payment .place-order { margin: 0; padding: 0; gap: 14px; }
.p-commerce .woocommerce :is(.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-checkbox-text) { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.p-commerce .woocommerce .woocommerce-privacy-policy-text p { margin: 0; }
.p-commerce .woocommerce .woocommerce-terms-and-conditions { max-height: 220px; overflow: auto; margin: 0 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.p-commerce .woocommerce #place_order { width: 100%; min-height: 58px; font-size: 17px; }

/* While the totals update */
.p-commerce .woocommerce .blockUI.blockOverlay { background: var(--milk) !important; opacity: .6 !important; border-radius: inherit; }

@media (min-width: 960px) {
	.p-commerce form.woocommerce-checkout #customer_details { float: left; width: calc(100% - var(--p-side) - var(--p-gap)); }
	.p-commerce form.woocommerce-checkout :is(#order_review_heading, #order_review) { float: right; clear: right; width: var(--p-side); box-sizing: border-box; }
	.p-commerce form.woocommerce-checkout #order_review_heading { margin-top: 0; }
}

/* =========================================================================
   Order received
   ========================================================================= */
.p-order-done .p-commerce-inner { max-width: 1000px; }
.p-order-done .wc-block-order-confirmation-status { margin: 0 0 28px; }
.p-order-done .wc-block-order-confirmation-status h1 { font: 800 clamp(40px, 6vw, 72px)/.95 var(--p-font-display) !important; letter-spacing: -.045em; margin: 0 0 14px; }
.p-order-done .wc-block-order-confirmation-status p { font-size: 18px; color: var(--ink-soft); margin: 0; }
.p-order-done .wc-block-order-confirmation-summary { margin: 0 0 36px; padding: 20px 24px; background: var(--paper); border-radius: var(--r-md); }
.p-order-done .wc-block-order-confirmation-summary-list { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 0; list-style: none; }
.p-order-done .wc-block-order-confirmation-summary-list-item__key { display: block; font-size: 13px; color: var(--ink-soft); }
.p-order-done .wc-block-order-confirmation-summary-list-item__value { font-weight: 600; }
.p-order-done :is(.wc-block-order-confirmation-totals-wrapper, .wc-block-order-confirmation-downloads-wrapper, .wc-block-order-confirmation-additional-fields-wrapper) { margin: 0 0 36px; }
.p-order-done :is(h2, h3).wp-block-heading { font: 800 26px/1.05 var(--p-font-display) !important; letter-spacing: -.03em; margin: 0 0 14px; }
.p-order-done .wc-block-order-confirmation-totals table { width: 100%; border-collapse: collapse; font-size: 15px; }
.p-order-done .wc-block-order-confirmation-totals :is(th, td) { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.p-order-done .wc-block-order-confirmation-totals :is(th, td):last-child { text-align: right; }
.p-order-done .wc-block-order-confirmation-totals tfoot th { font-weight: 500; color: var(--ink-soft); }
.p-order-done .wc-block-order-confirmation-totals tfoot tr:last-child :is(th, td) { font: 800 22px var(--p-font-display); color: var(--ink); border-bottom: 0; }
.p-order-done .wc-block-order-confirmation-address-wrapper { gap: 24px; margin-bottom: 36px; }
.p-order-done .wc-block-order-confirmation-address-wrapper .wp-block-column { padding: 22px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.p-order-done address { font-style: normal; line-height: 1.6; }

/* Classic order details (view order in your account, order pay) */
.p-commerce .woocommerce .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0 0 32px; padding: 20px 24px; list-style: none; background: var(--paper); border-radius: var(--r-md); font-size: 13px; color: var(--ink-soft); }
.p-commerce .woocommerce .woocommerce-order-overview strong { display: block; font-size: 15px; color: var(--ink); }
.p-commerce .woocommerce .woocommerce-thankyou-order-received { font: 800 clamp(26px, 3vw, 34px)/1.1 var(--p-font-display); letter-spacing: -.03em; margin: 0 0 20px; }
.p-commerce .woocommerce :is(.woocommerce-columns--addresses, .woocommerce-Addresses) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.p-commerce .woocommerce :is(.woocommerce-columns--addresses, .woocommerce-Addresses)::before, .p-commerce .woocommerce :is(.woocommerce-columns--addresses, .woocommerce-Addresses)::after { content: none; }
.p-commerce .woocommerce .woocommerce-customer-details .woocommerce-column, .p-commerce .woocommerce .woocommerce-Address { padding: 22px; width: auto; float: none; }
.p-commerce .woocommerce address { font-style: normal; line-height: 1.6; }
.p-commerce .woocommerce .woocommerce-customer-details :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

/* =========================================================================
   Account
   ========================================================================= */
.p-commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 64px); align-items: start; }
.p-commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
.p-commerce .woocommerce .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-commerce .woocommerce .woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color .2s var(--ease); }
.p-commerce .woocommerce .woocommerce-MyAccount-navigation a:hover { background: var(--paper); color: var(--ink); }
.p-commerce .woocommerce .woocommerce-MyAccount-navigation .is-active a { background: var(--paper); font-weight: 600; }
.p-commerce .woocommerce .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ink-soft); }
.p-commerce .woocommerce .woocommerce-MyAccount-content { min-width: 0; max-width: 780px; }
.p-commerce .woocommerce .woocommerce-MyAccount-content > p:first-of-type { font-size: 17px; }
.p-commerce .woocommerce .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.p-commerce .woocommerce .woocommerce-Address-title :is(h2, h3) { font-size: 22px; margin: 0; }
.p-commerce .woocommerce .woocommerce-Address-title .edit { font-size: 14px; font-weight: 600; }
.p-commerce .woocommerce .woocommerce-orders-table .button { min-height: 38px; padding: 0 16px; font-size: 14px; margin: 2px 6px 2px 0; }
.p-commerce .woocommerce .woocommerce-orders-table__cell-order-number a { font-weight: 600; }
.p-commerce .woocommerce .woocommerce-pagination { display: flex; gap: 8px; justify-content: space-between; }

/* Log in and register */
.p-commerce .woocommerce:has(> form.woocommerce-form-login), .p-commerce .woocommerce:has(> form.woocommerce-ResetPassword) { max-width: 480px; }
.p-commerce .woocommerce > form.woocommerce-form-login, .p-commerce .woocommerce > form.woocommerce-ResetPassword, .p-commerce .woocommerce :is(.u-column1, .u-column2) { padding: clamp(22px, 3vw, 32px); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); margin: 0; }
.p-commerce .woocommerce #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
.p-commerce .woocommerce #customer_login::before, .p-commerce .woocommerce #customer_login::after { content: none; }
.p-commerce .woocommerce #customer_login :is(.u-column1, .u-column2) { width: auto; float: none; }
.p-commerce .woocommerce :is(.woocommerce-form-login, .woocommerce-form-register) { margin: 0; padding: 0; border: 0; }
.p-commerce .woocommerce .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.p-commerce .woocommerce .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.p-commerce .woocommerce .woocommerce-LostPassword { margin: 4px 0 0; font-size: 14px; }

/* =========================================================================
   Phones
   ========================================================================= */
@media (max-width: 959px) {
	.p-commerce .woocommerce:has(> .woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr); }
	.p-commerce .woocommerce:has(> .woocommerce-cart-form) > :is(.woocommerce-cart-form, .cart-collaterals) { grid-column: 1; }
	.p-commerce .woocommerce .cart-collaterals { margin-top: 32px; }
}
@media (max-width: 720px) {
	.p-commerce { --p-field-h: 52px; }

	/* Basket rows: picture on the left, details stacked beside it */
	.p-commerce .woocommerce table.shop_table.cart, .p-commerce .woocommerce table.shop_table.cart tbody { display: block; }
	.p-commerce .woocommerce table.shop_table.cart thead { display: none; }
	.p-commerce .woocommerce table.shop_table.cart tr.cart_item {
		display: grid; grid-template-columns: 84px minmax(0, 1fr) auto;
		grid-template-areas: "thumb name remove" "thumb price price" "thumb qty total";
		gap: 4px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
	}
	.p-commerce .woocommerce table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0; text-align: left; }
	.p-commerce .woocommerce table.shop_table.cart tr.cart_item td::before { content: none; }
	.p-commerce .woocommerce table.shop_table.cart td.product-thumbnail { grid-area: thumb; width: auto; align-self: start; }
	.p-commerce .woocommerce table.shop_table.cart td.product-thumbnail img { width: 84px; }
	.p-commerce .woocommerce table.shop_table.cart td.product-name { grid-area: name; font-size: 15px; }
	.p-commerce .woocommerce table.shop_table.cart td.product-remove { grid-area: remove; width: auto; align-self: start; margin: -6px -8px 0 0; }
	.p-commerce .woocommerce table.shop_table.cart td.product-price { grid-area: price; font-size: 14px; color: var(--ink-soft); }
	.p-commerce .woocommerce table.shop_table.cart td.product-price::after { content: " each"; }
	.p-commerce .woocommerce table.shop_table.cart td.product-quantity { grid-area: qty; margin-top: 6px; }
	.p-commerce .woocommerce table.shop_table.cart td.product-subtotal { grid-area: total; text-align: right; margin-top: 6px; }
	.p-commerce .woocommerce table.shop_table.cart tr:not(.cart_item) { display: block; }
	.p-commerce .woocommerce table.shop_table.cart td.actions { display: block; }
	.p-commerce .woocommerce table.shop_table.cart td.actions .coupon { float: none; }
	.p-commerce .woocommerce table.shop_table.cart td.actions .coupon .input-text { flex: 1; width: auto; min-width: 0; }
	.p-commerce .woocommerce table.shop_table.cart td.actions > .button { float: none; width: 100%; margin-top: 10px; }

	/* Order and download tables become labelled rows */
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) thead { display: none; }
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) :is(tbody, tr) { display: block; }
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) tbody :is(td, th) { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; text-align: right; }
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) tbody :is(td, th)[data-title]::before { content: attr(data-title); font-weight: 600; color: var(--ink-soft); text-align: left; }
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) tbody td.woocommerce-orders-table__cell-order-actions { justify-content: flex-start; }
	.p-commerce .woocommerce :not(.cart_totals) > table.shop_table_responsive:not(.cart) tbody td.woocommerce-orders-table__cell-order-actions::before { content: none; }

	.p-commerce .woocommerce form.checkout_coupon .form-row-first { width: calc(100% - 116px); }
	.p-commerce .woocommerce form.checkout_coupon .form-row-last { width: 100px; }
	.p-commerce form.woocommerce-checkout #order_review_heading { padding: 22px 18px 4px; }
	.p-commerce form.woocommerce-checkout #order_review { padding: 0 18px 22px; }

	.p-commerce .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
	.p-commerce .woocommerce .woocommerce-MyAccount-navigation { margin: 0 calc(-1 * var(--gutter)) 24px; }
	.p-commerce .woocommerce .woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
	.p-commerce .woocommerce .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.p-commerce .woocommerce .woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
	.p-commerce .woocommerce .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); border-color: var(--ink); color: var(--milk); }
	.p-commerce .woocommerce :is(.woocommerce-columns--addresses, .woocommerce-Addresses, #customer_login) { grid-template-columns: minmax(0, 1fr); }
	.p-order-done .wc-block-order-confirmation-address-wrapper { flex-direction: column; }
}
