    #delivery_address_div {

        display: none;

        margin-bottom: 35px;

    }

    #delivery_address_div .input-group label {

        position: absolute;

        top: 45px;

    }

    @media screen and (max-width: 768px) {
        body button#paywith_btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 99999;
            left: 20px;
            width: calc(100% - 40px);
        }
    }

    /* Saved cards select2 SVG sizing */
    .saved-card-option svg,
    .saved-card-selection svg {
        width: 32px;
        height: 20px;
        vertical-align: middle;
    }

    .select2-results__option .saved-card-option,
    .select2-selection__rendered .saved-card-selection {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    body {
        font-size: 0;
    }
    body > * {
        font-size: 16px;
    }
    /* ===== Checkout redesign: stepper + step cards + sidebar ===== */
    .checkout-stepper {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 480px;
        margin: 0 auto 30px;
        padding: 0 10px;
    }
    .checkout-stepper .step-node {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 auto;
        cursor: default;
    }
    .checkout-stepper .step-node.clickable { cursor: pointer; }
    .checkout-stepper .step-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: transparent;
        border: 2px solid #cfd8dc;
        color: #90a4ae;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 22px;
        transition: all .2s ease;
    }
    .checkout-stepper .step-label {
        margin-top: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #90a4ae;
        white-space: nowrap;
        text-align: center;
    }
    .checkout-stepper .step-node.active .step-circle {
        background: #2699a6;
        border-color: #2699a6;
        color: #fff;
    }
    .checkout-stepper .step-node.active .step-label { color: #2699a6; }
    .checkout-stepper .step-node.completed .step-circle {
        background: #1BAE23;
        border-color: #1BAE23;
        color: #fff;
        position: relative;
    }
    .checkout-stepper .step-node.completed .step-circle:before { 
        content: "✓"; 
        position: absolute;
        background: #1BAE23;
        z-index: 999;
    }
    .checkout-stepper .step-node.completed .step-label { color: #1BAE23 !important; }
    .checkout-stepper .step-connector {
        flex: 1 1 auto;
        height: 2px;
        background: #d9e2e6;
        margin: 0 8px;
        margin-bottom: 20px;
        transition: background .2s ease;
    }
    .checkout-stepper .step-connector.completed { background: #1BAE23; }

    .checkout-step { animation: checkoutStepFade .25s ease; }
    @keyframes checkoutStepFade {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .checkout-step .card.card-body {
        border-radius: 14px;
        border: 1px solid #edf1f2;
        box-shadow: 0 2px 14px rgba(20,30,40,.06);
    }
    .checkout-step-nav {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
        gap: 24px;
        margin-top: 10px;
    }
    .checkout-step-nav .btn-back {
        background: transparent;
        color: #AAA;
        border-radius: 8px;
        padding: 18px;
        border: 2px solid #CDCDCD;
        text-decoration: none;
        font-weight: 600;
        font-size: 20px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
    }

    .checkout-step-nav > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .checkout-step-nav .btn-back:hover { background: #f4f6f7; }

    /* Review step */
    .review-block {
        border: 1px solid #edf1f2;
        border-radius: 12px;
        padding: 16px 18px;
        margin-bottom: 18px;
        background: #fbfcfc;
    }
    .review-block__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .review-block__header h6 { margin: 0; font-weight: 700; }
    .review-block__edit {
        font-size: 13px;
        font-weight: 600;
        color: #2699a6;
        cursor: pointer;
        text-decoration: underline;
    }
    .review-block__body {
        font-size: 18px;
        color: #3b4a52;
        line-height: 36px;
        padding-bottom: 20px;
        padding-top: 20px;
    }
    .review-block__body strong { color: #1b2528; }
    ul.review-block__list {
        list-style: none;
        padding: 20px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    ul.review-block__list li {
        display: flex;
        flex-direction: row;
        gap: 10px;
        font-weight: 600;
        font-size: 16px;
        line-height: 37px;
        letter-spacing: 0%;
        text-transform: capitalize;
        color: #6D6D6D;
        align-items: center;
    }

    /* Step 3 saved-card picker */
    .payment-picker__option {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 8px;
        border: 1px solid #e2e7e9;
        border-radius: 10px;
        padding: 14px 16px;
        margin-bottom: 10px;
        cursor: pointer;
        background: #fff;
        transition: border-color .15s ease, background .15s ease;
    }
    /* "Use a different Card" — a plain "+" affordance instead of a full
       bordered radio option, so it stays flex-row rather than inheriting
       the saved-card option's column layout above, and drops the border/
       background a selectable card option would otherwise get. */
    .payment-picker__option--new {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        border: none;
        background: none;
        padding: 8px 4px;
        margin-bottom: 4px;
        border-width: 2px;
        border-color: #2699a6;
        background: transparent;
        padding: 13px 15px;
        box-shadow: unset;
        border: 1px dashed #6D6D6D63;
        margin-bottom: 12px;
    }
    .payment-picker__option--new:hover { background: #f4f6f7; border-radius: 8px; }
    .payment-picker__option--new.is-selected {
        border: none;
        background: #f4f6f7;
        box-shadow: none;
        padding: 8px 4px;
        border-radius: 8px;
    }
    .payment-picker__option:hover { border-color: #b9dbe0; }
    /* Same light-teal tint already used for the entered-card summary box
       above, so the "selected" state reads consistently across this step. */
    /* Clearly marks which payment method will actually be charged — a
       thicker, more saturated border plus a soft glow, not just a color
       swap, so it can't be missed at a glance. border-width goes from 1px
       to 2px here, so padding drops 1px to compensate and avoid the box
       shifting/growing by a pixel when a card becomes selected. */
    .payment-picker__option.is-selected {
        border-width: 2px;
        border-color: #2699a6;
        background: transparent;
        padding: 13px 15px;
        box-shadow: unset;
        border: 1px dashed #6D6D6D63;
    }
    /* Same custom radio pattern already used by .payment-option-card
       elsewhere on this page, reused here for a consistent look instead of
       the browser's own default radio rendering. */
    .payment-picker__radio {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        margin: 0;
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        min-width: 20px;
        border: 2px solid #7c9aa1;
        background: #fff;
        border-radius: 50%;
        position: relative;
        cursor: pointer;
        transition: border-color 0.15s ease;
    }
    .payment-picker__radio:checked { border-color: #3DA8C3; }
    .payment-picker__radio::after {
        content: '';
        position: absolute;
        display: none;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #3DA8C3;
        transform: translate(-50%, -50%);
    }
    .payment-picker__radio:checked::after { display: block; }
    .payment-picker__brand svg, .payment-picker__brand img { height: 20px; width: auto; display: block; }
    .payment-picker__label { flex: 1 1 auto; font-size: 14px; color: #1b2528; }
    .payment-picker__row {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .payment-picker__text {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .payment-picker__title {
        font-size: 15px;
        font-weight: 700;
        color: #1b2528;
    }
    .payment-picker__subtitle {
        font-size: 13px;
        color: #7c8b93;
    }
    /* "Card Saved" badge — only ever shown on whichever saved card is
       currently selected, right in the same row as its brand/last4 (not a
       separate badges row above it any more). */
    .payment-picker__badge {
        display: none;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 700;
        padding: 3px 9px;
        border-radius: 999px;
        line-height: 1.6;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .payment-picker__option.is-selected .payment-picker__badge--saved {
        display: inline-flex;
    }
    .payment-picker__badge--saved {
        background: #eef6f8;
        color: #2699a6;
        border: 1px solid #3DA8C3;
    }
    /* A just-typed, not-yet-saved card that's collapsed into a summary row
       (see syncPaymentPicker() in shopping_cart.php) — worded/badged
       differently from "Card Saved" since nothing's actually persisted to
       the account yet, but visually the same weight since it's equally
       ready to be charged. Toggled directly by JS, not by .is-selected. */
    .payment-picker__badge--found {
        display: inline-flex;
        background: #eef6f8;
        color: #2699a6;
        border: 1px solid #3DA8C3;
    }
    /* States plainly, in words, which payment method the charge will
       actually use — kept in sync with whichever radio is checked so a
       returning customer never has to infer it from styling alone. */
    .payment-picker__charge-notice {
        font-size: 13px;
        color: #2699a6;
        background: #eef6f8;
        border: 1px solid #cfe8ee;
        border-radius: 8px;
        padding: 8px 12px;
        margin: 2px 0 10px;
    }
    .payment-picker__charge-notice:empty { display: none; }
    .payment-picker__menu {
        position: relative;
        flex: 0 0 auto;
        margin-left: auto;
        padding: 2px 8px;
        color: #7c8b93;
        font-weight: 700;
        cursor: pointer;
        border-radius: 6px;
    }
    .payment-picker__menu:hover { background: #f4f6f7; }
    .payment-picker__menu-dropdown {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 4px;
        background: #fff;
        border: 1px solid #e2e7e9;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
        z-index: 5;
        min-width: 140px;
        overflow: hidden;
    }
    .payment-picker__menu.open .payment-picker__menu-dropdown { display: block; }
    .payment-picker__edit,
    .payment-picker__delete,
    .payment-picker__edit-new {
        display: block;
        width: 100%;
        padding: 9px 14px;
        background: none;
        border: none;
        text-align: left;
        font-size: 13px;
        cursor: pointer;
    }
    .payment-picker__edit { color: #1b2528; }
    .payment-picker__edit:hover { background: #f4f6f7; }
    .payment-picker__delete { color: #c0392b; }
    .payment-picker__delete:hover { background: #fdf1ef; }
    /* Same look as .payment-picker__edit, deliberately a different class —
       a separate button so it doesn't also trigger the real saved-card
       "Edit Card" handler (which just points at delete+re-add, since that
       card's raw number was never stored). This one reopens genuinely
       editable raw fields that are still sitting in the DOM. */
    .payment-picker__edit-new { color: #1b2528; }
    .payment-picker__edit-new:hover { background: #f4f6f7; }
    /* The radio input itself is kept (not removed) so the existing
       selection/toggle/charge logic needs no changes — only its default
       appearance is replaced with a small teal "+" circle. */
    .payment-picker__option--new .payment-picker__radio {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 22px;
        height: 22px;
        min-width: 22px;
        border: none;
        border-radius: 50%;
        background: #eef6f8;
        color: #2699a6;
        position: relative;
        cursor: pointer;
    }
    .payment-picker__option--new .payment-picker__radio::after {
        content: '+';
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        font-size: 16px;
        font-weight: 700;
        color: #2699a6;
        background: none;
        border-radius: 0;
        width: auto;
        height: auto;
        transform: none;
    }
    .payment-picker__option--new .payment-picker__title { font-weight: 600; color: #2699a6; }
    /* Collapsed summary of an already-typed, not-yet-saved card (see
       syncPaymentPicker()) — looks like a normal selected card row (plain
       filled radio dot, dark bold title), not like the "+ Use a different
       Card" action link this same element renders the rest of the time. */
    .payment-picker__option--new.is-detected .payment-picker__radio {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 20px;
        height: 20px;
        min-width: 20px;
        border: 2px solid #3DA8C3;
        background: #fff;
        border-radius: 50%;
    }
    .payment-picker__option--new.is-detected .payment-picker__radio::after {
        content: '';
        display: block;
        position: absolute;
        inset: auto;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #3DA8C3;
        transform: translate(-50%, -50%);
        font-size: 0;
    }
    .payment-picker__option--new.is-detected .payment-picker__title { font-weight: 700; color: #1b2528; }
    .payment-picker__new-form {
        padding: 10px 0 4px;
        display: flex;
        flex-direction: column;
        gap: 15px;
     }
    .payment-picker__save-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }
    .payment-picker__save-btn {
        appearance: none;
        border: none;
        background: #2699a6;
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: 0.02em;
        padding: 10px 22px;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color .15s ease;
        flex: 0 0 auto;
    }
    .payment-picker__save-btn:hover { background: #21808c; }

    .checkout-secure {
        display: flex;
        align-items: center;
        gap: 30px;
        text-align: center;
        margin-top: 50px;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .checkout-secure h4 {
        font-weight: 600;
        font-size: 30px;
        line-height: 39px;
        letter-spacing: 0%;
        color: #383838;
    }
    /* Sidebar visual polish (existing IDs/classes untouched, purely additive) */
    #sidebar { border-radius: 0px; }
    #sidebar .sidebar_title_main { 
        padding-bottom: 12px;
        margin-bottom: 0;
        border-bottom: 2px solid #6D6D6D29;    
    }
    .checkout-secure-badge {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        border-radius: 15px;
        padding: 18px;
        margin-top: 16px;
        font-size: 16px;
        line-height: 30px;
        border: 1px solid #0370098C;
        background: #03700914;
        color: #6D6D6D;
    }
    .checkout-secure-badge strong {
        font-size: 18px;
        color: #383838;
    }
    .checkout-shipping-note {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        background: #E1F9FF;
        border: 1px solid #3DA8C3;
        border-radius: 15px;
        padding: 18px;
        margin-top: 20px;
        line-height: 30px;
        font-size: 16px;
        color: #6D6D6D;
    }
    .checkout-shipping-note .checkout_svg {
        background: #BBF1FF;
        border: 1px solid #3DA8C3;
        border-radius: 12px;
    }
    .checkout-shipping-note svg { flex: 0 0 auto; margin-top: 2px; }
    .checkout-shipping-note strong {
        font-size: 18px;
        color: #3DA8C3;
    }

    .checkout-help-banner {
        display: flex;
        align-items: stretch;
        background: #fff;
        border: 1px solid #CDCDCD;
        border-radius: 18px;
        padding: 24px;
        margin-top: 40px;
        gap: 24px;
    }
    .checkout-help-banner__item {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
    }
    .checkout-help-banner__icon {
        min-width: 48px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #CFEBF2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .checkout-help-banner__item strong {
        display: block;
        font-size: 20px;
        font-weight: 700;
        color: #383838;
    }
    .checkout-help-banner__item p {
        margin: 0;
        font-size: 16px;
        color: #6D6D6D;
    }
    .checkout-help-banner__item a {
        color: #3DA8C3;
        text-decoration: none;
    }
    .checkout-help-banner__divider {
        width: 1px;
        background: #8E8C8A;
    }
    @media (max-width: 575px) {
        .checkout-help-banner {
            flex-direction: column;
        }
        .checkout-help-banner__divider {
            width: 100%;
            height: 1px;
        }
    }

    /* ===================================================================
    Visual overhaul to match the supplied mockups. Everything below is
    scoped under .checkout-redesign so it can never leak onto other
    pages that reuse generic classes like .card, .form-group, .btn-primary.
    =================================================================== */

    /* ----- Hero band (dark) behind the title + stepper ----- */
    .checkout-hero {
        /*background: linear-gradient(180deg, #1c1f22 0%, #2b2f33 60%, #34383c 100%);*/
        padding: 34px 15px 70px;
        text-align: center;
    }
    .checkout-hero__title {
        color: #fff;
        font-size: 26px;
        font-weight: 700;
        margin: 0 0 22px;
        text-align: center;
    }
    .checkout-hero .checkout-stepper { margin-bottom: 0; }
    .checkout-hero .step-label { color: #c7ccd0; }
    .checkout-hero .step-node.active .step-label,
    .checkout-hero .step-node.completed .step-label { color: #fff; }
    .checkout-hero .step-circle { /* background: rgba(255,255,255,.08); */ border-color: #FFFFFFC4; color: #FFFFFFC4; }
    .checkout-hero .step-connector { background: rgba(255,255,255,.18); }

    /* ----- Cream body area, cards pulled up to overlap the hero ----- */
    .checkout-body-bg {
        background: #FCF4EA;
        padding-top: 0;
    }
    .checkout-redesign .row.mob_checkout { margin-top: -80px; }
    .checkout-redesign .container { max-width: 1280px; }

    .checkout-redesign .card.card-body {
        background: #fff;
        border: none;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(20,30,40,.08);
        padding: 28px 30px !important;
    }
    .checkout-redesign #sidebar {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: unset !important;
        padding: 0px !important;
    }
    .checkout-redesign .page_title.delivery_location_title,
    .checkout-redesign .page_title.payment_details { display: none; } /* stepper replaces these numbered headers */

    .checkout-redesign .delivery_location h6 { 
        font-weight: 600;
        font-style: normal;
        font-size: 32px;
        line-height: 39px;
        letter-spacing: 0%;
        color: #383838;
    }
    div#payment_picker {
        padding: 20px 0;
    }
    .checkout-redesign .card.card-body > h6:first-child { margin-top: 0; }

    /* ----- Form fields ----- */
    .checkout-redesign .textfield_main {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }
    .checkout-redesign .textfield_main > .form-group { flex: 1 1 200px; min-width: 0; }
    .checkout-redesign .form-group { margin-bottom: 16px; }
    .checkout-redesign .form-group label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: #52616b;
        margin-bottom: 6px;
    }
    .checkout-redesign .textfield_main .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        font-size: 16px;
        line-height: 37px;
        letter-spacing: 0%;
        text-align: left;
        text-transform: uppercase;
        color: #383838;
    }
    .checkout-redesign input[type="text"],
    .checkout-redesign input[type="email"],
    .checkout-redesign input[type="tel"],
    .checkout-redesign input[type="number"],
    .checkout-redesign input[type="password"],
    .checkout-redesign select,
    .checkout-redesign .form-control {
        width: 100%;
        border-radius: 13px;
        padding: 11px 14px;
        font-size: 18px;
        color: #1f2d33;
        background: #fff;
        box-shadow: 0px 7px 14px 0px #B0B0B040;
        min-height: 66px;
        border: 1.5px solid #CDCDCD !important;
        transition: border-color .15s ease, box-shadow .15s ease;
    }
    .checkout-redesign input:focus,
    .checkout-redesign select:focus,
    .checkout-redesign .form-control:focus {
        outline: none;
        border-color: #2699a6 !important;
        box-shadow: 0 0 0 3px rgba(38,153,166,.12) !important;
    }
    .checkout-redesign input.error:focus,
    .checkout-redesign select.error:focus,
    .checkout-redesign .form-control.error:focus,
    .checkout-redesign .invalid-highlight:focus {
        outline: none;
        border-color: red !important;
        box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .5) !important;
    }
    .checkout-redesign input.error,
    .checkout-redesign .invalid-highlight {
        border-color: red !important;
    }
    .checkout-redesign .field-error-message {
        color: #dc3545;
        font-size: 13px;
        margin-top: 6px;
        display: block;
    }
    .checkout-redesign input::placeholder { color: #a9b3ba; }
    .checkout-redesign .exp-wrapper { display: flex; gap: 24px; }

    /* ----- Checkout as Guest / Returning Customer toggle ----- */
    .usertype-toggle {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 22px;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid #3DA8C3;
        background: #CEF5FF96;
    }
    .usertype-option {
        flex: 1 1 220px;
        display: flex !Important;
        min-height: 110px;
        align-items: center;
        gap: 12px;
        border-radius: 12px;
        padding: 14px 16px;
        cursor: pointer;
        transition: border-color .15s ease, background-color .15s ease;
    }
    .usertype-option.active {
        position: relative;
    }
    .usertype-option.active:after {
        content: '';
        background: #8E8C8A;
        height: 74px;
        width: 1px;
        position: absolute;
        right: -1px;
    }
    .usertype-option__input {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
    .usertype-option__icon {
        flex: 0 0 auto;
        width: 41px; 
        height: 41px;
        border-radius: 50%;
        background: #eef2f4;
        color: #8a97a0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color .15s ease, color .15s ease;
    }
    .usertype-option__text { display: flex; flex-direction: column; gap: 2px; }
    .usertype-option__text strong { 
        font-weight: 600;
        font-size: 20px;
        line-height: 37px;
        letter-spacing: 0%;
        color: #383838;
     }
    .usertype-option__text small { 
        font-weight: 500;
        font-size: 18px;
        line-height: 37px;
        letter-spacing: 0%;
        color: #383838;
     }
    .usertype-signin-btn,
    #existing_user_login_submit {
        display: flex;
        margin-top: 3px;
        background: #2699a6;
        color: #fff;
        padding: 3px 14px;
        text-align: center;
        align-items: center;
        width: 116px;
        height: 37px;
        opacity: 1;
        border-radius: 7px;
        justify-content: center;
        font-weight: 600;
        font-size: 15px;
        line-height: 1;
    }
    .usertype-error-banner {
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid #f5c6cb;
        background: #f8d7da;
        color: #842029;
        border-radius: 8px;
        font-size: 13px;
    }

    /* ----- Warning banner on Shipping Address ----- */
    .checkout-warning-banner {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        background: #FFF5DE;
        border: 1px solid #D08E00;
        color: #6b5313;
        border-radius: 10px;
        padding: 13px 15px;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.5;
    }
    .checkout-warning-banner div.svg { 
        flex: 0 0 auto; 
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2px; 
        width: 49px;
        height: 49px;
        opacity: 1;
        border-radius: 11px;
        border: 1px solid #D08E00;
    }
    .checkout-warning-banner strong { 
        font-weight: 600;
        font-size: 18px;
        line-height: 37px;
        letter-spacing: 0%;
        color: #D08E00;
    }
    .checkout-warning-banner > div {
        font-weight: 500;
        font-size: 18px;
        line-height: 37px;
        letter-spacing: 0%;
        color: #6D6D6D;
    }

    /* ----- Primary buttons ----- */
    .checkout-redesign .btn.btn-primary.btn-block,
    .checkout-redesign #paywith_btn {
        background: #2699a6;
        border: none;
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        border-radius: 10px;
        padding: 14px 20px;
        box-shadow: 0 10px 24px rgba(38,153,166,.35);
        transition: background-color .15s ease, transform .1s ease;
    }
    /* Flex-center the lock icon (::before, further down) with the button's
       text - vertical-align alone left it sitting slightly off the text
       baseline (emoji glyphs don't share regular text's line metrics).
       Scoped to just this button, not the shared .btn-block rule above,
       since other buttons using that class don't have an icon to align. */
    .checkout-redesign #paywith_btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .checkout-redesign .btn.btn-primary.btn-block:hover,
    .checkout-redesign #paywith_btn:hover { background: #21808c; }
    .checkout-redesign .checkout-step-nav .btn.btn-primary.btn-block { flex: 1 1 auto; max-width: 280px; }
    #paywith_btn2 { display: none; }

    /* ----- Sidebar: cart items ----- */
    .checkout-redesign .sidebar_single_product {
        position: relative;
        padding: 14px 0;
        border-bottom: 1px solid #f0f2f3;
    }
    .checkout-redesign .sidebar_single_product:last-of-type { border-bottom: none; }
    .checkout-redesign .cart-item-name { 
        font-weight: 600 !important;
        font-size: 20px !important;
        line-height: 28px !important;
        letter-spacing: 0%;
        color: #383838 !important;
    }
    .checkout-redesign .cart-item-controls-row > a { position: absolute; top: 0; right: 0; opacity: .6; }
    .checkout-redesign .cart-item-controls-row > a:hover { opacity: 1; }

    .qty-stepper__label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }
    .qty-stepper__control {
        display: inline-flex;
        align-items: center;
        gap: 0;
        border: 1px solid #e2e6e9;
        border-radius: 8px;
        overflow: hidden;
        margin: 0;
    }
    .qty-stepper__btn {
        width: 24px;
        height: 42px;
        background: #f6f8f9;
        border: none;
        color: #52616b;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        border-right: 1px solid #C8C8C8;
        border-radius: 0;
        background: transparent;
    }
    button.qty-stepper__btn.qty-stepper__btn--inc {
        border-left: 1px solid #C8C8C8;
        border-right: 0px solid #C8C8C8;
    }
    .qty-stepper__btn:hover { background: #eaeef0; }
    body #sidebar .qty-stepper input.qtychange {
        width: 38px !important;
        border: none !important;
        text-align: center;
        font-weight: 600;
        padding: 0 !important;
        box-shadow: none !important;
        min-height: 42px !important;
        text-align: center !important;
    }

    /* ----- Sidebar panel titles (Your Cart / Promo Code / Order Summary) ----- */
    .checkout-panel-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #383838 !important;
        font-weight: 600 !important;
        font-size: 24px !important;
        line-height: 39px !important;
        letter-spacing: 0%;
        padding-bottom: 12px;
        margin-bottom: 0;
        border-bottom: 2px solid #6D6D6D29;
    }

    .checkout-redesign .more_item#chk_coupon_code {
        display: flex;
        gap: 8px;
        border: 0px none !important;
        margin: 0px !important;
    }
    .checkout-redesign .more_item#chk_coupon_code input#referral_code {
        flex: 1 1 auto;
    }
    .checkout-redesign .more_item#chk_coupon_code a#validate_coupon.btn-primary {
        background: #1f2d33;
        color: #fff;
        border-radius: 8px;
        padding: 12px 18px;
        font-weight: 600;
        font-size: 13px;
        white-space: nowrap;
        box-shadow: none;
    }
    .checkout-order-summary > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
    }
    .checkout-order-summary h3.sidebar_title {
        font-size: 13.5px;
        font-weight: 500;
        color: #52616b;
        margin: 0;
    }
    .checkout-order-summary .price { font-weight: 600; color: #1f2d33; font-size: 14px !important; }
    .checkout-order-summary__total {
        border-top: 1px solid #e2e6e9;
        margin-top: 4px;
    }
    .checkout-order-summary__total h3.sidebar_title,
    .checkout-order-summary__total .price { font-size: 16px !important; font-weight: 700 !important; color: #1f2d33; }

    .checkout-tracking-note {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        background: #fff;
        border: 1px solid #D4A849;
        border-radius: 15px;
        padding: 18px;
        margin-top: 16px;
        line-height: 30px;
        font-size: 15px;
        color: #383838;
    }
    .checkout-tracking-note .checkout_svg {
        background: #D4A84933;
        border: 0px none;
        border-radius: 11px;
    }
    .checkout-tracking-note strong {
        color: #D08E00;
    }

    .checkout-payment-icons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 16px;
    }
    .checkout-payment-icons img {
        width: 100%;
        max-width: 320px;
        margin: auto;
    }

    /* ── HERO ── */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: #383838ED;
        z-index: 0;
    }
    .hero > * {
        position: relative;
        z-index: 1;
    }
    .sectionTitle {
        font-weight: 500;
        font-size: 32px;
        line-height: 39px;
        letter-spacing: 0%;
        color: #383838;
        margin-bottom: 20px;
    }
    .custom-checkbox {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 600;
        font-size: 15px;
        color: #333;
    }

    .custom-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 28px;
        height: 28px;
        min-width: 28px;
        border: 2px solid #ccc;
        border-radius: 7px;
        background-color: #fff;
        position: relative;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }

    .custom-checkbox input[type="checkbox"]:checked {
        background-color: #3aa9c4;   /* teal from the screenshot */
        border-color: #3aa9c4;
    }

    /* Save-card checkbox with a title + explanatory subtitle, instead of a
       single line — the checkbox itself stays top-aligned with the title
       rather than vertically centered against both lines. */
    .payment-picker__checkbox-label { align-items: flex-start; }
    .payment-picker__checkbox-label input[type="checkbox"] { margin-top: 1px; }
    .payment-picker__checkbox-title { display: block; font-weight: 600; font-size: 15px; color: #333; }
    .payment-picker__checkbox-sub { display: block; font-weight: 400; font-size: 13px; color: #7c8b93; margin-top: 2px; }

    .custom-checkbox input[type="checkbox"]::after {
        content: '';
        position: absolute;
        display: none;
        left: 9px;
        top: 5px;
        width: 6px;
        height: 11px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .custom-checkbox input[type="checkbox"]:checked::after {
        display: block;
    }

    .checkout-redesign .form-group label.custom-checkbox {
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0%;
        text-transform: capitalize;
        color: #383838;
        align-items: center;
        display: flex;
    }

    a#continue_payment.btn,
    button#paywith_btn {
        width: 100%;
        border-radius: 13px !important;
        border: 3px solid #FFFFFF !important;
        padding: 20px !important;
        font-weight: 600 !important;
        font-size: 20px !important;
        line-height: 1.4 !important;
        letter-spacing: 0%;
        margin-top: 15px;
    }

    a#continue_review {
        width: 100%;
        border-radius: 13px !important;
        border: 3px solid #FFFFFF !important;
        padding: 16px !important;
        font-weight: 600 !important;
        font-size: 20px !important;
        line-height: 1.4 !important;
        letter-spacing: 0%;
    }

    .yourcartsummary,
    .promocodesummary,
    .yourordersummary {
        padding: 20px;
        background: white;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    #sidebar .groceries_page_myorder .qty {
        padding: 0;
    }

    body #sidebar .sidebar_single_product {
        border-top: 0px none;
        margin: 0;
    }

    body #sidebar .post_main_row .product_img {
        width: 80px;
    }

    .checkout_svg {
        min-width: 48px;
        height: 48px;
        border-radius: 27.5px;
        background: #1BAE23;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .payment-option-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1.5px solid #cfe8ee;
        border-radius: 10px;
        padding: 14px 18px;
        background-color: #fff;
        cursor: pointer;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .payment-option-card:hover {
        border-color: #3aa9c4;
    }

    .payment-option-card.selected {
        border: 1.5px solid #3DA8C3;
        box-shadow: 0 0 0 1px #3DA8C3;
        background: #E4FAFF;
    }

    .payment-option-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .checkout-redesign .form-group .payment-option-card label {
        color: #383838;
        font-weight: 600;
        font-size: 20px;
        line-height: 37px;
        letter-spacing: 0%;
        text-align: center;
        text-transform: capitalize;
        cursor: pointer;
        margin: 0;
    }

    /* Custom radio button */
    .payment-option-card input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        min-width: 20px;
        border: 2px solid #cfe8ee;
        border-radius: 50%;
        position: relative;
        cursor: pointer;
        transition: border-color 0.15s ease;
    }

    .payment-option-card input[type="radio"]:checked {
        border-color: #3aa9c4;
    }

    .payment-option-card input[type="radio"]::after {
        content: '';
        position: absolute;
        display: none;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #3aa9c4;
        transform: translate(-50%, -50%);
    }

    .payment-option-card input[type="radio"]:checked::after {
        display: block;
    }

    .payment-option-icons img {
        max-height: 40px;
        width: auto;
        display: block;
    }

    #cards_form h5 {
        font-weight: 600;
        font-size: 22px;
        line-height: 37px;
        letter-spacing: 0%;
        text-transform: capitalize;
        color: #383838;
        margin-bottom: 12px;
    }

    #checkout_step_3 .form_col > .card {
        background: transparent;
        box-shadow: unset !important;
        padding: 0 !important;
    }

    #checkout_step_3 .review-block {
        background: #fff;
        border: none;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(20, 30, 40, .08);
        padding: 28px 30px !important;
        position: relative;
    }

    span#edit_shipping_link {
        position: absolute;
        right: 20px;
        bottom: 20px;
        border: 1.5px solid #3DA8C3;
        background: #3DA8C338;
        padding: 15px;
        border-radius: 10px;
        font-family: Montserrat;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0%;
        text-transform: capitalize;
        text-decoration: none;
        width: fit-content;
    }


    @media screen and (max-width: 768px) {
        .checkout-stepper .step-label { font-size: 10px; }
        .checkout-stepper { max-width: 100%; }
        .checkout-redesign .row.mob_checkout { margin-top: -30px; }
        .checkout-redesign .card.card-body,
        .checkout-redesign #sidebar { padding: 20px; }
        body .checkout-hero { padding: 42px 12px 80px; }
        .checkout-redesign .textfield_main { flex-direction: column; gap: 0; }
        .checkout-step-nav {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        .yourcartsummary .sidebar_single_product {
            flex-flow: row;
            align-items: center;
            gap: 12px;
        }
        body #sidebar .post_main_row .product_img,
        .sidebar_single_product .product_img img {
            max-width: 60px;
            max-height: 60px;
        }
        body #sidebar .post_content {
            gap: 6px !important;
            width: 100% !important;
        }
        .groceries_page_myorder .qty {
            width: 80px;
        }
        body #sidebar .qty-stepper input.qtychange {
            width: 32px !important;
        }
        body span.price {
            font-size: 16px !important;
            line-height: 26px !important;
            margin: 0 !important;
        }
    }

    /* =================================================================
    Mobile & tablet responsive overhaul (portrait + landscape)
    Scoped to .checkout-redesign so nothing outside checkout is touched.
    ================================================================= */

    /* ---------- Tablets (portrait + landscape), ~768px-1024px ---------- */
    @media (max-width: 1024px) {
        .checkout-redesign .container { max-width: 100%; padding-left: 16px; padding-right: 16px; }
        .checkout-redesign .row.mob_checkout { margin-top: -60px; }
        .checkout-hero { padding: 32px 16px 64px; }
        .checkout-hero__title { font-size: 22px; }
        .checkout-stepper { max-width: 460px; }
        .checkout-redesign .card.card-body,
        .checkout-redesign #sidebar { padding: 24px !important; }
        .sticky_sidebar { position: static; top: auto; }
        #sidebar { margin-top: 24px; }

        .usertype-option {
            min-height: auto;
            padding: 14px;
        }
        .usertype-option.active:after { display: none; }
        .usertype-option__text strong { font-size: 17px; line-height: 26px; }
        .usertype-option__text small { font-size: 14px; line-height: 20px; }

        .checkout-help-banner { flex-wrap: wrap; gap: 20px; }
        .checkout-help-banner__item { flex: 1 1 100%; }
        .checkout-help-banner__divider { display: none; }

        .review-block__body { font-size: 16px; line-height: 30px; }
        ul.review-block__list li { font-size: 14px; line-height: 26px; }

        .payment-option-card { flex-wrap: wrap; row-gap: 10px; }
        .checkout-redesign .form-group .payment-option-card label { font-size: 17px; line-height: 24px; }
        .payment-option-icons img { max-height: 32px; }

        span#edit_shipping_link {
            position: static;
            display: inline-flex;
            margin-top: 16px;
        }
        #checkout_step_3 .review-block { padding: 22px !important; }
    }

    /* ---------- Phones & small tablets, portrait + landscape ---------- */
    @media (max-width: 767px) {
        .checkout-redesign .row.mob_checkout { margin-top: -40px; }
        .checkout-hero { padding: 22px 12px 46px; }
        .checkout-hero__title { font-size: 19px; margin-bottom: 16px; }

        .checkout-stepper { gap: 2px; padding: 0 4px; }
        .checkout-stepper .step-circle { width: 36px; height: 36px; font-size: 15px; border-width: 2px; }
        .checkout-stepper .step-label { font-size: 9px; line-height: 12px; margin-top: 4px; max-width: 70px; }
        .checkout-stepper .step-connector { margin: 0 2px; margin-bottom: 18px; }

        .checkout-redesign .card.card-body,
        .checkout-redesign #sidebar { padding: 16px !important; border-radius: 12px; }

        .sectionTitle { font-size: 22px; line-height: 28px; margin-bottom: 14px; }

        .checkout-redesign .textfield_main .form-group label { font-size: 13px; line-height: 22px; margin-bottom: 4px; }
        .checkout-redesign input[type="text"],
        .checkout-redesign input[type="email"],
        .checkout-redesign input[type="tel"],
        .checkout-redesign input[type="number"],
        .checkout-redesign input[type="password"],
        .checkout-redesign select,
        .checkout-redesign .form-control {
            min-height: 50px;
            padding: 10px 12px;
            font-size: 14px;
            border-radius: 10px;
        }
        .checkout-redesign .exp-wrapper { gap: 10px; }

        .usertype-toggle { flex-direction: column; gap: 10px; border-radius: 14px; }
        .usertype-option { flex: 1 1 100%; min-height: auto; padding: 12px; gap: 10px; }
        .usertype-option__icon svg { width: 32px; height: 32px; }
        .usertype-option__text strong { font-size: 15px; line-height: 20px; }
        .usertype-option__text small { font-size: 12px; line-height: 16px; }
        .usertype-signin-btn, #existing_user_login_submit { width: auto; padding: 4px 12px; height: 30px; font-size: 12px; }

        .checkout-warning-banner { padding: 12px; font-size: 12px; }
        .checkout-warning-banner strong { font-size: 15px; line-height: 22px; }
        .checkout-warning-banner > div { font-size: 14px; line-height: 22px; }
        .checkout-warning-banner div.svg { width: 38px; height: 38px; }
        .checkout-warning-banner div.svg svg { width: 18px; height: 18px; }

        a#continue_payment.btn,
        button#paywith_btn,
        a#continue_review {
            font-size: 16px !important;
            padding: 14px !important;
            border-radius: 11px !important;
        }
        .checkout-step-nav { grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
        .checkout-step-nav .btn-back { font-size: 16px; padding: 14px; }

        .checkout-secure { margin-top: 30px; gap: 16px; }
        .checkout-secure h4 { font-size: 20px; line-height: 28px; }
        .checkout-secure img { max-width: 100%; height: auto; }

        .checkout-help-banner { padding: 16px; margin-top: 26px; border-radius: 14px; gap: 16px; }
        .checkout-help-banner__icon { width: 40px; min-width: 40px; height: 40px; }
        .checkout-help-banner__icon svg { width: 22px; height: 22px; }
        .checkout-help-banner__item strong { font-size: 16px; }
        .checkout-help-banner__item p { font-size: 13px; }

        .payment-option-card { padding: 12px; gap: 8px; }
        .checkout-redesign .form-group .payment-option-card label { font-size: 15px; line-height: 20px; }
        .payment-option-icons img { max-height: 26px; }
        .payment-option-card input[type="radio"] { width: 18px; height: 18px; min-width: 18px; }

        .checkout-panel-title,
        h3.sidebar_title.checkout-panel-title { font-size: 18px !important; line-height: 26px !important; gap: 6px; }
        .checkout-panel-title svg { width: 16px; height: 16px; max-width: 16px; }

        .checkout-redesign .cart-item-name { font-size: 14px !important; line-height: 20px !important; }
        .cart-item-controls-row { flex-wrap: wrap; row-gap: 8px; }
        /* 44x44 is the recommended minimum tap-target size — the fixed
           28x36 box here was well under that on the checkout page, which
           is squarely on the path to buying. min-width/min-height (not a
           fixed width/height) so the control still shrinks gracefully if
           it ever needs to on a very narrow screen. */
        .qty-stepper__btn { min-width: 24px; min-height: 44px; }
        .groceries_page_myorder .qty {width: auto !important;}
        body #sidebar .qty-stepper input.qtychange { min-height: 36px !important; }

        .review-block { padding: 14px; margin-bottom: 14px; }
        .review-block__header h6 { font-size: 15px; }
        .review-block__edit { font-size: 12px; }
        .review-block__body { font-size: 14px; line-height: 24px; padding: 12px 0; }
        ul.review-block__list { padding: 12px 0; gap: 10px; }
        ul.review-block__list li { font-size: 13px; line-height: 20px; align-items: flex-start; }
        ul.review-block__list li svg { flex: 0 0 auto; margin-top: 2px; }

        span#edit_shipping_link {
            position: static;
            display: inline-flex;
            margin-top: 14px;
            padding: 10px 12px;
            font-size: 13px;
            line-height: 18px;
        }
        #checkout_step_3 .review-block { padding: 16px !important; }

        .checkout-secure-badge,
        .checkout-shipping-note,
        .checkout-tracking-note {
            padding: 14px;
            font-size: 13px;
            line-height: 22px;
            gap: 10px;
            border-radius: 12px;
        }
        .checkout-secure-badge strong,
        .checkout-shipping-note strong,
        .checkout-tracking-note strong { font-size: 14px; }
        .checkout_svg { min-width: 38px; width: 38px; height: 38px; }
        .checkout-shipping-note svg,
        .checkout-tracking-note svg { width: 20px; height: 20px; }

        .checkout-payment-icons { justify-content: center; }
        .checkout-payment-icons img { max-width: 260px; }

        .autoship-notice { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 12px; }
        .autoship-notice__icon-wrap { width: 48px; height: 48px; }
        .autoship-notice__title { font-size: 14px; }
        .autoship-notice__body { font-size: 12px; }

        .cart-control-notice { font-size: 11px; }
        body .content_shoppingpage {
            margin: 0 auto !important;
        }
        .checkout-redesign .delivery_location h6 {
            font-size: 22px;
            line-height: 32px;
        }
    }

    /* ---------- Small phones ---------- */
    @media (max-width: 400px) {
        .checkout-stepper .step-circle { width: 30px; height: 30px; font-size: 13px; }
        .checkout-stepper .step-label { font-size: 8px; max-width: 56px; }
        .checkout-hero__title { font-size: 17px; }
        .checkout-redesign .card.card-body,
        .checkout-redesign #sidebar { padding: 14px !important; }
        .payment-option-icons img { max-width: 130px; }
        span#edit_shipping_link { text-align: center; }

        /* Moved down from the old <=767px "phones & small tablets" tier —
           that bucket also caught every iPad (mini included, ~744px CSS
           width), so the payment picker was shrinking on tablet too
           (Paul, Figma review 2026-09-22). Only genuinely tiny phone
           screens compact it now; everything tablet-and-up keeps the same
           box sizing the Figma design was matched against. */
        .payment-picker__option { padding: 10px 12px; flex-wrap: wrap; }
        .payment-picker__label { font-size: 13px; }
        .payment-picker__brand svg, .payment-picker__brand img { height: 16px; }
    }

    /* ---------- Landscape orientation on phones & small tablets ---------- */
    @media (max-width: 926px) and (orientation: landscape) {
        .checkout-hero { padding: 16px 16px 32px; }
        .checkout-hero__title { font-size: 17px; margin-bottom: 10px; }
        .checkout-stepper .step-circle { width: 32px; height: 32px; font-size: 14px; }
        .checkout-stepper .step-label { font-size: 9px; }
        .checkout-redesign .row.mob_checkout { margin-top: -24px; }
        .checkout-redesign .card.card-body,
        .checkout-redesign #sidebar { padding: 16px !important; }
        .usertype-toggle { flex-direction: row; flex-wrap: wrap; }
        .usertype-option { flex: 1 1 45%; }
        .checkout-secure { margin-top: 20px; }
        .checkout-help-banner { flex-direction: row; flex-wrap: wrap; }
        .checkout-help-banner__item { flex: 1 1 45%; }
        .checkout-help-banner__divider { display: none; }
    }

    /* Prevent the Google Places autocomplete dropdown from overflowing
       the viewport width on narrow screens. */
    @media (max-width: 767px) {
        .pac-container { max-width: calc(100vw - 32px) !important; }
    }
    .checkout-redesign .exp-wrapper .field-error-message {
        position: absolute;
        bottom: -55px;
    }
    .card-number-field { position: relative; }
    .card-logo-indicator {
        position: absolute;
        top: 75px;
        right: 25px;
        transform: translateY(-50%);
        width: 44px;
        height: 28px;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card-logo-indicator svg {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }
    .review-card-logo {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        vertical-align: middle;
    }
    .review-card-logo svg {
        width: 24px;
        height: 16px;
        display: block;
    }

    .checkout-redesign .invalid-highlight,
    .checkout-redesign .invalid-highlight input,
    .checkout-redesign .autoship-detail-row.invalid-highlight select,
    .checkout-redesign .invalid-highlight textarea {
        border-color: red !important;
        border-width: 2px !important;
        box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .5) !important;
    }

    .checkout-redesign .invalid-highlight label,
    .checkout-redesign .invalid-highlight .form-check-label,
    .checkout-redesign .invalid-highlight .checkbox label,
    .checkout-redesign .invalid-highlight .radio label {
        color: #dc3545 !important;
    }

    .content_main.delivery_location {
        margin-bottom: 20px;
    }

    input[readonly] {
        opacity: 0.5;    
        background: #eee !important;
    }

    /* =====================================================================
        MP CHECKOUT — DISCOUNT UI
        All new selectors are prefixed mp_checkout_ so they can't collide
        with existing theme classes. Nothing here renames or removes any
        class already used in the cart sidebar / order summary markup.
    ===================================================================== */
        
    :root{
        --mp_checkout_green: #16A34A;
        --mp_checkout_green_dark: #0F7A38;
        --mp_checkout_green_bg: #E3F6EA;
        --mp_checkout_green_border: #BCEACB;
        --mp_checkout_gray_bg: #F1F2F4;
        --mp_checkout_gray_text: #5B6270;
        --mp_checkout_price_dark: #16213E;
        --mp_checkout_price_muted: #9AA1AC;
        --mp_checkout_navy: #1B3A6B;
    }
    
    /* ---------------------------------------------------------------------
    Badges row: "Discount Applied" + "10% OFF" pills under the item title
    --------------------------------------------------------------------- */
    .mp_checkout_badges_row{
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
    }
    
    .mp_checkout_badge{
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        padding: 6px 10px;
        border-radius: 999px;
        white-space: nowrap;
    }
    
    .mp_checkout_badge--applied{
        background: var(--mp_checkout_green_bg);
        color: var(--mp_checkout_green_dark);
        border: 1px solid var(--mp_checkout_green_border);
    }
    
    .mp_checkout_badge--applied .mp_checkout_badge_icon{
        color: var(--mp_checkout_green);
        flex-shrink: 0;
    }
    
    .mp_checkout_badge--percent{
        background: var(--mp_checkout_green_bg);
        color: var(--mp_checkout_gray_text);
    }
    
    /* ---------------------------------------------------------------------
    Line-item price: current price + strikethrough original price
    --------------------------------------------------------------------- */
    .mp_checkout_price_group{
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
    }
    
    .mp_checkout_price_current{
        font-size: 17px;
        font-weight: 700;
        color: var(--mp_checkout_price_dark);
    }
    
    .mp_checkout_price_original{
        font-size: 13px;
        font-weight: 500;
        color: var(--mp_checkout_price_muted);
        text-decoration: line-through;
    }
    
    /* ---------------------------------------------------------------------
    "You saved $X.XX" line under the qty/price row
    --------------------------------------------------------------------- */
    .mp_checkout_savings_line{
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 6px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--mp_checkout_green_dark);
    }
    
    .mp_checkout_savings_icon{
        color: var(--mp_checkout_green);
        flex-shrink: 0;
    }
    
    /* ---------------------------------------------------------------------
    Order summary: Discounts row (label + amount, both green)
    --------------------------------------------------------------------- */
    .mp_checkout_discount_row{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .mp_checkout_discount_label{
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 !important;
        font-size: 14px;
        font-weight: 600;
        color: var(--mp_checkout_green_dark);
    }
    
    .mp_checkout_tag_icon{
        color: var(--mp_checkout_green);
        flex-shrink: 0;
    }
    
    .mp_checkout_discount_amount{
        font-size: 14px;
        font-weight: 700;
        color: var(--mp_checkout_green_dark);
    }
    
    /* ---------------------------------------------------------------------
    Savings banner under "Total to Pay Today"
    --------------------------------------------------------------------- */
    .checkout-order-summary > div.mp_checkout_savings_banner{
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 0px;
        padding: 10px 14px !important;
        border-radius: 10px;
        background: var(--mp_checkout_green_bg);
        border: 1px solid var(--mp_checkout_green_border);
        color: var(--mp_checkout_green_dark);
        font-size: 13px;
        font-weight: 600;
        justify-content: flex-start !important;
    }
    
    .mp_checkout_savings_banner_icon{
        color: var(--mp_checkout_green);
        flex-shrink: 0;
    }
    
    /* ---------------------------------------------------------------------
    Optional: tint the existing "Total to Pay Today" price navy, and
    let it sit next to a small "USD" prefix, to match the reference.
    Safe to remove this block if you'd rather leave the total price
    in its current theme color.
    --------------------------------------------------------------------- */
    .total_cost #total_cost{
        color: var(--mp_checkout_navy);
        font-size: 20px;
        font-weight: 800;
    }
    
    /* ---------------------------------------------------------------------
    Small screens: let badges wrap without crowding the delete icon
    --------------------------------------------------------------------- */
    @media (max-width: 480px){
        .mp_checkout_price_group{
            flex-wrap: wrap;
        }
        .mp_checkout_badge{
            font-size: 11px;
            padding: 5px 9px;
        }
    }

.pac-container {
    z-index: 9999 !important;
}

.checkbox {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.autoship-notice {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-top: 15px;
}

.autoship-notice__icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fdf0e6 0%, #f7e4d6 60%, #f3dccb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.autoship-notice__icon-wrap img {
    width: 100%;
    object-fit: cover;
}
.autoship-notice__content {
    flex: 1;
    min-width: 0;
}

.autoship-notice__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.autoship-notice__title {
    margin: 0;
    line-height: 1.3;
    font-size: 16px;
    font-weight: 700;
    color: #003851;
}

.autoship-notice__info-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2196c4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.autoship-notice__info-btn:hover,
.autoship-notice__info-btn:focus-visible {
    background-color: rgba(33, 150, 196, 0.1);
    outline: none;
}

.autoship-notice__info-btn svg {
    width: 19px;
    height: 19px;
}

.autoship-notice__body {
    line-height: 1.4;
    font-size: 13px;
    color: #003851;
    margin: 0 0 10px 0;
}

.autoship-notice__footer {
    font-size: 14px;
    font-style: italic;
    color: #3a3a3a;
    margin: 0;
}

/* Tooltip / popover */
.autoship-notice__tooltip-wrap {
    position: relative;
    display: inline-flex;
}

.autoship-notice__tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.autoship-notice__tooltip.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autoship-notice__tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    transform: rotate(45deg);
}

div#autoshipFreeModal .modal-header img {
    width: 80px;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-right: 20px;
}

div#autoshipFreeModal .modal-header h5#autoshipFreeModalLabel {
    font-size: 26px !important;
}

div#autoshipFreeModal .modal-header,
div#autoshipFreeModal .modal-footer {
    border: 0px none;
}

div#autoshipFreeModal .modal-footer {
    padding: 0 0 20px 0;
    align-items: center;
    justify-content: center;
}

