/* Customer service pages and native WooCommerce forms. */
.commerce-page, .document {
    --service-paper: #f5f5f7;
    --service-panel: #fff;
    --service-ink: #1d1d1f;
    --service-muted: #56565b;
    --service-line: #d9d9dd;
    --service-control: #85858a;
    --service-blue: #0066cc;
    --service-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --service-pad: clamp(1.15rem, 2.4vw, 2.15rem);
    color: var(--service-ink);
    font-family: var(--service-font);
    padding-block: clamp(2.75rem, 5.6vw, 5.75rem);
}
.commerce-page { max-width: 1200px; }
.commerce-page > header, .document > header { border: 0; padding: 0; }
.commerce-page > header h1, .document > header h1 {
    color: var(--service-ink);
    font: 600 clamp(2.65rem, 4.8vw, 4.4rem)/1.04 var(--service-font);
    letter-spacing: -.05em;
    margin: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.commerce-page > header { margin-bottom: clamp(1.8rem, 3vw, 3rem); }
.commerce-content, .commerce-content form, .commerce-content .woocommerce { min-width: 0; }
.commerce-content .woocommerce { color: var(--service-ink); font-family: var(--service-font); }
.commerce-content .woocommerce :is(h2, h3), .document .document-copy h2 {
    color: var(--service-ink);
    font: 600 clamp(1.3rem, 2.05vw, 1.85rem)/1.16 var(--service-font);
    letter-spacing: -.035em;
    margin: 0 0 1rem;
}
.commerce-content .woocommerce :is(p, address) { overflow-wrap: anywhere; }
.commerce-content .woocommerce a:not(.button, .remove), .document .document-copy a {
    color: var(--service-blue);
    text-underline-offset: .2em;
}
.commerce-page :is(a, button, input, select, textarea, .select2-selection):focus-visible,
.document a:focus-visible { outline: 3px solid var(--service-blue); outline-offset: 3px; }
.commerce-content .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
    color: var(--service-ink);
    background: var(--service-paper);
    border: 0;
    border-radius: 14px;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}
