/* Welcome Back Gift — promo popup, ribbon, account bar */

/* --- Homepage popup --- */
.stz-wbg-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.stz-wbg-popup.is-open {
    display: flex;
}

.stz-wbg-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.stz-wbg-popup__panel {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 800px;
    animation: stzWbgScaleIn 0.28s ease-out;
}

.stz-wbg-popup__close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.9);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.stz-wbg-popup__close:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: rotate(90deg);
}

.stz-wbg-popup__link {
    display: block;
    line-height: 0;
}

.stz-wbg-popup__image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.stz-wbg-popup__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    user-select: none;
}

.stz-wbg-popup__footer input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #e50914;
    cursor: pointer;
}

.stz-wbg-popup__footer label {
    cursor: pointer;
    margin: 0;
}

@media (min-width: 769px) {
    .stz-wbg-popup__panel {
        width: auto;
        max-width: min(800px, 95vw);
    }
}

@keyframes stzWbgScaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Download page ribbon (left) --- */
.stz-wbg-ribbon {
    position: fixed;
    left: 6px;
    top: 30%;
    transform: translateY(-50%);
    z-index: 9998;
    display: block;
    transition: transform 0.3s ease;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.stz-wbg-ribbon:hover {
    transform: translateY(-50%) translateX(6px);
}

.stz-wbg-ribbon__image {
    display: block;
    width: auto;
    max-width: 110px;
    height: auto;
}

@media (max-width: 1024px) {
    .stz-wbg-ribbon {
        top: 14%;
        left: auto;
        right: 8px;
        transform: none;
    }

    .stz-wbg-ribbon:hover {
        transform: translateY(-2px);
    }

    .stz-wbg-ribbon__image {
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .stz-wbg-account-bar {margin-top: 1rem;}
    .stz-wbg-ribbon__image {
        max-width: 72px;
    }
}

/* --- Account dashboard promo bar --- */
.stz-wbg-account-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(245, 197, 24, 0.12));
    border: 1px solid rgba(245, 197, 24, 0.35);
}

.stz-wbg-account-bar__text {
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.45;
    flex: 1 1 220px;
}

.stz-wbg-account-bar__text strong {
    color: #f5c518;
}

.stz-wbg-account-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #e50914;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.stz-wbg-account-bar__cta:hover {
    background: #c40812;
    color: #fff !important;
    transform: translateY(-1px);
}
