/*
 * wwwroot/css/ec-summary.css   (REPLACE - v3, OFFERS-MODAL)
 * Order Summary card + promo box + Offers button / modal + review coupon row.
 * Loaded by _OrderSummary.cshtml. Everything is scoped under .ec-sum / .ec-om so the
 * Dwine theme's h3 / .btn / .form-control rules can't reach in.
 */

.ec-sum {
    --ec-accent: var(--palette1, #f89e00);
    --ec-ink: #1c1c1c;
    --ec-muted: #6b6b6b;
    --ec-line: #ececec;
    --ec-soft: #fafafa;
    --ec-green: #2e7d32;
    --ec-green-bg: #eef7ee;
    --ec-amber: #a15c00;
    --ec-red: #c62828;
    background: #fff;
    border: 1px solid var(--ec-line);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
    color: var(--ec-ink);
    font-size: 14px;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .cart-grid-right .ec-sum {
        position: sticky;
        top: 110px;
    }
}

.ec-sum, .ec-sum *, .ec-sum *::before, .ec-sum *::after {
    box-sizing: border-box;
}

    /* ---------- header ---------- */
    .ec-sum .ec-sum-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px 22px 16px;
        border-bottom: 1px solid var(--ec-line);
        position: relative;
    }

        .ec-sum .ec-sum-head::before {
            content: "";
            position: absolute;
            left: 0;
            top: 18px;
            bottom: 16px;
            width: 4px;
            border-radius: 0 3px 3px 0;
            background: var(--ec-accent);
        }

    .ec-sum .ec-sum-title {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        letter-spacing: .2px;
        text-transform: none !important;
        color: var(--ec-ink) !important;
    }

    .ec-sum .ec-sum-count {
        flex: 0 0 auto;
        font-size: 12px;
        font-weight: 600;
        color: var(--ec-accent);
        background: #fff5e6;
        border: 1px solid #ffe2b3;
        border-radius: 999px;
        padding: 3px 10px;
        white-space: nowrap;
    }

    /* ---------- promo box ---------- */
    .ec-sum .ec-promo {
        margin: 16px 22px 4px;
        padding: 14px;
        background: var(--ec-soft);
        border: 1px dashed #dcdcdc;
        border-radius: 8px;
    }

    .ec-sum .ec-promo--readonly {
        background: transparent;
        border: 0;
        padding: 0;
        margin-bottom: 0;
    }

    .ec-sum .ec-promo-title {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 0 10px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ec-ink);
        cursor: pointer;
    }

        .ec-sum .ec-promo-title .material-icons {
            font-size: 18px;
            color: var(--ec-accent);
        }

    .ec-sum .ec-promo-form {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        margin: 0;
        background: #fff;
        border: 1px solid #d9d9d9;
        border-radius: 6px;
        overflow: hidden;
        transition: border-color .15s, box-shadow .15s;
    }

        .ec-sum .ec-promo-form:focus-within {
            border-color: var(--ec-accent);
            box-shadow: 0 0 0 3px rgba(248, 158, 0, .15);
        }

    .ec-sum .ec-promo-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--ec-ink);
    }

        .ec-sum .ec-promo-input::placeholder {
            text-transform: none;
            letter-spacing: 0;
            color: #9a9a9a;
        }

    .ec-sum .ec-promo-btn {
        flex: 0 0 auto;
        height: 44px;
        margin: 0 !important;
        padding: 0 20px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--ec-ink) !important;
        color: #fff !important;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background .15s;
    }

        .ec-sum .ec-promo-btn:hover {
            background: var(--ec-accent) !important;
        }

        .ec-sum .ec-promo-btn[disabled] {
            opacity: .65;
            cursor: wait;
        }

    .ec-sum .ec-promo-msg {
        font-size: 13px;
        margin-top: 8px;
        color: var(--ec-red);
    }

        .ec-sum .ec-promo-msg:empty {
            display: none;
        }

    .ec-sum .ec-promo-list {
        list-style: none;
        padding: 0;
        margin: 12px 0 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ec-sum .ec-promo-item {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 13px;
    }

    .ec-sum .ec-promo-chip,
    .ec-review-promo .ec-promo-chip {
        display: inline-block;
        border: 1px dashed var(--ec-green, #2e7d32);
        background: var(--ec-green-bg, #eef7ee);
        color: var(--ec-green, #2e7d32);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 4px;
        line-height: 1.3;
    }

    .ec-sum .ec-promo-text {
        flex: 1 1 auto;
        color: var(--ec-muted);
    }

    .ec-sum .ec-promo-item.is-kept .ec-promo-chip {
        border-color: #bdbdbd;
        background: #f3f3f3;
        color: #777;
    }

    .ec-sum .ec-promo-item.is-kept .ec-promo-text {
        color: var(--ec-amber);
    }

    .ec-sum .ec-promo-remove {
        border: 0;
        background: transparent;
        color: #a0a0a0;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        padding: 0 4px;
    }

        .ec-sum .ec-promo-remove:hover {
            color: var(--ec-red);
        }

    /* ---------- rows ---------- */
    .ec-sum .ec-sum-rows {
        padding: 14px 22px 6px;
    }

    .ec-sum .ec-sum-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 7px 0;
    }

    .ec-sum .ec-sum-label {
        color: var(--ec-muted);
    }

    .ec-sum .ec-sum-value {
        color: var(--ec-ink);
        font-weight: 600;
        text-align: right;
        white-space: nowrap;
    }

        .ec-sum .ec-sum-value.is-pending {
            font-weight: 400;
            font-style: italic;
            color: #9a9a9a;
            font-size: 13px;
        }

        .ec-sum .ec-sum-value.is-free {
            color: var(--ec-green);
        }

    .ec-sum .ec-sum-row.is-discount .ec-sum-label,
    .ec-sum .ec-sum-row.is-discount .ec-sum-value {
        color: var(--ec-green);
    }

    /* ---------- total ---------- */
    .ec-sum .ec-sum-total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin: 6px 22px 0;
        padding: 16px 0 18px;
        border-top: 1px solid var(--ec-line);
    }

        .ec-sum .ec-sum-total .ec-sum-label {
            color: var(--ec-ink);
            font-size: 16px;
            font-weight: 700;
        }

        .ec-sum .ec-sum-total .ec-sum-value {
            font-size: 22px;
            font-weight: 800;
        }

    .ec-sum .ec-sum-savings {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 22px 18px;
        padding: 9px 12px;
        background: var(--ec-green-bg);
        color: var(--ec-green);
        border-radius: 6px;
        font-size: 13px;
    }

        .ec-sum .ec-sum-savings .material-icons {
            font-size: 18px;
        }

    /* ---------- button + notes ---------- */
    .ec-sum .ec-sum-cta {
        padding: 0 22px 20px;
    }

    .ec-sum .ec-sum-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 18px;
        border-radius: 999px;
        background: var(--ec-accent);
        color: #fff !important;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        font-size: 14px;
        text-decoration: none !important;
        transition: filter .15s, transform .15s;
    }

        .ec-sum .ec-sum-btn:hover {
            filter: brightness(.95);
            transform: translateY(-1px);
        }

        .ec-sum .ec-sum-btn .material-icons {
            font-size: 18px;
        }

        .ec-sum .ec-sum-btn.disabled {
            pointer-events: none;
            opacity: .45;
        }

    .ec-sum .ec-sum-secure {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin: 10px 0 0;
        font-size: 12px;
        color: #8a8a8a;
    }

        .ec-sum .ec-sum-secure .material-icons {
            font-size: 14px;
        }

    .ec-sum .ec-sum-note {
        margin: 0;
        padding: 12px 22px;
        border-top: 1px solid var(--ec-line);
        background: var(--ec-soft);
        color: #8a8a8a;
        font-size: 12px;
    }

/* ---------- cart drawer (compact) ---------- */
[data-ec-summary="drawer"] .ec-sum-rows {
    padding: 6px 0;
}

[data-ec-summary="drawer"] .ec-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

[data-ec-summary="drawer"] .ec-sum-label {
    color: #6b6b6b;
}

[data-ec-summary="drawer"] .ec-sum-value {
    font-weight: 600;
}

    [data-ec-summary="drawer"] .ec-sum-value.is-pending {
        font-weight: 400;
        font-style: italic;
        color: #9a9a9a;
        font-size: 13px;
    }

[data-ec-summary="drawer"] .is-discount .ec-sum-label,
[data-ec-summary="drawer"] .is-discount .ec-sum-value {
    color: #2e7d32;
}

[data-ec-summary="drawer"] .ec-sum-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    border-top: 1px solid #e5e5e5;
    padding-top: 8px;
    margin-top: 4px;
}