.commerce-content .woocommerce :is(.woocommerce-info, .woocommerce-message)::before { color: var(--service-blue); }
.commerce-content .woocommerce .woocommerce-error { background: #faf0f1; }
.commerce-content .woocommerce .woocommerce-error::before { color: #a02c36; }

/* Classic WooCommerce uses labels and input wrappers for both checkout and account details. */
.commerce-content .woocommerce form .form-row { margin: 0 0 1.1rem; padding: 0; }
.commerce-content .woocommerce form .form-row label {
    color: var(--service-ink);
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: .35rem;
}
.commerce-content .woocommerce form .form-row :is(input.input-text, select, textarea),
.commerce-content .woocommerce .coupon input.input-text, .commerce-content .woocommerce .quantity input.qty,
.commerce-content .select2-container .select2-selection--single {
    background-color: var(--service-panel);
    border: 1px solid var(--service-control);
    border-radius: 10px;
    color: var(--service-ink);
    font: 400 1rem/1.4 var(--service-font);
    min-height: 48px;
    padding: .68rem .85rem;
    box-shadow: none;
}
.commerce-content .woocommerce form .form-row textarea { min-height: 6.5rem; resize: vertical; }
.commerce-content .woocommerce form .form-row input::placeholder,
.commerce-content .woocommerce form .form-row textarea::placeholder { color: var(--service-muted); opacity: 1; }
.commerce-content .select2-container .select2-selection--single { height: auto; display: flex; align-items: center; }
.commerce-content .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--service-ink); line-height: 1.4; padding-inline: 0 1.5rem;
}
.commerce-content .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); }
.commerce-content .select2-container { max-width: 100%; }
.commerce-content .select2-container--focus .select2-selection--single,
.commerce-content .select2-container--open .select2-selection--single { border-color: var(--service-blue); }
/* SelectWoo mounts its open list directly under the body. */
body:has(.commerce-page) > .select2-container .select2-dropdown {
    color: #1d1d1f; background: white; border: 1px solid #85858a; border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 6px 20px #1d1d1f15;
}
body:has(.commerce-page) > .select2-container .select2-search__field {
    color: #1d1d1f; background: white; border: 1px solid #85858a; border-radius: 7px;
    font: inherit; min-height: 40px;
}
body:has(.commerce-page) > .select2-container .select2-results__option { padding: .62rem .75rem; }
body:has(.commerce-page) > .select2-container .select2-results__option--highlighted {
    background: #0066cc; color: white;
}
.commerce-content .woocommerce form .woocommerce-invalid :is(input.input-text, select, textarea, .select2-selection) {
    border-color: #a02c36;
}
.commerce-content .woocommerce input:is([type=checkbox], [type=radio]) { accent-color: var(--service-blue); }
.commerce-content .woocommerce form label:is(.woocommerce-form__label-for-checkbox, .checkbox),
.commerce-content .woocommerce #payment li > label { display: inline; line-height: 1.5; }
.commerce-content .woocommerce :is(a.button, button.button, input.button) {
    background: var(--service-paper);
    border: 1px solid var(--service-line);
    border-radius: 999px;
    color: var(--service-ink);
    font: 500 1rem/1.25 var(--service-font);
    min-height: 44px;
    padding: .72rem 1.25rem;
    text-align: center;
}
.commerce-content .woocommerce :is(a.button, button.button, input.button):hover { background: #e8e8ed; color: var(--service-ink); }
.commerce-content .woocommerce :is(.button.alt, .woocommerce-form-login__submit, .woocommerce-form-register__submit) {
    background: var(--service-blue); border-color: var(--service-blue); color: #fff;
}
.commerce-content .woocommerce :is(.button.alt, .woocommerce-form-login__submit, .woocommerce-form-register__submit):hover {
    background: #0054aa; border-color: #0054aa; color: #fff;
}
.commerce-content .woocommerce :is(button.button, input.button):disabled { cursor: default; opacity: .55; }

/* Cart, order review, order history and receipt. */
.commerce-content .woocommerce table.shop_table {
    width: 100%;
    margin: 0 0 1rem;
    background: var(--service-panel);
    border: 0;
    border-collapse: collapse;
    border-radius: 0;
    font-variant-numeric: tabular-nums;
}
.commerce-content .woocommerce table.shop_table :is(th, td) {
    border-color: var(--service-line);
    padding: .85rem clamp(.5rem, 1vw, 1rem);
    vertical-align: middle;
}
.commerce-content .woocommerce table.shop_table thead th {
    background: transparent; color: var(--service-muted);
    font: 500 .86rem/1.4 var(--service-font);
}
.commerce-content .woocommerce .amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.commerce-content .woocommerce table .product-name { overflow-wrap: anywhere; }
.commerce-content .woocommerce table .product-name a { color: var(--service-ink); font-weight: 600; }
.commerce-content .woocommerce .product-thumbnail img { width: 72px; max-width: none; border: 0; border-radius: 12px; }
.commerce-content .woocommerce table.cart .product-remove a.remove {
    display: inline-grid; place-items: center; min-width: 36px; min-height: 44px;
    color: var(--service-muted) !important; border-radius: 999px; font-size: 1.45rem;
}
.commerce-content .woocommerce table.cart .product-remove a.remove:hover {
    color: #9b2632 !important; background: #fcf0f0;
}
.commerce-content .woocommerce .quantity input.qty { width: 4.6rem; padding-inline: .45rem; }
.commerce-content .woocommerce :is(dl.variation, .woocommerce-shipping-destination) {
    font-size: .9rem; color: var(--service-muted); margin-block: .27rem;
}
.commerce-content .woocommerce table.cart td.actions { padding: 1.1rem 0; background: transparent; }
.commerce-content .woocommerce table.cart td.actions .coupon {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.commerce-content .woocommerce table.cart td.actions .coupon input.input-text { width: 9rem; margin: 0; }
.commerce-content .woocommerce form.checkout_coupon {
    max-width: 42rem; margin: 0 0 1.5rem; padding: var(--service-pad);
    border: 0; border-radius: 18px; background: var(--service-paper);
}
.commerce-content .woocommerce form.checkout_coupon > p:first-child { margin: 0 0 .8rem; }
.commerce-content .woocommerce form.checkout_coupon .form-row { margin-bottom: .5rem; }
.commerce-content .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; }
.commerce-content .woocommerce .cart_totals, .commerce-content .woocommerce #order_review {
    border: 0;
    background: var(--service-paper);
    border-radius: 22px;
    padding: var(--service-pad);
}
.commerce-content .woocommerce :is(.cart_totals, #order_review) table.shop_table {
    border: 0; background: transparent; margin: 0 0 1rem;
}
.commerce-content .woocommerce :is(.cart_totals, #order_review) table.shop_table :is(th, td) {
    background: transparent; padding-inline: 0;
}
.commerce-content .woocommerce :is(.cart_totals, #order_review) table.shop_table tr > :last-child {
    padding-inline-start: .7rem; text-align: end;
}
.commerce-content .woocommerce :is(.cart_totals, #order_review) table .order-total :is(th, td) {
    color: var(--service-ink); font-size: 1.2rem; border-top: 1px solid var(--service-line);
}
.commerce-content .woocommerce .wc-proceed-to-checkout { padding: 0; }
.commerce-content .woocommerce .wc-proceed-to-checkout .checkout-button { margin: 0; padding-block: .95rem; }
.commerce-content .woocommerce #payment { background: var(--service-panel); border-radius: 16px; }
.commerce-content .woocommerce #payment ul.payment_methods { padding: 1rem; border-bottom: 1px solid var(--service-line); }
.commerce-content .woocommerce #payment div.payment_box {
    padding: 0; margin: .5rem 0 0; color: var(--service-muted); background: transparent; font-size: .98rem; line-height: 1.45;
}
.commerce-content .woocommerce #payment div.payment_box::before { display: none; }
.commerce-content .woocommerce #payment .place-order { padding: 1rem; }
.commerce-content .woocommerce #payment #place_order { width: 100%; float: none; margin: .7rem 0 0; }
.commerce-content .woocommerce .woocommerce-privacy-policy-text { font-size: .93rem; color: var(--service-muted); }
.commerce-content .woocommerce ul#shipping_method li label { display: inline; }
.commerce-content .woocommerce ul#shipping_method li {
    margin: 0; padding-block: .3rem; line-height: 1.45; white-space: normal;
}

