/* DEV-4138: Black Friday sale bar */

/* The desktop header is fixed. Reserve its height including the Black Friday bar. */
@media (min-width: 768px) {
    body.body-has-urgency-countdown:has(#main_header .bf-bar):not(.pyl-order-process) #content {
        margin-top: var(--xm-header-height, 160px) !important;
    }
    body:has(#main_header .bf-bar) #thank-you-page {
        padding-top: 52px;
    }
}

.bf-bar {
    position: relative;
    overflow: hidden;
    clear: both;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    height: 52px;
    padding: 0 24px;
    background-color: #6e0072;
    background-image: linear-gradient(90deg, #4d0b44 0%, #6e0072 50%, #4d0b44 100%);
    color: #ffffff;
    white-space: nowrap;
    font-family: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif;
}
/* Beat W3Speedster #w3_bg_load (div:not(.w3_bg){background-image:none!important}) on initial paint */
.bf-bar.bf-bar {
    background-image: linear-gradient(90deg, #4d0b44 0%, #6e0072 50%, #4d0b44 100%) !important;
}
.bf-bar__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.bf-bar__stars > span {
    position: absolute;
    display: block;
}
.bf-bar__stars svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.bf-bar__text {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.bf-bar__label {
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.bf-bar__sep {
    flex: none;
    display: block;
    width: 10px;
    height: 10px;
}
.bf-bar__offer {
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
}
.bf-bar__pct {
    font-weight: 800;
    color: #f6d49a;
}
.bf-bar__divider {
    flex: none;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
}
.bf-bar__timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}
.bf-bar__ends {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}
.bf-bar__tile {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    padding: 4px 6px 3px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
}
.bf-bar__num {
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}
.bf-bar__unit {
    font-size: 11.5px;
    line-height: 1;
    font-weight: 700;
    color: #f6d49a;
}
.bf-bar__form {
    position: relative;
    flex: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.bf-bar__apply {
    position: relative;
    flex: none;
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    color: #6e0072;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.bf-bar__apply:not(:disabled):hover {
    background: #f6edf7;
}
.bf-bar__apply:disabled {
    cursor: default;
}
.bf-bar__apply:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}
.bf-bar__applied {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: default;
}
.bf-bar__status:not(:empty) {
    position: absolute;
    inset: auto 0 1px;
    text-align: center;
    font-size: 11px;
    line-height: 1;
    color: #f6d49a;
}
.bf-bar:has(.bf-bar__status:not(:empty)) {
    padding-bottom: 12px;
}

@media (min-width: 760px) and (max-width: 820px) {
    .bf-bar {
        gap: 14px;
        padding: 0 12px;
    }
    .bf-bar__text {
        gap: 8px;
    }
    .bf-bar__label {
        letter-spacing: 0.12em;
    }
}

/* Phones: 48px tall, without "every portrait", the star, the divider and "Ends in". */
@media (max-width: 759.98px) {
    .bf-bar {
        height: 48px;
        gap: 10px;
        padding: 0 10px;
    }
    .bf-bar__text {
        gap: 8px;
    }
    .bf-bar__label {
        font-size: 12.5px;
        letter-spacing: 0.06em;
    }
    .bf-bar__offer {
        font-size: 15px;
    }
    .bf-bar__timer {
        gap: 3px;
    }
    .bf-bar__tile {
        padding: 3px 4px 2px;
    }
    .bf-bar__num {
        font-size: 14px;
    }
    .bf-bar__unit {
        font-size: 10px;
    }
    .bf-bar__apply {
        padding: 0 9px;
        font-size: 11.5px;
    }
    .bf-only-wide {
        display: none !important;
    }
}

/* Narrow phones (360px - 389px: iPhone SE/mini, Galaxy S) */
@media (max-width: 389.98px) {
    .bf-bar {
        gap: 6px;
        padding: 0 8px;
    }
    .bf-bar__text {
        gap: 6px;
    }
    .bf-bar__label {
        font-size: 11.5px;
        letter-spacing: 0.03em;
    }
    .bf-bar__offer {
        font-size: 13.5px;
    }
    .bf-bar__timer {
        gap: 2px;
    }
    .bf-bar__tile {
        padding: 3px 3.5px 2px;
    }
    .bf-bar__num {
        font-size: 13px;
    }
    .bf-bar__unit {
        font-size: 9.5px;
    }
    .bf-bar__apply {
        height: 29px;
        padding: 0 7px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }
}

/* Extra-narrow phones (320px - 359px: iPhone SE 1st gen, compact Android) */
@media (max-width: 359.98px) {
    .bf-bar {
        gap: 5px;
        padding: 0 6px;
    }
    .bf-bar__text {
        gap: 5px;
    }
    .bf-bar__label {
        font-size: 10px;
        letter-spacing: 0.01em;
    }
    .bf-bar__offer {
        font-size: 12px;
    }
    .bf-bar__tile {
        padding: 2px 3px;
    }
    .bf-bar__num {
        font-size: 11.5px;
    }
    .bf-bar__unit {
        font-size: 9px;
    }
    .bf-bar__apply {
        height: 26px;
        padding: 0 6px;
        font-size: 10px;
        letter-spacing: 0.02em;
    }
}
