.black-friday-sale[hidden] {
    display: none !important;
}

.black-friday-sale {
    position: relative;
    z-index: 4;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 48% -170%, rgba(255, 111, 12, 0.3), transparent 52%),
        linear-gradient(90deg, #050505 0%, #111 48%, #070707 100%);
    border-top: 1px solid rgba(255, 118, 24, 0.55);
    border-bottom: 1px solid rgba(255, 118, 24, 0.78);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
    isolation: isolate;
}

.black-friday-sale::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}

.black-friday-sale-inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 98px;
    margin: 0 auto;
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.25fr) auto auto;
    align-items: center;
    gap: 28px;
}

.black-friday-sale-event {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.black-friday-sale-eyebrow {
    color: #aaa;
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.black-friday-sale-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.black-friday-sale-name strong {
    font-size: clamp(1.55rem, 2.35vw, 2.25rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.black-friday-sale-name strong:last-child {
    color: #ff7618;
    text-shadow: 0 0 26px rgba(255, 118, 24, 0.35);
}

.black-friday-sale-message {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.black-friday-sale-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: #ff9b55;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.black-friday-sale-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff7618;
    box-shadow: 0 0 0 4px rgba(255, 118, 24, 0.14), 0 0 14px rgba(255, 118, 24, 0.72);
}

.black-friday-sale-message > strong {
    overflow: hidden;
    font-size: clamp(1rem, 1.55vw, 1.3rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.black-friday-sale-message > span:last-child {
    overflow: hidden;
    color: #c8c8c8;
    font-size: 0.79rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.black-friday-sale-deadline {
    min-width: 126px;
    padding: 10px 14px;
    display: grid;
    gap: 1px;
    border: 1px solid rgba(255, 118, 24, 0.34);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.black-friday-sale-deadline span,
.black-friday-sale-deadline small {
    color: #aaa;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.black-friday-sale-deadline strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.black-friday-sale-link {
    min-width: 190px;
    min-height: 52px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #ff8a36;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, #f77619, #d65300);
    box-shadow:
        0 11px 27px rgba(211, 82, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.black-friday-sale-arrow {
    font-size: 1.08rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.black-friday-sale-link:hover {
    color: #fff;
    background: linear-gradient(180deg, #ff8738, #e75e05);
    box-shadow:
        0 14px 31px rgba(231, 94, 5, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.black-friday-sale-link:hover .black-friday-sale-arrow {
    transform: translateX(4px);
}

.black-friday-sale-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 1050px) {
    .black-friday-sale-inner {
        grid-template-columns: minmax(195px, 0.8fr) minmax(290px, 1.2fr) auto;
        gap: 20px;
    }

    .black-friday-sale-deadline {
        display: none;
    }
}

@media (max-width: 760px) {
    .black-friday-sale-inner {
        width: min(100% - 28px, 620px);
        min-height: 0;
        padding: 15px 0 16px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 18px;
    }

    .black-friday-sale-event {
        grid-column: 1;
        grid-row: 1;
    }

    .black-friday-sale-message {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .black-friday-sale-message > strong,
    .black-friday-sale-message > span:last-child {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .black-friday-sale-deadline {
        grid-column: 2;
        grid-row: 1;
        min-width: 112px;
        padding: 8px 11px;
        display: grid;
    }

    .black-friday-sale-link {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 420px) {
    .black-friday-sale-inner {
        gap: 11px 12px;
    }

    .black-friday-sale-name {
        gap: 6px;
    }

    .black-friday-sale-name strong {
        font-size: 1.45rem;
    }

    .black-friday-sale-deadline {
        min-width: 104px;
    }

    .black-friday-sale-message > strong {
        font-size: 1.02rem;
    }

    .black-friday-sale-message > span:last-child {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .black-friday-sale-link,
    .black-friday-sale-arrow {
        transition: none;
    }
}

.cart-summary .cart-black-friday-savings {
    color: #f08a2b;
    border-block: 1px solid rgba(240, 138, 43, 0.26);
    padding-block: 10px;
}

.cart-summary .cart-black-friday-savings[hidden] {
    display: none;
}

.cart-summary .cart-black-friday-savings strong {
    color: #6fcf8c;
    font-weight: 800;
}

.cart-item-price.has-black-friday-price {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.cart-item-sale-current {
    color: #f07820;
    font-size: 1.05em;
    font-weight: 900;
}

.cart-item-sale-original {
    color: #999;
    font-size: 0.8em;
    font-weight: 600;
}

.cart-item-sale-badge {
    color: #6fcf8c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .cart-item-price.has-black-friday-price {
        justify-items: start;
    }
}