/* Accounts and receipts. */
.commerce-content .woocommerce form:is(.login, .register, .lost_reset_password), .commerce-content .woocommerce .woocommerce-EditAccountForm,
.commerce-content .woocommerce .woocommerce-address-fields {
    background: var(--service-paper);
    border: 0;
    border-radius: 22px;
    padding: var(--service-pad);
}
.commerce-content .woocommerce form:is(.login, .register, .lost_reset_password) { max-width: 38rem; margin: .8rem 0 1.7rem; }
.commerce-content .woocommerce form.lost_reset_password > p:first-child { margin: 0 0 1rem; }
.commerce-content .woocommerce .woocommerce-EditAccountForm legend { font-weight: 600; padding: 0; margin-bottom: .7rem; }
.commerce-content .woocommerce .woocommerce-EditAccountForm fieldset { margin: 1.4rem 0; border: 0; padding: 0; }
.commerce-content .woocommerce .woocommerce-MyAccount-navigation ul {
    background: var(--service-paper); border: 0; border-radius: 18px; padding: .5rem;
}
.commerce-content .woocommerce .woocommerce-MyAccount-navigation li + li { border: 0; }
.commerce-content .woocommerce .woocommerce-MyAccount-navigation a {
    color: var(--service-ink); min-height: 44px; border-radius: 11px;
}
.commerce-content .woocommerce .woocommerce-MyAccount-navigation a:hover { background: #e8e8ed; }
.commerce-content .woocommerce .woocommerce-MyAccount-navigation .is-active a {
    background: var(--service-panel); color: var(--service-blue);
}
.commerce-content .woocommerce .woocommerce-MyAccount-content { min-width: 0; }
.commerce-content .woocommerce .woocommerce-customer-details address,
.commerce-content .woocommerce .woocommerce-Address address {
    border: 0; border-radius: 16px; background: var(--service-paper);
    padding: 1rem; font-style: normal; line-height: 1.55;
}
.commerce-content .woocommerce .woocommerce-order-overview {
    display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; list-style: none;
    background: var(--service-paper); border: 0; border-radius: 18px; padding: 1.25rem;
}
.commerce-content .woocommerce .woocommerce-order-overview li {
    float: none; border: 0; margin: 0; padding: 0; color: var(--service-muted); text-transform: none;
}
.commerce-content .woocommerce .woocommerce-order-overview li strong { color: var(--service-ink); }

/* Keep long reading pages and short contact information comfortable on the same measure. */
.document {
    display: block;
    max-width: 55rem;
    border: 0;
}
.document > header { margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem); text-align: center; }
.document .document-copy {
    max-width: none;
    border: 0;
    border-radius: 24px;
    background: var(--service-paper);
    padding: clamp(1.3rem, 4.5vw, 4rem);
}
.document .document-copy :is(p, li, address) {
    color: var(--service-muted);
    font-size: clamp(1rem, 1.18vw, 1.1rem);
    line-height: 1.67;
    overflow-wrap: anywhere;
}
.document .document-copy h2 { margin: 0 0 .65rem; }
.document .document-copy p { margin: 0 0 .75rem; }
.document .document-copy > :last-child { margin-bottom: 0; }
.document .document-copy > h2:not(:first-child) { margin-top: clamp(1.75rem, 3vw, 2.8rem); }
.document .document-copy a { font-weight: 500; }