/* ---------- review: coupon row under the lines ---------- */
.ec-review-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    list-style: none;
}

    .ec-review-promo .material-icons {
        color: var(--palette1, #f89e00);
        font-size: 20px;
    }

    .ec-review-promo .ec-review-line-body {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        flex-wrap: wrap;
    }

    .ec-review-promo .ec-promo-desc {
        color: #2e7d32;
        font-size: 14px;
    }

    .ec-review-promo .ec-review-line-total {
        color: #2e7d32;
        font-size: 14px;
    }


@media (max-width: 575px) {
    .ec-sum .ec-sum-head, .ec-sum .ec-sum-rows {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ec-sum .ec-promo, .ec-sum .ec-sum-total, .ec-sum .ec-sum-savings {
        margin-left: 16px;
        margin-right: 16px;
    }

    .ec-sum .ec-sum-cta {
        padding: 0 16px 16px;
    }
}

/* =================== OFFERS-MODAL =================== */

/* ---------- "Offers & coupons" button in the promo box ---------- */
.ec-sum .ec-offers {
    margin-top: 12px;
}

    .ec-sum .ec-offers:empty {
        display: none;
    }

.ec-sum .ec-offers-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed var(--ec-accent);
    border-radius: 8px;
    background: #fff8ec;
    color: var(--ec-ink);
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

    .ec-sum .ec-offers-btn:hover {
        background: #fff1d9;
        box-shadow: 0 2px 10px rgba(248, 158, 0, .18);
    }

    .ec-sum .ec-offers-btn:focus-visible {
        outline: 2px solid var(--ec-accent);
        outline-offset: 2px;
    }

.ec-sum .ec-offers-ico {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ec-accent);
    color: #fff;
}

    .ec-sum .ec-offers-ico .material-icons {
        font-size: 18px;
    }

.ec-sum .ec-offers-txt {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

    .ec-sum .ec-offers-txt b {
        display: block;
        font-size: 14px;
    }

    .ec-sum .ec-offers-txt small {
        display: block;
        font-size: 12px;
        color: var(--ec-muted);
    }

.ec-sum .ec-offers-go {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #c47a00;
    white-space: nowrap;
}

    .ec-sum .ec-offers-go .material-icons {
        font-size: 18px;
    }

/* ---------- modal shell ---------- */
html.ec-om-lock, html.ec-om-lock body {
    overflow: hidden;
}

.ec-om {
    --om-accent: var(--palette1, #f89e00);
    --om-ink: #1c1c1c;
    --om-muted: #6b6b6b;
    --om-line: #ececec;
    --om-green: #2e7d32;
    --om-green-bg: #eef7ee;
    --om-amber: #a15c00;
    --om-red: #c62828;
    position: fixed;
    inset: 0;
    z-index: 99980;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 14px;
    color: var(--om-ink);
}

    .ec-om[hidden] {
        display: none;
    }

    .ec-om, .ec-om *, .ec-om *::before, .ec-om *::after {
        box-sizing: border-box;
    }

.ec-om-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 28, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.ec-om-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #f7f7f8;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
    outline: none;
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}

.ec-om.is-open .ec-om-backdrop {
    opacity: 1;
}

.ec-om.is-open .ec-om-dialog {
    opacity: 1;
    transform: none;
}

/* header */
.ec-om-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    background: #fff;
    border-bottom: 1px solid var(--om-line);
}

.ec-om .ec-om-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--om-ink) !important;
    text-transform: none;
    letter-spacing: 0;
}