div#autoshipFreeModal .modal-header h5#autoshipFreeModalLabel:after {
    content: '';
    width: 50px;
    height: 3px;
    background: #098ab0;
    display: flex;
    position: relative;
    top: 8px;
}

div#autoshipFreeModal .modal-header button.btn-close {
    border-radius: 50%;
    border: 1px solid #aaa;
    aspect-ratio: 1;
    padding: 8px;
    align-self: flex-start;
    margin: 5px;
}

div#autoshipFreeModal .modal-footer button.btn.btn-sm.btn-primary {
    padding: 15px 50px !important;
    border-radius: 15px !important;
    background: #3da8c3 !important;
    color: #fff !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    outline: 0 !important;
    border: 2px solid #fff !important;
    text-decoration: none !important;
    transition: .2s ease-in-out !important;
}

@media (max-width: 480px) {
    .autoship-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .autoship-notice__header {
        justify-content: center;
        position: relative;
    }
    .autoship-notice__tooltip {
        right: 50%;
        transform: translate(50%, -4px);
    }
    .autoship-notice__tooltip.is-open {
        transform: translate(50%, 0);
    }
    .autoship-notice__tooltip::before {
        right: 50%;
        transform: translate(50%, 0) rotate(45deg);
    }

    div#autoshipFreeModal .modal-header img {
        width: 60px;
        border-radius: 50%;
        aspect-ratio: 1;
        object-fit: cover;
        margin-right: 12px;
    }

    div#autoshipFreeModal .modal-header h5#autoshipFreeModalLabel {
        font-size: 18px !important;
    }
}

