/* Overlay sfondo */
.bestcredits-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

/* Overlay attivo */
.bestcredits-popup-overlay.active {
    display: flex;
}

/* Box popup */
.bestcredits-popup-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 22px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
    text-align: left;
    animation: bestcreditsFadeIn 0.25s ease;
}

/* Titolo */
.bestcredits-popup-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

/* Contenuto */
.bestcredits-popup-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.bestcredits-popup-content p {
    margin: 0 0 10px;
}

.bestcredits-popup-content p:last-child {
    margin-bottom: 0;
}

/* Bottone chiusura (X) */
.bestcredits-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0;
}

.bestcredits-popup-close:hover {
    opacity: 0.7;
}

/* Link trigger */
.bestcredits-trigger {
    cursor: pointer;
    text-decoration: none;
}

.bestcredits-trigger:hover {
    opacity: 0.8;
}

/* Animazione apertura */
@keyframes bestcreditsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {

    .bestcredits-popup-box {
        max-width: 92%;
        padding: 22px 18px 18px;
        border-radius: 12px;
    }

    .bestcredits-popup-box h3 {
        font-size: 18px;
    }

    .bestcredits-popup-content {
        font-size: 13px;
    }

    .bestcredits-popup-close {
        font-size: 26px;
        top: 6px;
        right: 10px;
    }
}