/* Blogtec October Sale – cart/checkout bar + [blogtec_october_sale] card */

.btos {
    --btos-red: #e5364b;
    --btos-red-dark: #c8233a;
    --btos-orange: #f7923a;
    --btos-yellow: #ffd83d;
    --btos-green: #1fa64a;
    --btos-ink: #111318;
    --btos-muted: #6b7280;
    --btos-line: #eceef2;
    --btos-track: #eceef2;
    --btos-gradient: linear-gradient(115deg, #e0304a 0%, #ec4d4b 45%, #f58a3c 100%);

    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
    color: var(--btos-ink);
    text-align: left;
}

.btos *,
.btos *::before,
.btos *::after {
    box-sizing: border-box;
}

.btos p,
.btos h3,
.btos ol {
    margin: 0;
    padding: 0;
}

.btos .amount,
.btos bdi {
    white-space: nowrap;
}

.btos-icon {
    width: 1em;
    height: 1em;
    flex: none;
    vertical-align: -0.125em;
}

/* ---------- Shared pieces ---------- */

.btos-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--btos-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.btos-timer {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Stepper ---------- */

.btos-steps {
    --btos-node: 40px;
    position: relative;
}

.btos-steps__track {
    position: relative;
    height: 8px;
    margin: calc(var(--btos-node) / 2) 0;
    border-radius: 999px;
    background: var(--btos-track);
}

.btos-steps__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--btos-gradient);
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btos-steps__fill--pending {
    background: repeating-linear-gradient(-45deg, rgba(229, 54, 75, 0.45) 0 6px, rgba(229, 54, 75, 0.2) 6px 12px);
}

.btos-steps__node {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--btos-node);
    height: var(--btos-node);
    border: 3px solid #fff;
    border-radius: 50%;
    background: #dfe2e8;
    color: var(--btos-muted);
    font-size: 13px;
    font-weight: 800;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(17, 19, 24, 0.12);
    transition: background 0.3s ease, color 0.3s ease;
}

.btos-steps__node.is-secured {
    background: var(--btos-gradient);
    color: #fff;
}

.btos-steps__node.is-pending {
    border: 2px dashed var(--btos-red);
    background: #fff;
    color: var(--btos-red);
}

.btos-steps__labels {
    display: grid;
    grid-template-columns: repeat(var(--btos-cols), minmax(0, 1fr));
    gap: 6px;
    list-style: none;
}

.btos-steps__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: var(--btos-muted);
}

.btos-steps__label strong {
    color: var(--btos-ink);
    font-size: 15px;
    font-weight: 700;
}

.btos-steps__label em {
    font-style: normal;
    font-weight: 700;
    color: var(--btos-green);
}

.btos-steps__label small {
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(31, 166, 74, 0.12);
    color: var(--btos-green);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.btos-steps__label.is-pending small {
    background: rgba(229, 54, 75, 0.1);
    color: var(--btos-red);
}

/* ---------- Cart / checkout bar ---------- */

.btos-bar {
    margin: 0 0 28px;
    padding: 18px 22px 16px;
    border-radius: 18px;
    background: var(--btos-gradient);
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(224, 48, 74, 0.55);
}

.btos-bar__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.btos-bar__msg {
    flex: 1 1 280px;
    font-size: 15px;
    color: #fff;
}

.btos-bar__msg strong {
    color: var(--btos-yellow);
    font-weight: 800;
}

.btos-bar__next {
    opacity: 0.92;
}

.btos-bar .btos-steps {
    --btos-node: 34px;
    margin-top: 6px;
}

.btos-bar .btos-steps__track {
    height: 6px;
    background: rgba(255, 255, 255, 0.28);
}

.btos-bar .btos-steps__fill {
    background: var(--btos-yellow);
}

.btos-bar .btos-steps__fill--pending {
    background: repeating-linear-gradient(-45deg, rgba(255, 216, 61, 0.9) 0 6px, rgba(255, 216, 61, 0.45) 6px 12px);
}

.btos-bar .btos-steps__node {
    border-color: rgba(255, 255, 255, 0.9);
    background: #f2a39a;
    color: #fff;
    box-shadow: none;
}

.btos-bar .btos-steps__node.is-secured {
    border-color: #fff;
    background: var(--btos-yellow);
    color: var(--btos-ink);
}

.btos-bar .btos-steps__node.is-pending {
    border: 2px dashed var(--btos-yellow);
    background: var(--btos-red-dark);
    color: var(--btos-yellow);
}

.btos-bar .btos-steps__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.btos-bar .btos-steps__label.is-secured,
.btos-bar .btos-steps__label.is-pending {
    color: #fff;
    font-weight: 700;
}

.btos-bar .btos-steps__label small,
.btos-bar .btos-steps__label.is-pending small {
    background: rgba(255, 255, 255, 0.18);
    color: var(--btos-yellow);
}

.btos-bar__note {
    margin-top: 10px !important;
    font-size: 14px;
}

.btos-bar__note a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Shortcode card ---------- */

.btos-card {
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px -20px rgba(17, 19, 24, 0.35), 0 2px 8px rgba(17, 19, 24, 0.06);
}

.btos-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 16px 22px 18px;
    background: var(--btos-gradient);
    color: #fff;
}