body .sub_content h3 {
    white-space: normal !important;
}

.form-control:disabled {
    background-color: var(--bs-secondary-bg) !important;
    opacity: 1;
}

.payment_type .select2-container {
    width: 100% !important;
}

.flag_single_hair_product {
    padding: 15px 5px;
    margin: 30px 0px;
    color: #3293ab !important;
    font-weight: bold;
    border: 3px solid #dc3545;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px !important;
    border-radius: 1rem;
}

.notes_cls {
    color: #dc3545;
    padding-left: 10px;
    margin-bottom: 5px;
}

.cpn_applied_cls {
    color: #dc3545;
    font-size: 22px;
    text-transform: uppercase;
    padding: 7px 0px;
}

#validate_coupon,
#validate_coupon:hover {
    font-size: 20px;
    background-color: #003851;
    border-color: #003851;
    color: #fff;
    padding: 10px 13px;
    margin-top: -5px;
    width: fit-content;
    height: fit-content;
    margin: auto;
}

#referral_code {
    padding: 0px 15px;
    border-radius: 7px;
    border: 1px solid #cccccc;
    line-height: 40px;
    outline: unset;
    width: 64%;
    font-size: 20px;
    font-style: italic;
    min-height: 44px;
    font-weight: 400 !important;
}

#referral_code::placeholder {
    color: #888888;
}