@media (min-width: 920px) {
    .commerce-content .woocommerce form.checkout {
        grid-template-columns: minmax(0, 1.2fr) minmax(22rem, .85fr);
        grid-template-rows: min-content 1fr;
        column-gap: clamp(1.75rem, 4.5vw, 5rem);
    }
    .commerce-content .woocommerce form.checkout #order_review_heading { margin-bottom: .7rem; }
}
@media (min-width: 1120px) {
    .commerce-content .woocommerce:has(> .woocommerce-cart-form) {
        display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(19rem, .9fr);
        gap: 1rem clamp(1.25rem, 2.7vw, 3rem); align-items: start;
    }
    .commerce-content .woocommerce:has(> .woocommerce-cart-form) > * { grid-column: 1/-1; }
    .commerce-content .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; }
    .commerce-content .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; }
}
@media (max-width: 919px) {
    .commerce-content .woocommerce .col2-set :is(.col-1, .col-2) { float: none; width: 100%; }
    .commerce-content .woocommerce #customer_details .col-2 { margin-top: 1rem; }
}
@media (max-width: 768px) {
    .commerce-page, .document { padding-block: 2.25rem 3.25rem; }
    .commerce-content .woocommerce table.cart .cart_item {
        display: grid; grid-template-columns: 55px minmax(0, 1fr) 38px;
        grid-template-areas: "photo name remove" "photo price price" ". quantity quantity" ". subtotal subtotal";
        gap: .25rem .8rem; padding: 1rem 0; border-bottom: 1px solid var(--service-line);
    }
    .commerce-content .woocommerce table.cart tr.cart_item > td {
        display: block; text-align: left !important; background: transparent; border: 0; padding: 0;
    }
    .commerce-content .woocommerce table.cart .cart_item .product-thumbnail { grid-area: photo; }
    .commerce-content .woocommerce table.cart .cart_item .product-thumbnail img { width: 55px; }
    .commerce-content .woocommerce table.cart .cart_item .product-name { grid-area: name; align-self: center; }
    .commerce-content .woocommerce table.cart .cart_item .product-remove { grid-area: remove; }
    .commerce-content .woocommerce table.cart .cart_item .product-price { grid-area: price; }
    .commerce-content .woocommerce table.cart .cart_item .product-quantity { grid-area: quantity; }
    .commerce-content .woocommerce table.cart .cart_item .product-subtotal { grid-area: subtotal; }
    .commerce-content .woocommerce table.cart .cart_item :is(.product-thumbnail, .product-name, .product-remove)::before { display: none; }
    .commerce-content .woocommerce table.cart .cart_item :is(.product-price, .product-quantity, .product-subtotal) {
        display: flex; justify-content: space-between; gap: .45rem; align-items: center; padding-block: .25rem;
    }
    .commerce-content .woocommerce table.cart .cart_item :is(.product-price, .product-quantity, .product-subtotal)::before {
        content: attr(data-title); color: var(--service-muted); font-weight: 500;
    }
    .commerce-content .woocommerce table.cart td.actions .coupon { float: none; padding: 0; margin-bottom: .65rem; }
    .commerce-content .woocommerce table.cart td.actions .coupon :is(input.input-text, button.button) {
        float: none; min-width: 0; width: auto; flex: 1 1 7rem;
    }
    .commerce-content .woocommerce table.cart td.actions > .button { width: 100%; }
    .commerce-content .woocommerce .cart-collaterals { margin-top: 1.25rem; }
    .commerce-content .woocommerce .woocommerce-MyAccount-navigation { margin-bottom: 1rem; }
}
@media (max-width: 520px) {
    .commerce-content .woocommerce form :is(.form-row-first, .form-row-last) { float: none; width: 100%; }
    .commerce-content .woocommerce :is(.cart_totals, #order_review) { padding: 1.05rem; border-radius: 18px; }
    .document .document-copy { border-radius: 18px; }
    .document > header { text-align: start; }
    .commerce-content .woocommerce #payment :is(ul.payment_methods, div.place-order) { padding: .85rem; }
    .commerce-content .woocommerce div.checkout form.login { padding: 1rem; }
}
@media (max-width: 359px) {
    .commerce-content .woocommerce table.cart td.actions .coupon :is(input.input-text, button.button) {
        flex-basis: 100%;
    }
}
