/* Savings Insight in the mini cart (cart drawer). Slim version of the cart
   panel: dark card, red progress, small tier markers; then the tier line
   under the subtotal and a small green saving line. Loaded on every page
   (the drawer is on every page), so it stays small and scoped. */
:root:not(#ozbsi) .ozbsi-mini {
    background: var(--ozb-ink, #161615);
    color: #fff;
    border-radius: 8px;
    padding: 9px 12px 6px;
    margin: 0 0 10px;
    line-height: 1.3;
    font-size: 13px;
    text-align: left;
}

:root:not(#ozbsi) .ozbsi-mini__line {
    margin: 0 0 7px;
    padding: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

:root:not(#ozbsi) .ozbsi-mini__title {
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
}

:root:not(#ozbsi) .ozbsi-mini__hint {
    display: inline-block;
    color: rgba(255, 255, 255, .88);
}

:root:not(#ozbsi) .ozbsi-mini .woocommerce-Price-amount,
:root:not(#ozbsi) .ozbsi-mini bdi {
    color: #fff;
    font-weight: 700;
    font-size: inherit;
}

:root:not(#ozbsi) .ozbsi-mini__bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    overflow: hidden;
}

:root:not(#ozbsi) .ozbsi-mini__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ozb-red-dk, #A51A26), #E5303F);
}

:root:not(#ozbsi) .ozbsi-mini__tick {
    position: absolute;
    top: 0;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    background: rgba(255, 255, 255, .35);
}

:root:not(#ozbsi) .ozbsi-mini__tick.is-reached {
    background: rgba(255, 255, 255, .85);
}

:root:not(#ozbsi) .ozbsi-mini__marks {
    position: relative;
    height: 15px;
    margin-top: 2px;
    font-size: 10px;
    line-height: 15px;
    color: rgba(255, 255, 255, .6);
}

:root:not(#ozbsi) .ozbsi-mini__mark {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* The last tier sits at 100%: keep its label inside the card. */
:root:not(#ozbsi) .ozbsi-mini__mark:last-child {
    transform: translateX(-100%);
}

:root:not(#ozbsi) .ozbsi-mini__mark.is-reached {
    color: #fff;
    font-weight: 700;
}

/* Tier line under the subtotal, laid out like the subtotal row. */
:root:not(#ozbsi) .ozbsi-mini-tier {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
}

:root:not(#ozbsi) .ozbsi-mini-tier__label {
    font-weight: 600;
}

:root:not(#ozbsi) .ozbsi-mini-tier__amount,
:root:not(#ozbsi) .ozbsi-mini-tier__amount .woocommerce-Price-amount,
:root:not(#ozbsi) .ozbsi-mini-tier__amount bdi {
    color: var(--ozb-red, #C8202F);
    font-weight: 700;
}

/* Saving line after the Total. */
:root:not(#ozbsi) .ozbsi-mini-save {
    margin: 6px 0 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #EAF6EE;
    color: var(--ozb-ink, #1a1a1a);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

:root:not(#ozbsi) .ozbsi-mini-save__amount,
:root:not(#ozbsi) .ozbsi-mini-save__amount .woocommerce-Price-amount,
:root:not(#ozbsi) .ozbsi-mini-save__amount bdi {
    color: var(--ozb-green, #1f7a32);
    font-weight: 700;
}