.ec-om-title .material-icons {
    color: var(--om-accent);
    font-size: 22px;
}

.ec-om-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--om-muted);
}

.ec-om-x {
    flex: 0 0 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .ec-om-x:hover {
        background: #e6e6e6;
    }

/* code input */
.ec-om-code {
    display: flex;
    gap: 8px;
    padding: 12px 18px 0;
    background: #fff;
}

    .ec-om-code input {
        flex: 1 1 auto;
        min-width: 0;
        height: 40px;
        padding: 0 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        text-transform: uppercase;
        background: #fff;
        color: var(--om-ink);
    }

        .ec-om-code input::placeholder {
            text-transform: none;
        }

        .ec-om-code input:focus {
            outline: none;
            border-color: var(--om-accent);
            box-shadow: 0 0 0 3px rgba(248, 158, 0, .15);
        }

    .ec-om-code button {
        flex: 0 0 auto;
        height: 40px;
        padding: 0 18px;
        border: 0;
        border-radius: 8px;
        background: var(--om-ink);
        color: #fff;
        font-weight: 600;
        cursor: pointer;
    }

        .ec-om-code button:hover {
            background: var(--om-accent);
        }

        .ec-om-code button:disabled {
            opacity: .6;
            cursor: default;
        }

.ec-om-formmsg {
    padding: 6px 18px 12px;
    min-height: 8px;
    font-size: 13px;
    background: #fff;
    border-bottom: 1px solid var(--om-line);
}

    .ec-om-formmsg:empty {
        padding-bottom: 10px;
    }

/* body */
.ec-om-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 6px 18px 18px;
    -webkit-overflow-scrolling: touch;
}

