/* SST Sale Countdown Popup v1.0.0 */

/* ---------- Top bar ---------- */

.sst-cdbar[hidden],
.sst-cdmodal[hidden] {
    display: none !important;
}

.sst-cdbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 5px 8px;
    background: #121212;
    color: #ffffff;
    font-family: var(--sst-font, "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.sst-cdbar__inner {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
}

.sst-cdbar__flash {
    font-size: 14px;
}

.sst-cdbar__label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sst-cdbar__timer-wrap {
    color: #d7d7d7;
    white-space: nowrap;
}

.sst-cdbar__timer {
    display: inline-block;
    min-width: 70px;
    color: #ff6b6b;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.sst-cdbar__cta {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 14px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.sst-cdbar__cta:hover,
.sst-cdbar__cta:focus {
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
}

.sst-cdbar__close {
    flex: 0 0 auto;
    margin-left: 4px;
    border: 0;
    border-radius: 4px;
    padding: 6px 8px;
    background: transparent;
    color: #9a9a9a;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.sst-cdbar__close:hover {
    color: #ffffff;
}

/* Push the sticky theme header below the bar while the bar is visible. */
body.sst-cdbar-on .sst-header {
    top: 42px;
}

@media (max-width: 640px) {
    .sst-cdbar__label {
        display: none;
    }

    .sst-cdbar__inner {
        font-size: 12px;
        gap: 4px 8px;
    }

    body.sst-cdbar-on .sst-header {
        top: 40px;
    }
}

/* ---------- Center modal ---------- */

.sst-cdmodal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 24px);
    font-family: var(--sst-font, "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.sst-cdmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 18, 0.66);
}

.sst-cdmodal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    box-sizing: border-box;
    width: min(92vw, 460px);
    border-radius: 14px;
    padding: clamp(22px, 4vw, 34px) clamp(18px, 4vw, 30px);
    background: #ffffff;
    color: #121212;
    text-align: center;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.4);
    border-top: 5px solid #ef4444;
}

.sst-cdmodal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    background: transparent;
    color: #8a8a8a;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.sst-cdmodal__close:hover {
    color: #121212;
}

.sst-cdmodal__eyebrow {
    margin: 0;
    color: #ef4444;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.sst-cdmodal__title {
    margin: 0;
    font-size: clamp(20px, 3.4vw, 26px);
    font-weight: 800;
    line-height: 1.25;
}

.sst-cdmodal__deadline {
    margin: 0;
    color: #5f5f5f;
    font-size: 14px;
    font-weight: 600;
}

.sst-cdmodal__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0;
}

.sst-cdmodal__cell {
    display: grid;
    gap: 3px;
    min-width: 64px;
    border-radius: 10px;
    padding: 10px 6px 8px;
    background: #121212;
    color: #ffffff;
}

.sst-cdmodal__num {
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sst-cdmodal__unit {
    color: #b9b9b9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sst-cdmodal__sep {
    color: #cfcfcf;
    font-size: 24px;
    font-weight: 800;
}

.sst-cdmodal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto 0;
    border-radius: 999px;
    padding: 13px 34px;
    background: #ef4444;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35);
}

.sst-cdmodal__cta:hover,
.sst-cdmodal__cta:focus {
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
}

body.sst-cdmodal-open {
    overflow: hidden;
}

@media (max-width: 420px) {
    .sst-cdmodal__cell {
        min-width: 54px;
    }
}
