#wpcp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none; /* Controlado via JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(3px); /* Toque moderno */
}

/* Animação de Entrada */
#wpcp-overlay.wpcp-show {
    display: flex;
    animation: wpcpFadeIn 0.4s ease-out forwards;
}

/* Animação de Saída */
#wpcp-overlay.wpcp-hide {
    animation: wpcpFadeOut 0.3s ease-in forwards;
}

.wpcp-modal {
    position: relative;
    max-width: 90%;
    width: 500px; /* Tamanho base */
    background: transparent;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s;
}

#wpcp-overlay.wpcp-show .wpcp-modal {
    animation: wpcpPopUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* Efeito de "pulo" */
}

.wpcp-modal img {
    width: 100%;
    height: auto;
    border-radius: 16px; /* Cantos arredondados */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: block;
}

.wpcp-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 33px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
    z-index: 10;
}

.wpcp-close:hover {
    background: #f1f1f1;
    transform: scale(1.1);
    color: #000;
}

/* Keyframes */
@keyframes wpcpFadeIn {
    to { opacity: 1; }
}
@keyframes wpcpFadeOut {
    to { opacity: 0; }
}
@keyframes wpcpPopUp {
    to { transform: scale(1); opacity: 1; }
}