/* Modale TVA (code postal de facturation) — pf-wp-plugin */

.pf-vat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pf-vat-overlay.pf-vat-open {
    display: flex;
}

.pf-vat-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    line-height: 1.5;
}

.pf-vat-modal h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.pf-vat-modal p {
    margin: 0 0 16px;
}

.pf-vat-modal label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.pf-vat-modal input[type="text"],
.pf-vat-modal select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: inherit;
}

/* Ville verrouillée tant que le code postal n'est pas validé. */
.pf-vat-modal input[type="text"]:disabled {
    background: #f2f2f2;
    color: #888;
    cursor: not-allowed;
}

/* Sélecteur de pays : dernier recours, révélé seulement si l'API BAN est injoignable. */
.pf-vat-country-field[hidden] {
    display: none;
}

.pf-vat-field {
    margin-bottom: 14px;
}

.pf-vat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .pf-vat-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.pf-vat-error {
    color: #c0392b;
    margin: 8px 0 0;
}

.pf-vat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.pf-vat-actions button {
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
}

.pf-vat-cancel {
    background: transparent;
    border-color: #ccc;
    color: #333;
}

.pf-vat-confirm {
    background: #1a1a1a;
    color: #fff;
}

.pf-vat-confirm:hover {
    background: #333;
}

.pf-vat-confirm:disabled {
    background: #888;
    cursor: not-allowed;
}