.ec-om .ec-om-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--om-muted) !important;
}

.ec-om-group span {
    padding: 0 7px;
    border-radius: 10px;
    background: #e9e9ec;
    font-size: 11px;
    color: #555;
}

.ec-om-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

/* ---------- ticket ---------- */
.ec-om-ticket {
    position: relative;
    display: flex;
    background: #fff;
    border: 1px solid var(--om-line);
    border-radius: 10px;
    overflow: hidden;
}

.ec-om-stub {
    position: relative;
    flex: 0 0 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    text-align: center;
    background: linear-gradient(160deg, #ffb52e, var(--om-accent));
    color: #fff;
    border-right: 2px dashed rgba(255, 255, 255, .7);
}

    .ec-om-stub b {
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.02em;
    }

    .ec-om-stub small {
        margin-top: 4px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
    }
    /* ticket notches */
    .ec-om-stub::before, .ec-om-stub::after {
        content: "";
        position: absolute;
        right: -9px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #f7f7f8;
    }

    .ec-om-stub::before {
        top: -9px;
    }

    .ec-om-stub::after {
        bottom: -9px;
    }

.ec-om-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
}

.ec-om-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ec-om-chip {
    padding: 2px 8px;
    border: 1px dashed var(--om-accent);
    border-radius: 5px;
    background: #fff8ec;
    color: #b36b00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

    .ec-om-chip.is-auto {
        border-color: #9aa3ad;
        background: #f3f5f7;
        color: #56616c;
    }

.ec-om-hurry {
    font-size: 11px;
    font-weight: 700;
    color: var(--om-red);
    background: #fdecec;
    padding: 2px 7px;
    border-radius: 10px;
}

.ec-om-name {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.ec-om-need {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--om-amber);
}

.ec-om-bar {
    margin-top: 5px;
    height: 5px;
    border-radius: 3px;
    background: #f1e4cf;
    overflow: hidden;
}

    .ec-om-bar span {
        display: block;
        height: 100%;
        background: var(--om-accent);
        border-radius: 3px;
        transition: width .3s ease;
    }

.ec-om-conds {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

    .ec-om-conds li {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 12.5px;
        line-height: 1.35;
        color: #444;
    }

    .ec-om-conds .material-icons {
        flex: 0 0 auto;
        font-size: 15px;
        margin-top: 1px;
        color: #9a9a9a;
    }

    .ec-om-conds li:first-child {
        color: var(--om-ink);
        font-weight: 600;
    }

        .ec-om-conds li:first-child .material-icons {
            color: var(--om-green);
        }

.ec-om-terms {
    margin-top: 8px;
    font-size: 12px;
    color: var(--om-muted);
}

    .ec-om-terms summary {
        cursor: pointer;
        color: #555;
        font-weight: 600;
        list-style: revert;
    }

    .ec-om-terms p {
        margin: 6px 0 0;
        white-space: pre-line;
    }

.ec-om-msg {
    font-size: 12.5px;
    margin-top: 6px;
}

    .ec-om-msg:empty {
        display: none;
    }

.ec-om .is-error {
    color: var(--om-red);
}

.ec-om .is-warn {
    color: var(--om-amber);
}

.ec-om-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.ec-om-apply {
    height: 34px;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    background: var(--om-ink);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}

    .ec-om-apply:hover:not(:disabled) {
        background: var(--om-accent);
    }

    .ec-om-apply:disabled {
        background: #cfcfcf;
        cursor: not-allowed;
    }

    .ec-om-apply.is-busy {
        background: var(--om-accent);
        cursor: progress;
    }

.ec-om-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f1f1;
    color: #555;
}

    .ec-om-tag .material-icons {
        font-size: 15px;
    }

    .ec-om-tag.is-on {
        background: var(--om-green-bg);
        color: var(--om-green);
    }

    .ec-om-tag.is-lock {
        background: #f6efe3;
        color: var(--om-amber);
    }

.ec-om-link {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12.5px;
    color: var(--om-red);
    text-decoration: underline;
    cursor: pointer;
}

/* states */
.ec-om-ticket.is-s0 {
    border-color: #b9dcbb;
    box-shadow: 0 0 0 1px #b9dcbb inset;
}

    .ec-om-ticket.is-s0 .ec-om-stub {
        background: linear-gradient(160deg, #47a84c, var(--om-green));
    }

.ec-om-ticket.is-s3 .ec-om-stub {
    background: linear-gradient(160deg, #c9c9c9, #a9a9a9);
}

.ec-om-ticket.is-s3 .ec-om-name {
    color: #555;
}

/* empty / loading */
.ec-om-empty {
    padding: 40px 10px;
    text-align: center;
    color: var(--om-muted);
}

    .ec-om-empty .material-icons {
        font-size: 40px;
        color: #d0d0d0;
    }

    .ec-om-empty p {
        margin: 8px 0 0;
    }

.ec-om-spin {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #eee;
    border-top-color: var(--om-accent);
    border-radius: 50%;
    animation: ec-om-spin .7s linear infinite;
}

@keyframes ec-om-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- mobile: bottom sheet ---------- */
@media (max-width: 575.98px) {
    .ec-om {
        align-items: flex-end;
        padding: 0;
    }

    .ec-om-dialog {
        max-width: none;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .ec-om.is-open .ec-om-dialog {
        transform: none;
    }

    .ec-om-head::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 50%;
        width: 40px;
        height: 4px;
        margin-left: -20px;
        border-radius: 2px;
        background: #d6d6d6;
    }

    .ec-om-head {
        position: relative;
        padding-top: 18px;
    }

    .ec-om-stub {
        flex-basis: 72px;
    }

        .ec-om-stub b {
            font-size: 18px;
        }

    .ec-om-body, .ec-om-code, .ec-om-formmsg {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ec-om-backdrop, .ec-om-dialog {
        transition: none;
    }
}


/* ---- numbered stepper: 1 Account → 2 Address → 3 Shipping → 4 Payment ---- */
#ec-checkout .ec-stepper {
    display: flex;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

    #ec-checkout .ec-stepper li {
        flex: 1 1 0;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        text-align: center;
    }

        #ec-checkout .ec-stepper li::before {
            content: "";
            position: absolute;
            top: 16px;
            right: 50%;
            width: 100%;
            height: 2px;
            background: #e3e3e3;
            z-index: 0;
        }

        #ec-checkout .ec-stepper li:first-child::before {
            display: none;
        }

        #ec-checkout .ec-stepper li.is-done::before,
        #ec-checkout .ec-stepper li.is-current::before {
            background: var(--palette1, #f89e00);
        }

#ec-checkout .ec-step-dot {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #d9d9d9;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

    #ec-checkout .ec-step-dot .material-icons {
        font-size: 18px;
    }

