/* The basket and checkout share the same native WooCommerce forms. */
body.sj-site.sj-checkout-page {
    --sj-ink: #17313c;
    --sj-deep: #244956;
    --sj-paper: #faf8f2;
    --sj-line: #d9d6ca;
    --sj-gold: #b58f51;
    --rfs-accent: var(--sj-ink);
    --rfs-accent-dark: #102833;
}
body.sj-site.sj-checkout-page .article--main > .article__content {
    padding-top: clamp(24px, 3vw, 44px) !important;
}
body.sj-checkout-page .sj-order-intro {
    padding-bottom: clamp(18px, 2.2vw, 30px);
    margin-bottom: 22px;
}
body.sj-checkout-page .sj-order-intro__top { margin-bottom: 10px; }
body.sj-site.sj-checkout-page .sj-order-intro h1 {
    font-size: clamp(33px, 4.2vw, 60px);
    line-height: 1.07;
    letter-spacing: -.042em !important;
    text-wrap: balance;
}
body.sj-checkout-page .sj-order-lead { color: #536166; font-size: 15px; line-height: 1.6; }
body.sj-site.sj-checkout-page .sj-order-menu,
body.sj-site.sj-cart-checkout .sj-basket__heading a {
    font-size: 14px;
    font-weight: 650;
    min-height: 44px;
}
body.sj-site.sj-cart-checkout .sj-basket__heading { margin-bottom: 12px; align-items: center; }
body.sj-cart-checkout .woocommerce-cart-form {
    background: #fffefa;
    border-color: var(--sj-line);
    box-shadow: 0 4px 18px rgba(15, 43, 52, .035);
}
body.sj-checkout-page form .form-row label,
body.sj-checkout-page .sj-time-picker .sj-time-field > label {
    color: #243b42;
    font-size: 14px;
    font-weight: 650;
}
body.sj-checkout-page form .form-row .optional { font-size: 12px; color: #586368; }
body.sj-checkout-page .rfs-switch legend { font-size: 16px; }
body.sj-checkout-page .rfs-option__label { font-size: 15px; }
body.sj-checkout-page .rfs-switch__pickup-notice,
body.sj-checkout-page #payment .payment_box p,
body.sj-checkout-page .sj-time-picker .sj-time-instruction,
body.sj-checkout-page .sj-time-picker .sj-time-summary { font-size: 14px; line-height: 1.55; }
body.sj-checkout-page .sj-time-picker:not(.sj-time-picker--invalid) .sj-time-summary { color: #29414a; }
body.sj-checkout-page .rfs-switch__pickup-notice,
body.sj-checkout-page .sj-time-picker .sj-time-instruction { color: #526267; }
body.sj-checkout-page #payment .woocommerce-privacy-policy-text { font-size: 13px; line-height: 1.65; }
body.sj-checkout-page #payment ul.payment_methods li > label { font-size: 14px; }
body.sj-checkout-page .woocommerce .button,
body.sj-checkout-page .woocommerce input[type="submit"] {
    font-size: 14px !important;
    text-transform: none !important;
}
body.sj-checkout-page #payment #place_order { min-height: 52px; font-size: 16px !important; }
body.sj-site.sj-checkout-page #order_review .order-total > * {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 730;
    border-top: 2px solid #b9a47b;
}
body.sj-checkout-page #order_review table th,
body.sj-checkout-page #order_review table td { font-size: 14px; }
body.sj-checkout-page #order_review table thead th,
body.sj-cart-checkout .woocommerce-cart-form table th { color: #635435; font-size: 12px; }
body.sj-cart-checkout .woocommerce-cart-form .product-name a { font-weight: 650; }
body.sj-cart-checkout .woocommerce-cart-form .amount { font-variant-numeric: tabular-nums; }
body.sj-site.sj-checkout-page .page__content :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #39677b !important;
    outline-offset: 2px;
}
body.sj-cart-checkout .sj-basket-coupon {
    float: left;
    max-width: 100%;
    padding: 0;
    text-align: left;
}
body.sj-cart-checkout .sj-basket-coupon > summary {
    width: fit-content;
    min-height: 44px;
    padding: 11px 4px;
    color: var(--sj-ink);
    font: 650 14px/1.55 var(--sj-font);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.sj-cart-checkout .sj-basket-coupon[open] > .coupon {
    float: none;
    margin: 4px 0 0;
}
@media (max-width: 600px) {
    body.sj-site.sj-checkout-page .article--main > .article__content { padding-top: 16px !important; }
    body.sj-checkout-page .sj-order-intro__top { margin-bottom: 4px; }
    body.sj-checkout-page .sj-order-lead { font-size: 14px; }
    body.sj-cart-checkout .sj-basket { margin-bottom: 22px; }
    body.sj-cart-checkout .sj-basket__heading { flex-wrap: wrap; gap: 2px 10px; }
    body.sj-cart-checkout .woocommerce-cart-form table td.actions { padding-top: 8px; }
    body.sj-cart-checkout .sj-basket-coupon { float: none; }
    body.sj-cart-checkout .sj-basket-coupon[open] > .coupon { margin-bottom: 12px; }
    body.sj-cart-checkout .woocommerce-cart-form table tr.cart_item > .product-price { font-size: 13px; }
    body.sj-checkout-page .woocommerce-billing-fields,
    body.sj-checkout-page .woocommerce-additional-fields,
    body.sj-checkout-page #order_review { padding-inline: clamp(14px, 4vw, 20px); }
    body.sj-checkout-page .rfs-switch,
    body.sj-checkout-page .rfs-switch__pickup-notice { margin-bottom: 15px; }
    body.sj-checkout-page .rfs-switch { padding-bottom: 16px; }
}
