/************** black-friday-2026 sale banner **************/
/* Markup: templates/common/black_friday_2026_banner.html
   Design: Figma "TE - Banner - Black Friday 2026" (desktop 1440x57, mobile 430x83) */

.bf2026-banner {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 57px;
    padding: 15px 64px;
    background: #2e363f;
    text-align: center;
    color: #fff;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* The whole strip is the click target: an overlay link, or the X sign-in form's button */
.bf2026-form {
    margin: 0;
}
.bf2026-banner .bf2026-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    cursor: pointer;
}
.bf2026-banner .bf2026-hit:focus-visible {
    outline: 2px solid #1da1f2;
    outline-offset: -2px;
}

.bf2026-content,
.bf2026-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.bf2026-pill {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 100px;
    background: linear-gradient(to right, #1da1f2, #056cac);
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}
.bf2026-headline {
    font-size: 16px;
    white-space: nowrap;
}
.bf2026-offer {
    padding: 3px 7px;
    border: 1px solid #1998e7;
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Close button: square on the right edge */
.bf2026-banner .bf2026-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    background: #2e363f;
    cursor: pointer;
}
.bf2026-close-mobile {
    display: none;
}

/* Dashboard pages: keep clear of the fixed left sidebar */
@media (min-width: 768px) {
    body:has(.tw-eraser-dashboard-left-sidebar) .bf2026-banner {
        margin-left: 22%; /* sidebar width in style.css */
    }
}

/* Mobile: pill + headline on the first row, offer box on the second */
@media (max-width: 600px) {
    .bf2026-banner {
        min-height: 83px;
        padding: 15px 50px;
    }
    .bf2026-content {
        flex-direction: column;
        align-items: stretch;
        width: 258px;
        max-width: 100%;
    }
    .bf2026-row {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .bf2026-pill {
        font-size: 12px;
    }
    .bf2026-headline {
        white-space: normal;
    }
    .bf2026-offer {
        font-size: 14px;
        letter-spacing: 0.84px;
        white-space: normal;
    }
    .bf2026-banner .bf2026-close {
        top: 50%;
        width: 50px;
        height: 83px;
        max-height: 100%;
        transform: translateY(-50%);
    }
    .bf2026-close-desktop {
        display: none;
    }
    .bf2026-close-mobile {
        display: block;
    }
}
/************** black-friday-2026 sale banner end **************/
