/*
 * YBLK Restaurant Plug — classic WooCommerce Checkout.
 * Scoped to body.woocommerce-checkout and the shortcode checkout form.
 * The active theme continues to provide the font family and base typography.
 */

body.woocommerce-checkout:not(.woocommerce-order-received) {
    --yblkrest-checkout-page-max-width: none;
    --yblkrest-checkout-shell-radius: 32px;
    --yblkrest-checkout-card-radius: 22px;
    --yblkrest-checkout-input-radius: 9px;
    --yblkrest-checkout-border: rgba(45, 42, 38, 0.09);
    --yblkrest-checkout-surface: #ffffff;
    --yblkrest-checkout-soft-surface: #f3f3f1;
    --yblkrest-checkout-softer-surface: #f8f8f6;
    --yblkrest-checkout-accent: #ebe4d3;
    --yblkrest-checkout-accent-hover: #e0d7c2;
    --yblkrest-checkout-heading: #1f1f1f;
    --yblkrest-checkout-text: #1f1f1f;
    --yblkrest-checkout-muted: #8a8882;
    --yblkrest-checkout-danger: #e45b56;
    --yblkrest-checkout-focus: rgba(45, 42, 38, 0.32);
    --yblkrest-checkout-shadow: 0 16px 40px rgba(31, 27, 23, 0.07);
    color: var(--yblkrest-checkout-text);
}