#sidebar .wallet_balance,
#sidebar .wallet_balance2,
#sidebar .remianing_wallet_balance,
#sidebar .sub_total_balance,
#sidebar .total_shipping,
#sidebar .discount_balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sidebar .discount_balance {
    gap: 12px;
    padding: 4px 0;
    font-size: 13.5px;
    color: #333;
}

.discount_balance .sidebar_title,
.discount_balance span.price {
    color: #333;
    font-size: 13.5px;
    font-weight: 500;
    margin: 0;
}

#discount_amount {
    color: #3FA7C2;
    font-weight: 600;
}

.wallet_balance .sidebar_title,
.wallet_balance span.price {
    color: #dc3545;
}

.remianing_wallet_balance .sidebar_title,
.remianing_wallet_balance span.price {
    color: #198754;
}

.wallet_balance .sidebar_title,
.wallet_balance2 .sidebar_title,
.remianing_wallet_balance .sidebar_title,
.sub_total_balance .sidebar_title,
.total_shipping .sidebar_title {
    font-size: 18px;
}

@media (max-width: 980px) {

    .checkout-redesign .textfield_main > .form-group { flex: auto !important; }

    .wallet_balance .sidebar_title,
    .remianing_wallet_balance .sidebar_title,
    .sub_total_balance .sidebar_title,
    .total_shipping .sidebar_title {
        font-size: 16px;
    }

    #validate_coupon {
        right: 4px;
    }
}