.btos-card__intro {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Theme and Elementor styles for headings/divs must not leak into the header. */
.btos .btos-card__head div,
.btos .btos-card__head h3 {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.btos .btos-card__intro,
.btos .btos-countdown,
.btos .btos-card__head h3 {
    background: none;
}

.btos .btos-card__head h3::before,
.btos .btos-card__head h3::after {
    content: none;
}

.btos .btos-card__title {
    color: var(--btos-yellow);
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.btos-countdown {
    display: flex;
    gap: 6px;
}

.btos-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
    padding: 5px 8px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    line-height: 1.1;
}

.btos-countdown__unit b {
    color: var(--btos-yellow);
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.btos-countdown__unit span {
    margin-top: 2px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btos-card__body {
    padding: 16px 20px 18px;
}

.btos-card__callout {
    display: flex;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 16px;
    border-left: 4px solid var(--btos-red);
    border-radius: 10px;
    background: #fff5f3;
}

.btos .btos-card__msg {
    flex: 1 1 340px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.btos-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btos a.btos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border: 2px solid var(--btos-ink);
    border-radius: 999px;
    background: var(--btos-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.btos a.btos-btn:hover,
.btos a.btos-btn:focus-visible {
    background: #2a2d35;
    color: #fff;
}

.btos a.btos-btn--ghost {
    background: #fff;
    color: var(--btos-ink);
}

.btos a.btos-btn--ghost:hover,
.btos a.btos-btn--ghost:focus-visible {
    background: var(--btos-ink);
    color: #fff;
}

.btos-card__msg strong {
    color: var(--btos-red);
    font-weight: 800;
}

.btos-card__msg a {
    color: var(--btos-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btos-card .btos-steps {
    --btos-node: 34px;
}

.btos-card .btos-steps__track {
    margin-top: 19px;
    margin-bottom: 14px;
}

.btos-card .btos-steps__label small {
    margin-top: 2px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    .btos-bar {
        padding: 16px 14px 14px;
        border-radius: 14px;
    }

    .btos-bar__msg {
        flex-basis: 100%;
        order: 3;
        font-size: 14px;
    }

    .btos-bar .btos-steps {
        --btos-node: 30px;
    }

    .btos-steps {
        --btos-node: 34px;
    }

    .btos-steps__node {
        font-size: 11px;
    }

    .btos-steps__label,
    .btos-bar .btos-steps__label {
        font-size: 11px;
    }

    .btos-steps__label strong {
        font-size: 13px;
    }

    .btos-steps__label small {
        padding: 2px 5px;
        font-size: 10px;
        white-space: normal;
    }

    .btos-card__head,
    .btos-card__body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .btos-countdown__unit {
        min-width: 48px;
    }

    .btos-countdown__unit b {
        font-size: 19px;
    }

    .btos .btos-card__msg {
        font-size: 15px;
    }

    .btos-card__actions,
    .btos-card__actions .btos-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btos-steps__fill,
    .btos-steps__node,
    .btos a.btos-btn {
        transition: none;
    }
}