#ec-checkout .ec-stepper li.is-done .ec-step-dot {
    background: var(--palette1, #f89e00);
    border-color: var(--palette1, #f89e00);
    color: #fff;
}

#ec-checkout .ec-stepper li.is-current .ec-step-dot {
    border-color: var(--palette1, #f89e00);
    color: var(--palette1, #f89e00);
    box-shadow: 0 0 0 4px rgba(248,158,0,.15);
}

#ec-checkout .ec-step-label {
    font-size: 13px;
    color: #8a8a8a;
    text-decoration: none;
}

#ec-checkout .ec-stepper li.is-done .ec-step-label {
    color: #222;
}

#ec-checkout .ec-stepper li.is-done a.ec-step-label:hover {
    color: var(--palette1, #f89e00);
}

#ec-checkout .ec-stepper li.is-current .ec-step-label {
    color: var(--palette1, #f89e00);
    font-weight: 700;
}

@media (max-width: 767px) {
    #ec-checkout .ec-step-label {
        font-size: 12px;
    }

    #ec-checkout .ec-step-dot {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    #ec-checkout .ec-stepper li::before {
        top: 14px;
    }
}

/* ---- checkout pages: undo Dwine's right-align + fix button text ---- */

/* Shipping / Payment option cards: text left, price right */
#ec-checkout .ec-option,
#ec-checkout .ec-option-body,
#ec-checkout .ec-option-body strong,
#ec-checkout .ec-option-body span,
#ec-checkout .ec-block-title,
#ec-checkout .ec-block-sub,
#ec-checkout .ec-empty,
#ec-checkout .ec-review-cell,
#ec-checkout .ec-review-line-body {
    text-align: left !important;
}