body.woocommerce-checkout:not(.woocommerce-order-received)::before {
    display: none;
    content: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title,
body.woocommerce-checkout:not(.woocommerce-order-received) h1.wp-block-post-title {
    display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce {
    width: min(calc(100vw - 32px), var(--yblkrest-checkout-page-max-width));
    margin: 34px auto 58px;
    box-sizing: border-box;
}

@media (min-width: 981px) {
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce {
        width: 80vw;
        max-width: 80vw;
    }

    /*
     * Keep the header/template parts on the theme's default width.
     * Only the checkout content shell should override the constrained layout.
     */
    body.woocommerce-checkout:not(.woocommerce-order-received) main.wp-block-group.has-global-padding.is-layout-constrained,
    body.woocommerce-checkout:not(.woocommerce-order-received) #wp--skip-link--target.wp-block-group.has-global-padding.is-layout-constrained {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) main.wp-block-group.has-global-padding.is-layout-constrained > .alignwide,
    body.woocommerce-checkout:not(.woocommerce-order-received) #wp--skip-link--target.wp-block-group.has-global-padding.is-layout-constrained > .alignwide,
    body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content.alignwide.wp-block-post-content.is-layout-flow,
    body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-post-content.alignwide.is-layout-flow {
        width: 80vw !important;
        max-width: 80vw !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr) 400px !important;
        column-gap: 20px !important;
    }
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-notices-wrapper,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-message,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-error,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info {
    width: 100%;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    grid-template-areas:
        'customer review';
    align-items: start;
    column-gap: 24px;
    row-gap: 0;
    width: 100%;
    margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > #customer_details {
    grid-area: customer;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > #order_review_heading {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > #order_review {
    grid-area: review;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > .wc-block-components-express-payment,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > .wc-stripe-banner-checkout,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > .express-checkout {
    grid-column: 1;
}

/* Left column shell. */
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details {
    width: 100%;
    box-sizing: border-box;
    background: var(--yblkrest-checkout-surface);
    box-shadow: var(--yblkrest-checkout-shadow);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details {
    padding: 28px 28px 30px;
    border-radius: var(--yblkrest-checkout-shell-radius);
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .yblkrest-checkout-payment-slot {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
    box-sizing: border-box;
    border-radius: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details::after,
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details::before {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-1 {
    float: none;
    width: 100%;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-2 {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields > h3 {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper::before,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper::after {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-page form .form-row,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row-wide,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .yblkrest-checkout-section {
    grid-column: 1 / -1;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row-first,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row-last {
    grid-column: auto;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-section {
    margin-top: 8px !important;
    padding-top: 2px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-section:first-child {
    margin-top: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-section h2,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-payment-heading {
    margin: 0;
    color: var(--yblkrest-checkout-heading);
    font-size: clamp(22px, 2.15vw, 29px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-section h2 {
    padding: 10px 0 4px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-payment-heading {
    margin: 10px 0 18px;
}

/* Form controls. */
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row > label,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-field > label {
    display: block;
    margin: 0 0 6px;
    color: var(--yblkrest-checkout-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .required {
    border: 0;
    color: var(--yblkrest-checkout-danger);
    text-decoration: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input[type='text'],
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input[type='tel'],
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input[type='email'],
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input[type='date'],
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input[type='time'],
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input[type='number'],
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout select,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: var(--yblkrest-checkout-input-radius);
    outline: 0;
    background: var(--yblkrest-checkout-soft-surface);
    box-shadow: none;
    color: var(--yblkrest-checkout-heading);
    font: inherit;
    font-size: 15px;
    line-height: 1.25;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout textarea {
    min-height: 78px;
    resize: vertical;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .select2-container {
    width: 100% !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .select2-container .select2-selection--single {
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--yblkrest-checkout-input-radius);
    background: var(--yblkrest-checkout-soft-surface);
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .input-text:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout select:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout textarea:hover {
    background: #eeeeec;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .input-text:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout input:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout select:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout textarea:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout button:focus-visible,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout a:focus-visible {
    border-color: var(--yblkrest-checkout-focus);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(45, 42, 38, 0.12);
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-invalid .input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-invalid input,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-invalid select,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-invalid textarea {
    border-color: var(--yblkrest-checkout-danger);
    box-shadow: 0 0 0 2px rgba(228, 91, 86, 0.11);
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-validated .input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-validated input,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-validated select,
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-validated textarea {
    border-color: rgba(45, 42, 38, 0.12);
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .is-yblkrest-hidden {
    display: none !important;
}

/* Delivery / pickup segmented control. */
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    width: min(100%, 460px);
    padding: 3px;
    border-radius: 10px;
    background: #e8e8e6;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-button {
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--yblkrest-checkout-heading);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-button.is-active {
    background: var(--yblkrest-checkout-accent);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-button:disabled,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-button[aria-disabled='true'] {
    opacity: 0.42;
    cursor: not-allowed;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-note {
    margin: 7px 0 0;
    color: var(--yblkrest-checkout-muted);
    font-size: 12px;
    line-height: 1.35;
}

/* ASAP switch. */
body.woocommerce-checkout:not(.woocommerce-order-received) #_yblkrest_delivery_asap_field {
    min-height: 34px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    cursor: pointer;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    text-align: left;
    line-height: 1.2;
    position: static;
    top: auto;
    margin-left: 0;
    letter-spacing: 0.01em;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__control {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 46px;
    min-width: 46px;
    height: 24px;
    min-height: 24px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(45, 42, 38, 0.42);
    border-radius: 999px;
    background-color: #ffffff;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__track::after {
    position: absolute;
    top: 50%;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6a6a6a;
    box-shadow: none;
    content: '';
    transform: translateY(-50%);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__input:checked + .yblkrest-asap-toggle__track {
    border-color: rgba(45, 42, 38, 0.42);
    background-color: #ffffff;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__input:checked + .yblkrest-asap-toggle__track::after {
    transform: translate(22px, -50%);
    background: #6a6a6a;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle:hover .yblkrest-asap-toggle__track {
    border-color: rgba(45, 42, 38, 0.56);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-asap-toggle__input:focus-visible + .yblkrest-asap-toggle__track {
    outline: 2px solid var(--yblkrest-checkout-focus);
    outline-offset: 2px;
}

/* Coupon and cutlery. */
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    min-width: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-control .input-text {
    border-radius: var(--yblkrest-checkout-input-radius) 0 0 var(--yblkrest-checkout-input-radius);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-button {
    min-width: 112px;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 0 var(--yblkrest-checkout-input-radius) var(--yblkrest-checkout-input-radius) 0;
    background: #dededb;
    color: var(--yblkrest-checkout-heading);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-button:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-button:focus {
    background: #d2d2ce;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-status {
    min-height: 0;
    margin-top: 5px;
    color: var(--yblkrest-checkout-danger);
    font-size: 12px;
    line-height: 1.35;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-status:empty {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-status .woocommerce-message,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-status .woocommerce-error,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-status .woocommerce-info {
    margin: 0;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-cutlery-counter {
    display: inline-grid;
    grid-template-columns: 38px minmax(48px, 70px) 38px;
    align-items: center;
    min-height: 48px;
    border-radius: 999px;
    background: var(--yblkrest-checkout-soft-surface);
    overflow: hidden;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-cutlery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yblkrest-checkout-heading);
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-cutlery-button:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-cutlery-button:focus {
    background: rgba(45, 42, 38, 0.06);
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .yblkrest-cutlery-input {
    width: 100%;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    -moz-appearance: textfield;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-cutlery-input::-webkit-outer-spin-button,
body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-cutlery-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* Payment methods and place-order button. */
body.woocommerce-checkout:not(.woocommerce-order-received) #payment {
    margin: 0;
    border-radius: 0;
    background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods li {
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid var(--yblkrest-checkout-border);
    border-radius: 12px;
    background: var(--yblkrest-checkout-softer-surface);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods li > label {
    color: var(--yblkrest-checkout-heading);
    font-weight: 700;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods li img {
    max-height: 28px;
    width: auto;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment div.payment_box {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 9px;
    background: #ececea;
    color: var(--yblkrest-checkout-text);
    font-size: 13px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment div.payment_box::before {
    border-bottom-color: #ececea;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment .place-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment .woocommerce-privacy-policy-text,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment .woocommerce-terms-and-conditions-wrapper {
    align-self: stretch;
    color: var(--yblkrest-checkout-muted);
    font-size: 12px;
    line-height: 1.45;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: min(100%, 320px);
    min-height: 58px;
    margin: 18px auto 0;
    padding: 14px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--yblkrest-checkout-accent);
    color: var(--yblkrest-checkout-heading);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order:hover,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order:focus {
    background: var(--yblkrest-checkout-accent-hover);
    color: var(--yblkrest-checkout-heading);
    transform: translateY(-1px);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order:disabled,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order.disabled {
    background: #e7e5df;
    color: #9b9993;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}

/* Right order-review card. */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    position: sticky;
    top: 24px;
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 48px);
    padding: 14px;
    border: 0;
    border-radius: var(--yblkrest-checkout-card-radius);
    background: var(--yblkrest-checkout-surface);
    box-shadow: var(--yblkrest-checkout-shadow);
    overflow: auto;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table thead {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table tbody,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table tfoot {
    display: block;
    width: 100%;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tr.cart_item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    padding: 12px;
    border: 0;
    border-radius: 18px;
    background: var(--yblkrest-checkout-soft-surface);
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tr.cart_item:last-child {
    margin-bottom: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tr.cart_item td {
    padding: 0;
    border: 0;
    background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-name {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 4px 12px;
    min-width: 0;
    color: var(--yblkrest-checkout-heading);
    font-size: 0;
    line-height: 1.2;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-media {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: block;
    width: 96px;
    height: 96px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 14px;
    object-fit: cover;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-title {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    color: var(--yblkrest-checkout-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-title a {
    color: inherit;
    text-decoration: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-grams {
    display: block;
    margin-top: 4px;
    color: var(--yblkrest-checkout-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-quantity {
    grid-column: 2;
    grid-row: 2;
    color: var(--yblkrest-checkout-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-name dl.variation,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-name .wc-item-meta {
    grid-column: 2;
    grid-row: 3;
    margin: 2px 0 0;
    color: var(--yblkrest-checkout-muted);
    font-size: 11px;
    line-height: 1.3;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-name dl.variation dt,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-name dl.variation dd {
    float: none;
    display: inline;
    margin: 0 3px 0 0;
    padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-total {
    align-self: end;
    justify-self: end;
    padding-bottom: 3px;
    color: var(--yblkrest-checkout-heading);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    padding: 3px 2px;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot th,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yblkrest-checkout-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot td {
    text-align: right;
    white-space: normal;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot tr.order-total {
    margin-top: 5px;
    padding-top: 8px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot tr.order-total th,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot tr.order-total td {
    color: var(--yblkrest-checkout-heading);
    font-size: 15px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tfoot tr.order-total .amount {
    font-size: 17px;
    font-weight: 800;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
    list-style: none;
    text-transform: none;
}

body.yblkrest-checkout-enhanced.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-methods li {
    display: none;
}

body.yblkrest-checkout-enhanced.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-methods li:has(> input.shipping_method:checked),
body.yblkrest-checkout-enhanced.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-methods li:has(> input.shipping_method[type='hidden']) {
    display: block;
}

body.yblkrest-checkout-enhanced.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-methods .shipping_method {
    display: none;
}

body.yblkrest-checkout-enhanced.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-methods label {
    display: inline;
    margin: 0;
    color: var(--yblkrest-checkout-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    cursor: default;
}

body.yblkrest-checkout-enhanced.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-shipping-price .amount {
    color: var(--yblkrest-checkout-muted);
    font-weight: 700;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-free-delivery-notice {
    display: none;
    width: min(100%, 460px);
    margin: 8px 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--yblkrest-checkout-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-transform: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-free-delivery-notice.is-visible {
    display: block;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-free-delivery-notice:empty {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-destination,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-shipping-calculator {
    display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-remove-coupon {
    display: inline-block;
    margin-left: 6px;
    color: var(--yblkrest-checkout-danger);
    font-size: 11px;
    text-transform: none;
    text-decoration: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .includes_tax,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .tax_label {
    display: block;
    color: var(--yblkrest-checkout-muted);
    font-size: 10px;
    font-weight: 500;
    text-transform: none;
}

/* WooCommerce notices and loading state. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-message,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-error {
    margin: 0 0 16px;
    padding: 13px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--yblkrest-checkout-surface);
    box-shadow: 0 8px 24px rgba(31, 27, 23, 0.05);
    font-size: 13px;
    line-height: 1.45;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-error {
    color: #9f3c38;
    box-shadow: inset 4px 0 0 var(--yblkrest-checkout-danger), 0 8px 24px rgba(31, 27, 23, 0.05);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-message {
    color: #376a3d;
    box-shadow: inset 4px 0 0 #6d9b72, 0 8px 24px rgba(31, 27, 23, 0.05);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .blockUI.blockOverlay {
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72) !important;
    opacity: 1 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-login,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-coupon {
    border-radius: 16px;
    background: var(--yblkrest-checkout-surface);
}

/* Account creation fields remain compatible when enabled. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-account-fields {
    grid-column: 1 / -1;
    margin-top: 8px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-account-fields .create-account {
    margin: 0 0 12px;
}

/* Tablet and mobile. */
@media (max-width: 980px) {
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'customer'
            'review';
        row-gap: 0;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        position: static;
        max-height: none;
        margin-top: 20px;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    body.woocommerce-checkout:not(.woocommerce-order-received)::before {
        display: none;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce {
        width: calc(100% - 16px);
        margin-top: 16px;
        margin-bottom: 32px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details {
        padding: 18px 16px 20px;
        border-radius: 20px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .yblkrest-checkout-payment-slot {
        padding: 4px 0 0;
        border-radius: 0;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row-first,
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row-last,
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .form-row-wide {
        grid-column: 1;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-section h2,
    body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-payment-heading {
        font-size: 22px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-receiving-switcher {
        width: 100%;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-control {
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) .yblkrest-checkout-coupon-button {
        min-width: 0;
        padding-inline: 8px;
        font-size: 11px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        margin-top: 14px;
        padding: 10px;
        border-radius: 20px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tr.cart_item {
        padding: 10px;
        border-radius: 15px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-name {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 4px 9px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-media {
        width: 80px;
        height: 80px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .yblkrest-checkout-item-title {
        font-size: 12px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review td.product-total {
        font-size: 13px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order {
        width: 100%;
        min-height: 54px;
    }
}
