/*
 * Tier pricing preview (PDP box + category strip).
 *
 * On-brand with the Spend & Save banner/widget/landing: navy + red, Bebas Neue
 * display, Montserrat body, metallic Bronze/Silver/Gold tier accents.
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800&display=swap');

.ecml-tier-box,
.ecml-tier-strip {
    --tb-red:    #ff0c3a;
    --tb-navy:   #011f30;
    --tb-navy-2: #003857;
    --tb-ink:    #011f30;
    --tb-muted:  #5b6772;
    --tb-line:   #e3e7ea;
    --tb-bronze: #c77b3e;
    --tb-silver: #9aa4ad;
    --tb-gold:   #d4a017;
    --tb-font-display: 'Bebas Neue', Impact, "Arial Narrow", sans-serif;
    --tb-font-body:    'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-family: var(--tb-font-body);
    color: var(--tb-ink);
}
.ecml-tier-box *,
.ecml-tier-box *::before,
.ecml-tier-box *::after,
.ecml-tier-strip *,
.ecml-tier-strip *::before,
.ecml-tier-strip *::after { box-sizing: border-box; }

/* ===================================================================== */
/* PDP tier box                                                          */
/* ===================================================================== */

.ecml-tier-box {
    margin: 16px 0;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(1, 31, 48, 0.06);
}

.ecml-tier-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 15px;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(0, 56, 87, 0.9), rgba(1, 31, 48, 0) 60%),
        var(--tb-navy);
    color: #fff;
    border-bottom: 2px solid var(--tb-red);
}
.ecml-tier-box__title {
    font-family: var(--tb-font-display);
    font-size: 17px;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}
.ecml-tier-box__title span { color: #ff6d86; }
.ecml-tier-box__ends {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.ecml-tier-box__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.ecml-tier-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fbfbfc;
    border: 1px solid var(--tb-line);
    border-left-width: 4px;
    border-radius: 8px;
}
.ecml-tier-row--bronze { --tb-tier: var(--tb-bronze); border-left-color: var(--tb-bronze); }
.ecml-tier-row--silver { --tb-tier: var(--tb-silver); border-left-color: var(--tb-silver); }
.ecml-tier-row--gold   { --tb-tier: var(--tb-gold);   border-left-color: var(--tb-gold); background: #fffdf5; }

.ecml-tier-row__medal {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 33% 28%, rgba(255,255,255,0.85), var(--tb-tier, #ccc) 46%, rgba(0,0,0,0.32));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.ecml-tier-row__name {
    flex: 0 0 auto;
    min-width: 54px;
    font-family: var(--tb-font-display);
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}
.ecml-tier-row--bronze .ecml-tier-row__name { color: var(--tb-bronze); }
.ecml-tier-row--silver .ecml-tier-row__name { color: #6f7378; }
.ecml-tier-row--gold   .ecml-tier-row__name { color: #a8851a; }

.ecml-tier-row__unlock {
    flex: 1 1 auto;
    font-size: 12px;
    color: var(--tb-muted);
}
.ecml-tier-row__unlock b { color: var(--tb-ink); font-weight: 700; }

.ecml-tier-row__price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ecml-tier-row__pct {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.ecml-tier-row--bronze .ecml-tier-row__pct { color: var(--tb-bronze); }
.ecml-tier-row--silver .ecml-tier-row__pct { color: #6f7378; }
.ecml-tier-row--gold   .ecml-tier-row__pct { color: #a8851a; }
.ecml-tier-row__line { display: inline-flex; align-items: baseline; gap: 2px; }
.ecml-tier-row__amount {
    font-family: var(--tb-font-display);
    font-size: 19px;
    letter-spacing: 0.01em;
    color: var(--tb-ink);
}
.ecml-tier-row--gold .ecml-tier-row__amount { color: #7a5f0e; }
.ecml-tier-row__uom { font-size: 10.5px; color: var(--tb-muted); }

.ecml-tier-box__foot {
    padding: 9px 15px 11px;
    border-top: 1px solid var(--tb-line);
    font-size: 11px;
    line-height: 1.5;
    color: var(--tb-muted);
}
.ecml-tier-box__foot b { color: var(--tb-ink); font-weight: 700; }

@media (max-width: 400px) {
    .ecml-tier-row { flex-wrap: wrap; }
    .ecml-tier-row__unlock { flex-basis: 100%; order: 3; }
    .ecml-tier-row__price { margin-left: auto; }
}

/* ===================================================================== */
/* Category / listing tier strip (opt-in)                                */
/* ===================================================================== */

.ecml-tier-strip {
    display: flex;
    align-items: stretch;
    margin: 8px 0;
    border: 1px solid var(--tb-line);
    border-radius: 9px;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}
.ecml-tier-strip__tag {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
    background: var(--tb-navy);
    color: #fff;
    font-family: var(--tb-font-display);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
}
.ecml-tier-strip__tag span { color: #ff6d86; }
.ecml-tier-strip__cell {
    flex: 1 1 0;
    padding: 6px 8px 7px;
    text-align: center;
    background: #fbfbfc;
    border-left: 1px solid var(--tb-line);
}
.ecml-tier-strip__cell--gold { background: #fffdf5; }
.ecml-tier-strip__tier {
    display: block;
    font-family: var(--tb-font-display);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.ecml-tier-strip__cell--bronze .ecml-tier-strip__tier { color: var(--tb-bronze); }
.ecml-tier-strip__cell--silver .ecml-tier-strip__tier { color: #6f7378; }
.ecml-tier-strip__cell--gold   .ecml-tier-strip__tier { color: #a8851a; }
.ecml-tier-strip__price {
    display: block;
    font-family: var(--tb-font-display);
    font-size: 16px;
    line-height: 1.2;
    color: var(--tb-ink);
}
.ecml-tier-strip__cell--gold .ecml-tier-strip__price { color: #7a5f0e; }
.ecml-tier-strip__meta { display: block; font-size: 9.5px; color: var(--tb-muted); }

@media (max-width: 480px) {
    .ecml-tier-strip { flex-wrap: wrap; }
    .ecml-tier-strip__tag { width: 100%; padding: 5px 12px; text-align: center; }
    .ecml-tier-strip__cell { border-left: none; border-top: 1px solid var(--tb-line); }
    .ecml-tier-strip__cell + .ecml-tier-strip__cell { border-left: 1px solid var(--tb-line); }
    .ecml-tier-strip__cell--bronze { border-left: none; }
}