#ec-checkout label.ec-option {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    float: none;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    font-weight: 400;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

    #ec-checkout label.ec-option:hover {
        border-color: #cfcfcf;
    }

    #ec-checkout label.ec-option.is-picked {
        border-color: var(--palette1, #f89e00);
        background: #fffaf2;
        box-shadow: 0 0 0 3px rgba(248,158,0,.12);
    }

    #ec-checkout label.ec-option input[type=radio] {
        flex: 0 0 auto;
        margin: 0;
        width: 16px;
        height: 16px;
        accent-color: var(--palette1, #f89e00);
    }

#ec-checkout .ec-option-icon {
    flex: 0 0 auto;
    font-size: 22px;
    color: #666;
}

#ec-checkout .ec-option-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
}

    #ec-checkout .ec-option-body strong {
        font-size: 14px;
        color: #111;
    }

#ec-checkout .ec-option-price {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

/* Continue / Place order button: text + arrow centred */
#ec-checkout .btn.ec-continue {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto !important;
    min-height: 46px;
    padding: 0 28px !important;
    line-height: 1 !important;
    border-radius: 26px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    float: none;
}

    #ec-checkout .btn.ec-continue > span,
    #ec-checkout .btn.ec-continue .material-icons {
        display: inline-flex;
        align-items: center;
        line-height: 1 !important;
        margin: 0 !important;
    }

    #ec-checkout .btn.ec-continue .material-icons {
        font-size: 18px;
    }

    #ec-checkout .btn.ec-continue::before,
    #ec-checkout .btn.ec-continue::after {
        content: none !important;
    }

#ec-checkout .ec-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 24px;
}

/* ---- review / confirmation: _OrderDetails.cshtml ---- */

/* Contact | Ship to | Bill to | Delivery | Payment → 3 columns */
#ec-checkout .ec-review-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 24px;
    margin: 0 0 4px;
}

#ec-checkout .ec-review-cell {
    text-align: left !important;
    min-width: 0;
}

    #ec-checkout .ec-review-cell h4 {
        margin: 0 0 6px !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        letter-spacing: .4px;
        text-transform: uppercase !important;
        color: #8a8a8a !important;
    }

    #ec-checkout .ec-review-cell p {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
        color: #444;
        word-break: break-word;
    }

        #ec-checkout .ec-review-cell p strong {
            color: #111;
        }

/* item lines: small thumbnail | name + sku | price */
#ec-checkout .ec-review-lines {
    list-style: none;
    padding: 0;
    margin: 0;
}

#ec-checkout .ec-review-line {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    #ec-checkout .ec-review-line:last-child {
        border-bottom: 0;
    }

    #ec-checkout .ec-review-line img {
        flex: 0 0 56px;
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        object-fit: contain;
        border: 1px solid #eee;
        border-radius: 6px;
        background: #fff;
        padding: 4px;
    }

#ec-checkout .ec-review-line-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: left !important;
}

    #ec-checkout .ec-review-line-body strong {
        font-size: 14px;
        color: #111;
    }

#ec-checkout .ec-review-line-total {
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 767px) {
    #ec-checkout .ec-review-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    #ec-checkout .ec-review-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- confirmation header ---- */
#ec-checkout .ec-confirm-head {
    display: flex;
    gap: 16px;
    align-items: center;
    text-align: left;
}

    #ec-checkout .ec-confirm-head .ec-block-title {
        font-size: 20px;
        text-transform: none;
        margin: 0 0 4px;
    }

#ec-checkout .ec-confirm-icon {
    font-size: 44px;
    color: #2e7d32;
    flex: 0 0 auto;
}

#ec-checkout .ec-confirm-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    text-align: left;
}

    #ec-checkout .ec-confirm-meta > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    #ec-checkout .ec-confirm-meta small {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #888;
    }

    #ec-checkout .ec-confirm-meta strong {
        font-size: 15px;
        color: #000;
    }