.groceries_page_myorder .qty p input {
    width: 55px;
    color: black;
    font-weight: bold;
    background: transparent;
    border: 0px none;
    box-shadow: unset;
    outline: unset;
}

.price {
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0%;
}

.price > del {
    font-size: 13px !important;
    margin-right: 5px !important;
}
.hidden {
    display: none;
}

#paywith_btn2 {

    height: 0;

    width: 0;

    padding: 0;

    color: black;

    font-size: 0;

    line-height: 0;

    visibility: hidden;

}

#submitBtn {

    display: none;

}

.toast-default {

    display: none;

}

.toast {

    border-radius: 5px;

    display: none;

    font-size: 18px;

    justify-content: center;

    padding: 30px;

    position: fixed;

    right: 20px;

    text-align: center;

    top: 100px;

    width: 330px;

    z-index: 1000;

    color: #fff;

    opacity: 2;

    background: #10B7C4;

}

body section.content_main {
    padding-bottom: 0;
}

h3.sidebar_title.checkout-panel-title svg {
    max-width: 18px;
}

body section.content_main .checkout-body-bg {
    padding-bottom: 100px;
}

@keyframes spinner-border {

    to {
        transform: rotate(360deg);
    }

}



.spinner-border {

    display: inline-block;

    width: 2rem;

    height: 2rem;

    vertical-align: text-bottom;

    border: 0.25em solid currentColor;

    border-right-color: transparent;

    border-radius: 50%;

    animation: spinner-border .75s linear infinite;

}



