/* Top Bar */

.black-friday-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FF5F16;
    color: white;
    z-index: 390;
}

.black-friday-top-bar + .whb-main-header {
    top: 60px !important;
    position: fixed !important;
}

.black-friday-top-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 60px;
}

.black-friday-top-bar p {
    margin: 0;
    font-size: 20px;
    line-height: 1.1875;
    font-weight: 700;
    color: white;
    text-align: center;
}

.black-friday-top-bar a.btn {
    background-color: white;
    font-size: 16px;
    font-weight: 700;
    color: #FF5F16;
    transition: background-color 0.4s ease;
}

.black-friday-top-bar a.btn:hover {
    background-color: #f3f3f3;
}

@media screen and (max-width: 992px) {
    .black-friday-top-bar p {
        font-size: 16px;
    }
}

@media screen and (max-width: 767px) {
    .black-friday-top-bar__inner {
        height: auto;
        padding: 11px 0;
        flex-direction: column;
    }

    .black-friday-top-bar + .whb-main-header {
        top: 93px !important;
    }
}

@media screen and (max-width: 575px) {
    .black-friday-top-bar__inner {
        min-height: 112px;
    }

    .black-friday-top-bar + .whb-main-header {
        top: 112px !important;
    }
}

/* Popup */

.black-friday-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 30px 0;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.black-friday-popup .container {
    height: 100%;
    transform-origin: center center;
    transform: scale(0.65);
    transition: transform 0.6s ease;
}

.black-friday-popup__window {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 518;
}

.black-friday-popup.visible {
    opacity: 1;
    pointer-events: all;
}

.black-friday-popup.visible .container {
    transform: scale(1);
}

.black-friday-popup__window a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: filter 0.4s ease;
}

.black-friday-popup__window a:hover {
    filter: brightness(0.85);
}

.black-friday-popup__window img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.black-friday-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    padding: 2px;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.4s ease;
}

.black-friday-popup__close:hover {
    transform: scale(1.15);
}

.black-friday-popup__close svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 767px) {
    .black-friday-popup__window {
        max-width: calc(100% - 70px);
        border-radius: 10px;
    }
}

@media screen and (max-width: 575px) {
    .black-friday-popup__window {
        max-width: calc(100% - 50px);
    }

    .black-friday-popup__close {
        top: 4px;
        right: 4px;
        padding: 6px;
    }
}

/* Header Fix */

body:has(.black-friday-top-bar) header.whb-header {
    padding-top: 150px !important;
}

@media screen and (max-width: 575px) {
    body:has(.black-friday-top-bar) header.whb-header {
        padding-top: 172px !important;
    }
}
