/* WZ Stock Alert - Frontend Styles */

/* ── Botão "Avise-me" ──
   Intencionalmente sem cores ou fontes fixas.
   Herda os estilos do tema via .button.alt (WooCommerce/tema ativo).
   Isso garante compatibilidade visual em qualquer projeto.
── */
.wzsa-button-wrap {
    margin: 16px 0;
}

.wzsa-notify-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* ── Overlay / Backdrop ── */
#wzsa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    transition: opacity 0.25s ease;
}

#wzsa-overlay.wzsa-hidden {
    display: none;
}

/* ── Modal ── */
#wzsa-modal {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: wzsa-modal-in 0.25s ease;
}

@keyframes wzsa-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Ícone do sino */
#wzsa-modal-icon {
    width: 64px;
    height: 64px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #16a34a;
}

/* Fechar */
#wzsa-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 6px;
    transition: color 0.2s;
}

#wzsa-modal-close:hover {
    color: #333;
}

/* Textos do modal */
#wzsa-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

#wzsa-modal p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ── Formulário ── */
#wzsa-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wzsa-field-wrap {
    width: 100%;
}

#wzsa-email {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    text-align: center;
}

#wzsa-email:focus {
    border-color: #16a34a;
}

#wzsa-submit {
    width: 100%;
    padding: 13px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

#wzsa-submit:hover {
    background: #15803d;
}

#wzsa-submit:active {
    transform: scale(0.98);
}

#wzsa-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Mensagem de retorno ── */
#wzsa-message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
}

#wzsa-message.wzsa-success {
    color: #16a34a;
    font-weight: 600;
}

#wzsa-message.wzsa-error {
    color: #dc2626;
}

/* ── Responsivo ── */
@media (max-width: 480px) {
    #wzsa-modal {
        padding: 32px 24px 24px;
    }

    #wzsa-modal h3 {
        font-size: 18px;
    }
}
