@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

/* ── Wrap ── */
.bstd-wrap {
    font-family: 'Figtree', sans-serif;
    padding: 20px 24px;
    background: #f9f8f6;
    border: 1px solid #e8e4dc;
    margin: 16px 0;
}

/* ── Message ── */
.bstd-msg {
    font-size: 13px;
    color: #555;
    margin: 0 0 16px;
    letter-spacing: .02em;
    line-height: 1.5;
}
.bstd-msg strong { color: #111; font-weight: 600; }
.bstd-msg--success {
    color: #111;
    font-weight: 500;
}

/* ── Steps ── */
.bstd-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.bstd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bstd-step-circle {
    width: 32px;
    height: 32px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    background: #fff;
    transition: all .25s;
}

.bstd-step.active .bstd-step-circle {
    background: #111;
    border-color: #111;
    color: #fff;
}

.bstd-step.next .bstd-step-circle {
    border-color: #111;
    border-style: dashed;
    color: #111;
}

.bstd-step-label {
    font-size: 11px;
    letter-spacing: .04em;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    transition: color .25s;
}
.bstd-step.active .bstd-step-label { color: #111; }
.bstd-step.next .bstd-step-label { color: #555; }

/* ── Connectors ── */
.bstd-connector {
    flex: 1;
    height: 1.5px;
    background: #ddd;
    margin-bottom: 18px;
    transition: background .25s;
}
.bstd-connector.active { background: #111; }

/* ── Cart notice ── */
.bstd-cart-notice {
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #f9f8f6;
    border-left: 3px solid #111;
    margin: 12px 0;
}
.bstd-cart-saving { color: #111; font-weight: 500; }
.bstd-cart-saving strong { color: #111; }
.bstd-cart-hint { color: #777; font-size: 12px; }
.bstd-cart-hint strong { color: #111; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .bstd-wrap { padding: 16px; }
    .bstd-step-circle { width: 26px; height: 26px; font-size: 11px; }
    .bstd-step-label { font-size: 10px; }
}

/* ── Mini cart bar ── */
.bstd-mini {
    font-family: 'Figtree', sans-serif;
    padding: 12px 16px;
    background: #f9f8f6;
    border-bottom: 1px solid #e8e4dc;
    margin-bottom: 8px;
}
.bstd-mini-msg {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: .02em;
}
.bstd-mini-msg strong { color: #111; font-weight: 600; }
.bstd-mini-msg.success { color: #111; font-weight: 500; }
.bstd-mini-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.bstd-mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #fff;
    flex-shrink: 0;
    transition: all .2s;
}
.bstd-mini-dot.on {
    background: #111;
    border-color: #111;
}
.bstd-mini-line {
    flex: 1;
    height: 1.5px;
    background: #ddd;
    transition: background .2s;
}
.bstd-mini-line.on { background: #111; }

/* ── Header banner ── */
.bstd-banner {
    font-family: 'Figtree', sans-serif;
    background: #111;
    color: #fff;
    padding: 10px 24px;
    text-align: center;
    width: 100%;
}
.bstd-banner--minimal {
    background: transparent;
    color: #111;
    border-bottom: 1px solid #e8e4dc;
    padding: 8px 24px;
}
.bstd-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.bstd-banner-icon { font-size: 14px; flex-shrink: 0; }
.bstd-banner-text {
    font-size: 12px;
    letter-spacing: .04em;
    line-height: 1.5;
}
.bstd-banner-text strong { font-weight: 600; }
.bstd-banner--minimal .bstd-banner-text { color: #444; }
.bstd-banner--minimal .bstd-banner-text strong { color: #111; }

@media (max-width: 600px) {
    .bstd-banner { padding: 8px 16px; }
    .bstd-banner-text { font-size: 11px; }
}

/* ── Banner mobile/desktop ── */
.bstd-mobile { display: none; }
.bstd-desktop { display: inline; }
@media (max-width: 768px) {
    .bstd-mobile  { display: inline; }
    .bstd-desktop { display: none; }
}

/* ── Cart discount row ── */
.bstd-discount-row th,
.bstd-discount-row td {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bstd-discount-row th { font-weight: 500; color: #444; }

/* ── Mini cart discount eilutė ── */
.bstd-mini-discount {
    font-family: 'Figtree', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin: 0 0 4px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #444;
}
.bstd-mini-discount strong {
    color: #2d7a2d;
    font-weight: 600;
    font-size: 14px;
}

/* ── Bounce + Glow animacijos ── */

/* Bounce – kai žingsnis tampa aktyvus */
@keyframes bstd-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    50%  { transform: scale(0.9); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Glow – pulsuojantis švytėjimas */
@keyframes bstd-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(17,17,17,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(17,17,17,0); }
}

/* Linija – užsipildymo animacija */
@keyframes bstd-fill {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}

.bstd-step.active .bstd-step-circle {
    animation: bstd-bounce .5s ease forwards, bstd-glow 2s ease-in-out 0.5s infinite;
}

/* Tik paskutinis aktyvus žingsnis bounces */
.bstd-step.active:not(:has(~ .bstd-step.active)) .bstd-step-circle {
    animation: bstd-bounce .5s ease forwards, bstd-glow 2s ease-in-out 0.5s infinite;
}

/* Ankstesni aktyvūs – tik glow */
.bstd-step.active:has(~ .bstd-step.active) .bstd-step-circle {
    animation: none;
    box-shadow: none;
}

/* Connector animacija */
.bstd-connector.active {
    animation: bstd-fill .4s ease forwards;
}

/* Mini cart dots */
@keyframes bstd-dot-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(17,17,17,0.5); }
    50%       { box-shadow: 0 0 0 4px rgba(17,17,17,0); }
}

.bstd-mini-dot.on {
    animation: bstd-dot-glow 2s ease-in-out infinite;
}
.bstd-mini-dot.on:last-of-type {
    animation: bstd-bounce .5s ease forwards, bstd-dot-glow 2s ease-in-out 0.5s infinite;
}
