/* S27 WPP — Aviso de Estoque (frontend) */

.s27-aviso-wrap {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 18px 20px 14px;
    margin: 0 0 20px;
    font-family: inherit;
}

.s27-aviso-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.s27-aviso-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.s27-aviso-header strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 3px;
}

.s27-aviso-header p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.s27-aviso-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.s27-aviso-form input[type="text"],
.s27-aviso-form input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #d1fae5;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.s27-aviso-form input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .18);
}

/* Especificidade reforçada (.s27-aviso-wrap .s27-aviso-btn) + !important nas
   propriedades visuais-chave — evita que o CSS do tema (botões com bordas
   retas, cor de marca, etc.) sobrescreva o estilo do widget. */
.s27-aviso-wrap .s27-aviso-btn {
    width: 100% !important;
    padding: 11px 16px !important;
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .15s;
}

.s27-aviso-wrap .s27-aviso-btn:hover:not(:disabled) {
    background: #128C7E !important;
    color: #fff !important;
}

.s27-aviso-wrap .s27-aviso-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.s27-aviso-msg {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* ── Estados de validação do campo de telefone ── */
.s27-aviso-tel.s27-tel-ok {
    border-color: #25D366 !important;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, .20) !important;
}
.s27-aviso-tel.s27-tel-err {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, .18) !important;
}
.s27-aviso-tel.s27-tel-checking {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .18) !important;
    animation: s27TelPulse 1s ease-in-out infinite;
}
@keyframes s27TelPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(245, 158, 11, .18); }
    50%       { box-shadow: 0 0 0 4px rgba(245, 158, 11, .08); }
}