#ec-checkout .ec-confirm .ec-actions {
    justify-content: flex-start;
}

/* ---- button busy state ---- */
#ec-checkout .btn.ec-continue.is-busy,
#ec-checkout .btn.ec-continue.is-busy:hover,
#ec-checkout .btn.ec-continue.is-busy:focus,
#ec-checkout .btn.ec-continue.is-busy:active {
    background: #e0263a !important;
    border-color: #e0263a !important;
    color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    min-width: 220px;
    justify-content: center;
    pointer-events: none;
}

/* ---- equalizer bars (button + overlay) ---- */
.ec-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
}

    .ec-eq span {
        display: block;
        width: 3px;
        height: 100%;
        background: currentColor;
        border-radius: 2px;
        transform-origin: bottom;
        animation: ec-eq .9s ease-in-out infinite;
    }

        .ec-eq span:nth-child(2) {
            animation-delay: .15s;
        }

        .ec-eq span:nth-child(3) {
            animation-delay: .30s;
        }

        .ec-eq span:nth-child(4) {
            animation-delay: .45s;
        }

@keyframes ec-eq {
    0%,100% {
        transform: scaleY(.3);
    }

    50% {
        transform: scaleY(1);
    }
}

/* ---- full-page overlay (_Loader.cshtml) ---- */
#ec-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #000;
    color: #fff;
    text-align: center;
}

    #ec-loader.is-open {
        display: flex;
    }

    #ec-loader.is-light {
        background: rgba(0,0,0,.55);
    }

    #ec-loader .ec-eq {
        height: 36px;
        gap: 6px;
        margin: 0;
    }

        #ec-loader .ec-eq span {
            width: 6px;
        }

#ec-loader-text {
    font-size: 18px;
    font-weight: 600;
}

#ec-loader-sub {
    font-size: 13px;
    opacity: .75;
}

/* ---------- 21+ age notice ---------- */
.ec-sum .ec-sum-age {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 22px 20px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef7ee;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    font-size: 12.5px;
    line-height: 1.4;
}

    .ec-sum .ec-sum-age .material-icons {
        font-size: 18px;
        color: #2e7d32;
        flex: 0 0 auto;
    }

    .ec-sum .ec-sum-age strong {
        color: #1b5e20;
    }

@media (max-width: 575px) {
    .ec-sum .ec-sum-age {
        margin: 0 16px 16px;
    }
}

/* ---------- LOGIN-ONLY: guest banner (replaces the Offers button) ---------- */
.ec-sum .ec-offers-login {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff8ec;
    border: 1px solid #f6dfb5;
}

    .ec-sum .ec-offers-login > .material-icons {
        flex: 0 0 auto;
        font-size: 22px;
        color: var(--ec-accent);
    }

.ec-sum .ec-offers-login-txt {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: #7a4b00;
}

    .ec-sum .ec-offers-login-txt b {
        display: block;
        font-size: 14px;
        color: #5c3800;
    }

.ec-sum .ec-offers-login-acts {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.ec-sum .ec-offers-login-btn,
.ec-sum .ec-offers-signup-btn {
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid var(--ec-ink);
    transition: background .15s ease, color .15s ease;
}

.ec-sum .ec-offers-login-btn {
    background: var(--ec-ink);
    color: #fff !important;
}

    .ec-sum .ec-offers-login-btn:hover {
        background: var(--ec-accent);
        border-color: var(--ec-accent);
    }

.ec-sum .ec-offers-signup-btn {
    background: #fff;
    color: var(--ec-ink) !important;
}

    .ec-sum .ec-offers-signup-btn:hover {
        background: var(--ec-ink);
        color: #fff !important;
    }

/* narrow summary column / phones: buttons go under the text */
@media (max-width: 1199px) {
    .ec-sum .ec-offers-login {
        flex-wrap: wrap;
    }

    .ec-sum .ec-offers-login-txt {
        flex-basis: calc(100% - 32px);
    }

    .ec-sum .ec-offers-login-acts {
        width: 100%;
        padding-left: 32px;
    }
}

/* modal banner: Login + Sign up buttons */
.ec-om-login-acts {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.ec-om-signup-btn {
    padding: 8px 14px;
    border-radius: 7px;
    border: 1px solid var(--om-ink);
    background: #fff;
    color: var(--om-ink) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
}

    .ec-om-signup-btn:hover {
        background: var(--om-ink);
        color: #fff !important;
    }