.spinner-border-sm {

    width: 1rem;

    height: 1rem;

    border-width: 0.2em;

}

button#paywith_btn span.spinner-border.spinner-border-sm {

    display: none;

    position: relative;

}

button#paywith_btn:disabled span.spinner-border.spinner-border-sm {

    position: absolute;

    right: 20px;

    top: 20px;

    display: block;

}

button#paywith_btn {

    position: relative;

}

/* Lock icon before the button's text — added purely via ::before so it
   never needs touching any of the many places this button's text is
   rewritten via JS (e.g. $('#paywith_btn').html('Confirm & Pay $...')). */
button#paywith_btn::before {
    content: '\1F512';
    margin-right: 8px;
    font-size: 1.25em;
    vertical-align: middle;
}

.warningmessage {

    background: red;

    padding: 10px;

    color: white;

    display: none;

    width: calc(100% - 20px);

}

#sidebar .post_content {
    width: auto !important;
}

.post_content .error {

    display: none;

}

.hideerror .error {

    display: block;

}

.nmi-source-errors {

    display: none;

    color: red;

    background: #f8d7da;

    padding: 10px;

    margin-bottom: 10px;

    border-radius: 5px;

    border: 1px solid #f5c6cb;

}

.eye_icon {
    position: absolute;
    right: 25px;
    top: 40px;
}

