/* BT-1910: Black Friday 2026 top bar for the Awaken Performance pages.
   Figma "Black friday 2026" > "2026 / Navbar / separate exports" >
   bf2026-nav-v2-black-friday-tuning desktop 1440x30 / mobile 390x43.
   Rendered by components/topbar-bf2026.html.twig in place of the Money Back
   Guarantee pre-header while appPerformance.isSaleActiveBF is true.
   The bar is sticky at the viewport top and the sticky #header that follows it
   is pushed down by the bar height, so both stay visible while scrolling. */

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

/* Self-hosted, SIL OFL (../fonts/BebasNeue/OFL.txt). */
@font-face {
    font-family: 'BebasNeue';
    src: url('../fonts/BebasNeue/BebasNeue-Regular.ttf') format('truetype');
    font-display: swap;
}

#bf2026-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* one above bootstrap .sticky-top (#header): once scrolled, the header's
       transparent 40px top padding (#header.bg-black) overlaps the bar and must
       not swallow clicks on SHOP NOW; the side cart (1021) still overlays both */
    z-index: 1021;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    overflow: hidden;
    color: #030405;
    background-color: #030405;
    background-image:
        linear-gradient(rgba(3, 4, 5, 0.66), rgba(3, 4, 5, 0.66)),
        linear-gradient(rgba(3, 4, 5, 0.5), rgba(3, 4, 5, 0.5)),
        url('../img/bf2026/motion-texture.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(237, 48, 36, 0.6);
}

/* The page header is bootstrap .sticky-top (top: 0); stack it under the bar. */
#bf2026-topbar ~ #header.sticky-top {
    top: 30px;
}

/* Desktop scroll state: app.js adds .bg-black past 35px and style-performance.css
   then gives the header 40px of transparent top padding with top: -40px so the
   black nav sits flush at the viewport top. Keep that offset relative to the bar. */
@media only screen and (min-width: 1024px) {
    #bf2026-topbar ~ #header.sticky-top.bg-black {
        top: -10px;
    }
}

#bf2026-topbar .bf2026-topbar__accents {
    position: absolute;
    top: -4px;
    height: 38px;
    line-height: 0;
    pointer-events: none;
}

#bf2026-topbar .bf2026-topbar__accents--left {
    left: calc(50% - 620px);
}

#bf2026-topbar .bf2026-topbar__accents--right {
    left: calc(50% + 440px);
}

#bf2026-topbar .bf2026-topbar__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
    padding: 0;
}

#bf2026-topbar .bf2026-topbar__title {
    font-family: 'BebasNeue', 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0;
    color: #030405;
    -webkit-text-stroke: 2px #ed3024;
    paint-order: stroke fill;
    margin-right: 22px;
}

#bf2026-topbar .bf2026-topbar__offer {
    display: inline-flex;
    align-items: baseline;
    margin-right: 28px;
}

#bf2026-topbar .bf2026-topbar__upto {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    color: #ed3024;
    margin-right: 3px;
}

#bf2026-topbar .bf2026-topbar__discount {
    font-family: 'BebasNeue', 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1;
    color: #ffffff;
}

#bf2026-topbar .bf2026-topbar__cta {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 30px;
    width: 158px;
    margin: 0;
    padding: 0 20px 0 24px;
    border: 0;
    border-radius: 0;
    outline: 0;
    cursor: pointer;
    background-color: #ed3024;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    -webkit-appearance: none;
    appearance: none;
}

#bf2026-topbar .bf2026-topbar__cta:hover,
#bf2026-topbar .bf2026-topbar__cta:focus {
    background-color: #ff3d30;
}

#bf2026-topbar .bf2026-topbar__cta-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    color: #030405;
    white-space: nowrap;
}

#bf2026-topbar .bf2026-topbar__cta-arrow {
    width: 16px;
    height: 12px;
    margin-left: auto;
}

@media screen and (max-width: 767px) {
    #bf2026-topbar {
        height: 43px;
        border-bottom: 0;
    }

    #bf2026-topbar ~ #header.sticky-top {
        top: 43px;
    }

    #bf2026-topbar .bf2026-topbar__accents {
        display: none;
    }

    #bf2026-topbar .bf2026-topbar__content {
        justify-content: space-between;
        padding: 0 8px 0 7px;
    }

    #bf2026-topbar .bf2026-topbar__title {
        margin-right: 10px;
    }

    #bf2026-topbar .bf2026-topbar__offer {
        margin-right: 12px;
    }

    #bf2026-topbar .bf2026-topbar__upto {
        margin-right: 4px;
    }

    #bf2026-topbar .bf2026-topbar__cta {
        height: 26px;
        width: 119px;
        padding: 0 12px 0 15px;
    }

    #bf2026-topbar .bf2026-topbar__cta-text {
        font-size: 10px;
    }

    #bf2026-topbar .bf2026-topbar__cta-arrow {
        width: 15px;
        height: 11px;
    }
}

/* Phones narrower than the 390px Figma frame (iPhone SE/8 = 375, small Androids = 360/320):
   keep every piece on one line and scale the type down instead of letting the flex items
   shrink and wrap their text. */
@media screen and (max-width: 767px) {
    #bf2026-topbar .bf2026-topbar__title,
    #bf2026-topbar .bf2026-topbar__offer,
    #bf2026-topbar .bf2026-topbar__upto,
    #bf2026-topbar .bf2026-topbar__discount,
    #bf2026-topbar .bf2026-topbar__cta {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media screen and (max-width: 389px) {
    #bf2026-topbar .bf2026-topbar__title {
        font-size: 26px;
        margin-right: 8px;
    }

    #bf2026-topbar .bf2026-topbar__offer {
        margin-right: 8px;
    }

    #bf2026-topbar .bf2026-topbar__discount {
        font-size: 22px;
    }

    #bf2026-topbar .bf2026-topbar__cta {
        width: 108px;
        padding: 0 10px 0 13px;
    }
}

@media screen and (max-width: 359px) {
    #bf2026-topbar .bf2026-topbar__content {
        padding: 0 5px 0 4px;
    }

    #bf2026-topbar .bf2026-topbar__title {
        font-size: 22px;
        margin-right: 6px;
    }

    #bf2026-topbar .bf2026-topbar__offer {
        margin-right: 6px;
    }

    #bf2026-topbar .bf2026-topbar__upto {
        font-size: 9px;
        margin-right: 3px;
    }

    #bf2026-topbar .bf2026-topbar__discount {
        font-size: 19px;
    }

    #bf2026-topbar .bf2026-topbar__cta {
        width: 96px;
        padding: 0 8px 0 11px;
    }

    #bf2026-topbar .bf2026-topbar__cta-text {
        font-size: 9px;
    }
}
