/* ScrumMaster Spend Rewards – progress widget. Plain CSS so it works with Luma, Blank and custom themes. */
:root {
    --boq-sr-accent: #e30613;
    --boq-sr-accent-soft: #fdecee;
    --boq-sr-ink: #1d1d1f;
    --boq-sr-muted: #6b6f76;
    --boq-sr-line: #e6e7ea;
    --boq-sr-track: #eceef1;
    --boq-sr-good: #1f7a3f;
    --boq-sr-info: #1b4e8c;
    --boq-sr-radius: 12px;
}

/* ---------- Shared ---------- */
.boq-sr-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--boq-sr-track);
    overflow: hidden;
}
.boq-sr-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--boq-sr-accent);
    transition: width .4s ease;
}
.boq-sr-label {
    display: block;
    font-size: 12px;
    color: var(--boq-sr-muted);
    letter-spacing: .02em;
}
.boq-sr-muted { color: var(--boq-sr-muted); }
.boq-sr-nudge { color: var(--boq-sr-accent); font-weight: 600; }

/* ---------- Header badge ---------- */
.boq-sr-badge-wrap {
    float: right;
    position: relative;
    margin: 0 0 0 16px;
    z-index: 101;
}
.boq-sr-badge { position: relative; }
.boq-sr-badge__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--boq-sr-line);
    border-radius: 999px;
    background: #fff;
    color: var(--boq-sr-ink);
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
}
.boq-sr-badge__pill:hover,
.boq-sr-badge.is-open .boq-sr-badge__pill { border-color: var(--boq-sr-accent); }
.boq-sr-badge__brand { font-weight: 600; }
.boq-sr-badge__pct { color: var(--boq-sr-accent); font-weight: 700; }
.boq-sr-badge__bar {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--boq-sr-track);
    overflow: hidden;
}
.boq-sr-badge__bar > span { display: block; height: 100%; background: var(--boq-sr-accent); }
.boq-sr-badge__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 300px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--boq-sr-line);
    border-radius: var(--boq-sr-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    text-align: left;
}
.boq-sr-badge__title { font-weight: 700; margin-bottom: 8px; }
.boq-sr-badge__amount { margin-bottom: 8px; font-size: 13px; color: var(--boq-sr-muted); }
.boq-sr-badge__amount strong { font-size: 18px; color: var(--boq-sr-ink); }
.boq-sr-badge__levels {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}
.boq-sr-badge__levels strong { font-size: 18px; color: var(--boq-sr-accent); margin-right: 4px; }
.boq-sr-badge__levels small { color: var(--boq-sr-muted); }
.boq-sr-badge__msg { font-size: 13px; margin: 0 0 8px; }
.boq-sr-badge__link { font-weight: 600; color: var(--boq-sr-accent); }

/* ---------- Cart / checkout / success notes ---------- */
.boq-sr-note {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--boq-sr-line);
    border-left: 4px solid var(--boq-sr-accent);
    border-radius: var(--boq-sr-radius);
    background: #fff;
}
.boq-sr-note__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.boq-sr-note__pct {
    flex: 0 0 auto;
    min-width: 56px;
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--boq-sr-accent-soft);
    color: var(--boq-sr-accent);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}
.boq-sr-note__body strong { display: block; margin-bottom: 4px; }
.boq-sr-note__body p { margin: 0 0 4px; font-size: 14px; }
.boq-sr-note__foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--boq-sr-muted);
}
.boq-sr-note__foot a { color: var(--boq-sr-accent); font-weight: 600; white-space: nowrap; }
.boq-sr-note--checkout { margin: 16px 0 0; padding: 12px; }
.boq-sr-note--checkout .boq-sr-note__pct { font-size: 16px; min-width: 48px; padding: 8px 6px; }

/* ---------- My Account > Rewards page ---------- */
.boq-sr-page { display: grid; gap: 20px; }

