.conversite-sale-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    isolation: isolate;

    /* Boost-store palette */
    --csb-bg: #001020;
    --csb-accent: #dc5812;
    --csb-text: rgba(255, 255, 255, 0.96);
    --csb-text-muted: rgba(255, 255, 255, 0.78);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    /* Modern announcement bar look */
    background:
        radial-gradient(1100px 140px at 12% 0%, rgba(220, 88, 18, 0.28), transparent 62%),
        radial-gradient(900px 160px at 88% 0%, rgba(255, 120, 50, 0.22), transparent 58%),
        linear-gradient(180deg, rgba(8, 22, 40, 0.92) 0%, rgba(0, 14, 28, 0.98) 100%);
    color: var(--csb-text);
    border-bottom: 1px solid rgba(220, 88, 18, 0.22);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    backdrop-filter: saturate(1.15) blur(6px);

    animation: slideDown 0.45s cubic-bezier(.2,.9,.2,1);
}

/* Subtle glow + accent separator to visually detach from header */
.conversite-sale-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 10px 30px rgba(220, 88, 18, 0.10);
}

.conversite-sale-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(220, 88, 18, 0) 0%,
        rgba(220, 88, 18, 0.65) 20%,
        rgba(255, 140, 60, 0.85) 50%,
        rgba(220, 88, 18, 0.65) 80%,
        rgba(220, 88, 18, 0) 100%
    );
    opacity: 0.85;
}

:root {
    --conversite-sale-banner-offset: 0px;
}

body.has-conversite-sale-banner-top {
    padding-top: var(--conversite-sale-banner-offset);
}

.conversite-sale-banner__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
}

.conversite-sale-banner__content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.25;
    padding-right: 34px; /* keep space for close button */
}

.conversite-sale-banner__text {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.conversite-sale-banner__title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.conversite-sale-banner__subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.15px;

    /* Accent badge */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(220, 88, 18, 0.16);
    border: 1px solid rgba(220, 88, 18, 0.34);
    box-shadow: 0 10px 24px rgba(220, 88, 18, 0.12);
}

.conversite-sale-banner__subtitle::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--csb-accent);
    box-shadow: 0 0 0 4px rgba(220, 88, 18, 0.18);
}

.conversite-sale-banner__timer {
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.conversite-sale-banner__timer::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--csb-accent);
    box-shadow: 0 0 0 4px rgba(220, 88, 18, 0.18);
}

.conversite-sale-banner__timer .timer-countdown {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
}

.conversite-sale-banner__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    padding: 4px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.85;
    transition: opacity .2s, transform .2s, background-color .2s, border-color .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.conversite-sale-banner__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

@media (max-width: 768px) {
    .conversite-sale-banner__content {
        flex-direction: column;
        gap: 10px;
    }
    .conversite-sale-banner__inner {
        padding: 12px 48px 12px 16px;
    }
    .conversite-sale-banner__content {
        padding-right: 0;
    }
    .conversite-sale-banner__title {
        font-size: 14px;
    }
    .conversite-sale-banner__subtitle {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .conversite-sale-banner__subtitle {
        display: none;
    }
    .conversite-sale-banner__timer {
        padding: 6px 8px;
    }
}

/* === Прилипает сверху (по умолчанию) === */
.conversite-sale-banner--top {
    position: fixed;
    top: 0;
    z-index: 9999;
    animation: slideDown 0.45s cubic-bezier(.2,.9,.2,1);
}

/* === Плавающий (всплывает снизу) === */
.conversite-sale-banner--floating {
    position: fixed;
    bottom: 20px;
    left: 100%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 100%;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: floatUp 0.8s ease-out;
}

.conversite-sale-banner--floating .conversite-sale-banner__inner {
    padding: 16px 24px;
    border-radius: 12px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.conversite-sale-banner--floating .conversite-sale-banner__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимации */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

@keyframes floatUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.conversite-sale-banner.banner-hide {
    opacity: 0;
    transform: translateY(-100%);
    transition: all .4s ease-out;
}