.beautiful-toast {
    width: auto !important;
    /* Automatically adjusts to fit the content */
    white-space: nowrap;
    /* Prevents text wrapping */
}

.remove_coupon,
.remove_coupon:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.custom-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
    overflow: hidden;
}

.custom-modal-header {
    background: linear-gradient(135deg, #48CAE4 0%, #10B7C4 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.custom-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.custom-modal-body p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.custom-modal-body .highlight {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-weight: 600;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0 25px 30px;
}

.custom-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-modal-btn-primary {
    background-color: #48CAE4;
    color: white;
}

.custom-modal-btn-primary:hover {
    background-color: #35a3c4;
    transform: translateY(-2px);
}

.custom-modal-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.custom-modal-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .custom-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .custom-modal-actions {
        flex-direction: column;
    }

    .custom-modal-btn {
        margin-bottom: 10px;
    }
}

/* Autoship info box */
.autoship-pill-badge {
    display: inline-block;
    background: #fff8e6;
    color: #10B7C4;
    border: 1px solid #10B7C4;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.cart-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cart-item-name {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #003851 !important;
}

.autoship-info-box {
    background: #f8feff;
    border: 1px solid #d1eef1;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    margin-bottom: 11px;
    width: 100%;
}


/* Controls row: QTY | price | delete */
.cart-item-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    justify-content: space-between;
}

.autoship-info-top {
    margin-bottom: 8px;
}

.autoship-icon-text {
    font-size: 12px;
    font-weight: 700;
    color: #003851;
}

.autoship-info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.autoship-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
}

.autoship-detail-row strong {
    color: #003851;
}

.autoship-edit-link {
    color: #10B7C4 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: opacity 0.2s;
}

.autoship-edit-link:hover {
    opacity: 0.75;
}

.cart-control-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px 10px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.cart-control-notice strong {
    color: #003851;
    display: block;
}

.cart-learn-more {
    color: #10B7C4 !important;
    font-weight: 600;
    text-decoration: underline !important;
}

.checkout-redesign .textfield_main .form-group label.error {
    color: red;
    font-size: 12px;
    text-transform: inherit;
}

div#payment_picker_new_form {
    background: #FCF4EA;
    border-radius: 18px;
    padding: 25px;
    border: 1px solid #FCF4EA;
}