/* Mystery product styles */
.image-mystery-overlay-parent {
    position: relative;
}

.image-mystery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

// Product list radius
.product-item {
    .image-mystery-overlay {
        border-radius: 5px;
    }
}

// Slider radius
.product-brief-box {
    .image-mystery-overlay {
        border-radius: 8px;
    }
}

.mystery-product-brief-overlay-parent {
    position: relative;
}

// Note: different styles for slider and product list
// Shared styles
.slider-mystery-product-brief-overlay, .product-list-mystery-product-brief-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slider-mystery-product-brief-overlay {
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;

    .mystery-product-brief-countdown-text {
        color: rgb(102, 102, 102);
    }
}

.mystery-product-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.product-list-mystery-product-brief-overlay {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 8px;

    .product-list-mystery-product-brief {
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        align-items: flex-start;

        .mystery-product-brief-countdown-text {
            color: rgb(93, 93, 93);
        }
    }

    .product-list-mystery-product-brief-btn-container {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        .product-list-mystery-product-brief-btn {
            padding: 6px 12px;
            background: rgb(160, 160, 160);
            color: white;
            font-size: 14px;
            border-radius: 32px;
            min-width: fit-content;
            height: max-content;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
    }
}



.mystery-product-brief-countdown {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;

    /* Non-separator elements (hrs, mins, secs) */
    div:not(.mystery-product-brief-countdown-separator) {
        aspect-ratio: 1/1;
        width: 24px;
        height: 24px;
        background-color: rgb(102, 102, 102);
        padding: 2px 4px;
        border-radius: 4px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Separators */
    div.mystery-product-brief-countdown-separator {
        color: rgb(102, 102, 102);
    }
}

// Lottie animation
.product-brief-box .mystery-animation-container {
    // Top and left values will be set by script later, when the animation is played
    position: fixed;
    width: 500px;
    height: 500px;
    // -50% to center the animation, -60% to compensate for animation origin in the center (but not quite)
    transform: translate(-50%, -60%);
    pointer-events: none;
}