.boq-sr-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: -4px;
}
.boq-sr-titlebar .page-title { margin: 0; }
.boq-sr-titlebar__logo { display: block; max-height: 40px; max-width: 160px; width: auto; height: auto; }
.boq-sr-titlebar__brand { font-size: 26px; font-weight: 800; color: #111; letter-spacing: -.01em; }

.boq-sr-card {
    padding: 20px;
    border: 1px solid var(--boq-sr-line);
    border-radius: var(--boq-sr-radius);
    background: #fff;
}
.boq-sr-main__head { margin-bottom: 14px; }
.boq-sr-main__title,
.boq-sr-orders__title { margin: 0; font-size: 20px; font-weight: 700; }
.boq-sr-main__head p { margin: 4px 0 0; font-size: 13px; }

.boq-sr-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1.25fr) minmax(190px, .85fr) minmax(240px, 1.3fr);
    gap: 18px;
    align-items: start;
}
.boq-sr-grid--no-video { grid-template-columns: minmax(270px, 1.4fr) minmax(190px, 1fr); }

/* Ladder */
.boq-sr-ladder { position: relative; font-size: 12.5px; }
.boq-sr-ladder__head,
.boq-sr-rung {
    display: grid;
    grid-template-columns: 34px minmax(80px, 1fr) 130px;
    gap: 10px;
    align-items: center;
}
.boq-sr-ladder__head { font-weight: 700; margin-bottom: 4px; }
.boq-sr-ladder__head span:first-child { grid-column: 1 / span 2; }
.boq-sr-ladder__head span:nth-child(2) { display: none; }
.boq-sr-ladder__rows { list-style: none; margin: 0; padding: 0; }
.boq-sr-rung { height: 16px; margin: 0; line-height: 16px; color: #3a3d42; }
.boq-sr-rung__range { white-space: nowrap; }
.boq-sr-rung__bar { position: relative; height: 100%; display: flex; align-items: center; }
.boq-sr-rung__bar > span { display: block; width: 100%; }
.boq-sr-rung--locked .boq-sr-rung__bar > span { border-top: 1.5px dashed #c9ccd1; }
.boq-sr-rung--next .boq-sr-rung__bar > span { height: 3px; background: var(--boq-sr-accent); border-radius: 2px; }
.boq-sr-rung--done .boq-sr-rung__bar > span,
.boq-sr-rung--current .boq-sr-rung__bar > span { height: 12px; background: var(--boq-sr-accent); }
.boq-sr-rung--current { font-weight: 800; color: var(--boq-sr-ink); }
.boq-sr-rung--current .boq-sr-rung__pct { color: var(--boq-sr-ink); }
.boq-sr-cheer {
    position: absolute;
    top: 30px;
    /* Stay inside the bar column: never cover the % or the spend-tier labels. */
    left: 44px;
    right: 140px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px 3px 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    color: var(--boq-sr-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    pointer-events: none;
}
.boq-sr-cheer__face { flex: 0 0 auto; }
.boq-sr-cheer__text { min-width: 0; overflow-wrap: anywhere; }
.boq-sr-cheer__text span { display: block; }

/* Stat cards */
.boq-sr-stats { display: grid; gap: 14px; }
.boq-sr-stat {
    padding: 14px 16px;
    border: 1px solid var(--boq-sr-line);
    border-radius: 10px;
    background: #fff;
}
.boq-sr-stat--spend { border-color: var(--boq-sr-accent); }
.boq-sr-stat__title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.boq-sr-stat dl { margin: 0; }
.boq-sr-stat__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--boq-sr-line);
}
.boq-sr-stat__row:first-child { border-top: 0; }
.boq-sr-stat__row { flex-wrap: wrap; }
.boq-sr-stat__row dt { font-size: 12.5px; color: var(--boq-sr-muted); font-weight: 400; margin: 0; white-space: nowrap; }
.boq-sr-stat__row dd { margin: 0 0 0 auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.boq-sr-stat__row--main dt { color: var(--boq-sr-ink); }
.boq-sr-stat__row--main dd { font-size: 19px; font-weight: 800; color: var(--boq-sr-accent); }

/* Video */
.boq-sr-video {
    padding: 16px;
    border: 1px solid #f3dfa6;
    border-radius: 10px;
    background: #fff9e8;
}
.boq-sr-video__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}
.boq-sr-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.boq-sr-video__frame iframe,
.boq-sr-video__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.boq-sr-video__caption { margin: 10px 0 0; font-size: 13px; color: #3a3d42; }

/* Note strip + alerts */
.boq-sr-note-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 12.5px;
}
.boq-sr-note-strip a { color: #1a3fb8; font-weight: 700; text-decoration: underline; }
.boq-sr-alerts { display: grid; gap: 8px; margin-top: 8px; }
.boq-sr-alert {
    margin: 0;
    padding: 9px 12px;
    border-radius: 6px;
    background: var(--boq-sr-accent-soft);
    color: var(--boq-sr-accent);
    font-size: 13px;
}
.boq-sr-alert--strong { font-weight: 700; }
.boq-sr-alert--good { background: #ebf6ef; color: var(--boq-sr-good); }

/* Orders */
.boq-sr-orders__title { margin-bottom: 12px; font-size: 18px; }
.boq-sr-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 26px 16px;
    border: 1.5px dashed #d5d8dd;
    border-radius: 8px;
    background: #fafafa;
    color: #3a3d42;
    font-size: 13px;
}
.boq-sr-table-wrap { overflow-x: auto; }
.boq-sr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.boq-sr-table th,
.boq-sr-table td { padding: 8px 10px; border-bottom: 1px solid var(--boq-sr-line); text-align: left; }
.boq-sr-table tr.is-reversed td { color: var(--boq-sr-muted); text-decoration: line-through; }
.boq-sr-table tr.is-reversed em { text-decoration: none; }

@media (max-width: 1100px) {
    .boq-sr-grid { grid-template-columns: minmax(270px, 1.3fr) minmax(190px, 1fr); }
    .boq-sr-video { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .boq-sr-badge-wrap {
        float: none;
        position: absolute;
        right: 92px;
        top: 14px;
        margin: 0;
    }
    .boq-sr-badge__brand,
    .boq-sr-badge__bar { display: none; }
    .boq-sr-badge__pill { padding: 5px 9px; }
    .boq-sr-badge__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 64px;
        width: auto;
    }
    .boq-sr-note__foot { flex-direction: column; }

    .boq-sr-titlebar__logo { max-height: 30px; max-width: 110px; }
    .boq-sr-card { padding: 16px; }
    .boq-sr-grid,
    .boq-sr-grid--no-video { grid-template-columns: 1fr; }
    .boq-sr-ladder__head,
    .boq-sr-rung { grid-template-columns: 30px minmax(60px, 1fr) 118px; gap: 8px; }
    .boq-sr-ladder { font-size: 11.5px; }
    .boq-sr-cheer { left: 38px; right: 126px; }
    .boq-sr-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .boq-sr-stat { padding: 12px; }
    .boq-sr-stat__row { flex-direction: column; gap: 2px; align-items: flex-start; }
    .boq-sr-stat__row--main dd { font-size: 17px; }
    .boq-sr-note-strip { flex-direction: column; align-items: flex-start; }
    .boq-sr-table thead { display: none; }
    .boq-sr-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--boq-sr-line); }
    .boq-sr-table td { display: flex; justify-content: space-between; border: 0; padding: 4px 0; }
    .boq-sr-table td::before { content: attr(data-th); color: var(--boq-sr-muted); }
}
@media (max-width: 420px) {
    .boq-sr-stats { grid-template-columns: 1fr; }
    .boq-sr-stat__row { flex-direction: row; align-items: baseline; }
}
