/************** black-friday-2026 sale banner **************/
/* Markup: templates/components/banners/black_friday_2026_banner.html
   Behaviour (countdown, slide-in, close): td_static/js/flash_banner/custom.js
   Design: Figma "Tweet Delete Black Friday Sale 2026 (Banner Only)" */

body.flash-sale-banner-open {
    margin-top: 70px;
}
body.flash-sale-banner-open .fixed-top {
    top: 70px;
}

.bf2026-banner {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 999;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 80px 0 10px;
    box-sizing: border-box;
    color: #FFF;
    background-color: #00142A;
    background-image: url("/static/images/flash_banner/black-friday-2026-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: top .7s ease-in-out, visibility .7s ease-in-out;
}

.bf2026-banner .flash-clickable-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 9;
}

/* Pill + headline */
.bf2026-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.bf2026-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    border-radius: 999px;
    background: #00ACEC;
    border: 2px solid #5FD6FF;
    box-shadow: 0 0 18px rgba(0, 172, 236, 0.55);
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.bf2026-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: left;
}
.bf2026-headline {
    color: #FFF;
    white-space: nowrap;
}
.bf2026-headline-mobile { display: none; }
.bf2026-offer {
    color: #00A9EE;
    white-space: nowrap;
}

/* Countdown */
.bf2026-banner .flash-sale-banner-timer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bf2026-banner .flash-sale-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42px;
    line-height: 1;
    text-align: center;
}
.bf2026-banner .flash-sale-timer-block > span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border-radius: 5px;
    background: #0A2B50;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFF;
    font-size: 15px;
    font-weight: 600;
}
.bf2026-banner .flash-sale-timer-block .flash-sale-hour-block {
    display: block;
    margin-top: 4px;
    color: #FFF;
    font-size: 9px;
    font-weight: 400;
    text-transform: none;
}

/* Close button: square on the right edge */
.bf2026-banner .flash-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 70px;
    width: 70px;
    cursor: pointer;
    z-index: 99;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), #00AEEE;
}
.bf2026-banner .flash-close-btn::before,
.bf2026-banner .flash-close-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.5px;
    height: 26px;
    margin: -13px 0 0 -1px;
    background: #FFF;
    border-radius: 2px;
}
.bf2026-banner .flash-close-btn::before { transform: rotate(45deg); }
.bf2026-banner .flash-close-btn::after  { transform: rotate(-45deg); }

/* Tablet */
@media (max-width: 1100px) {
    .bf2026-banner { gap: 16px; }
    .bf2026-text { font-size: 18px; }
    .bf2026-pill { height: 30px; padding: 0 14px; font-size: 12px; }
}

/* Mobile: pill + "Deletion Discount:" on one line, offer below, timer on the right */
@media (max-width: 600px) {
    .bf2026-banner {
        justify-content: space-between;
        gap: 8px;
        padding: 0 50px 0 8px;
        background-image: url("/static/images/flash_banner/black-friday-2026-mobile-bg.png");
        background-position: left center;
    }
    .bf2026-content {
        flex-wrap: wrap;
        gap: 3px 6px;
        max-width: calc(100% - 140px);
    }
    .bf2026-pill {
        height: 20px;
        padding: 0 8px;
        font-size: 8px;
        border-width: 1.5px;
        box-shadow: 0 0 10px rgba(0, 172, 236, 0.55);
    }
    .bf2026-headline-desktop { display: none; }
    .bf2026-headline-mobile { display: inline; }
    .bf2026-text {
        display: contents;
        font-size: 10.5px;
        letter-spacing: 0.01em;
    }
    .bf2026-headline {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.01em;
    }
    .bf2026-offer {
        flex: 0 0 100%;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.01em;
        white-space: normal;
    }
    .bf2026-banner .flash-sale-banner-timer { gap: 4px; }
    .bf2026-banner .flash-sale-timer-block { width: 30px; }
    .bf2026-banner .flash-sale-timer-block > span:first-child {
        width: 26px;
        height: 24px;
        font-size: 12px;
    }
    .bf2026-banner .flash-sale-timer-block .flash-sale-hour-block { font-size: 8px; margin-top: 3px; }
    .bf2026-banner .flash-close-btn { width: 44px; }
    .bf2026-banner .flash-close-btn::before,
    .bf2026-banner .flash-close-btn::after { height: 18px; margin-top: -9px; width: 2px; }
}

@media (max-width: 360px) {
    .bf2026-content { max-width: calc(100% - 120px); }
    .bf2026-pill { font-size: 8px; padding: 0 8px; height: 20px; }
    .bf2026-headline, .bf2026-offer { font-size: 10px; }
    .bf2026-banner .flash-sale-timer-block { width: 26px; }
    .bf2026-banner .flash-sale-timer-block > span:first-child { width: 24px; height: 22px; font-size: 11px; }
}
/************** black-friday-2026 sale banner end **************/
