/**
 * Modal "Informations manquantes" — profil pharmacie incomplet au panier.
 * Style aligné sur la modal PharmaPrint du site.
 */

.pharmacy-profile-modal [x-cloak] {
    display: none !important;
}

/* ── Blocage du scroll de fond quand la modal est ouverte ── */
.ppm-modal-open {
    overflow: hidden;
}

/* ── Backdrop ── */
.ppm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 37, 35, 0.55);
}

/* ── Conteneur centré ── */
.ppm-dialog-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Carte modale ── */
.ppm-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - 2rem);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* ── Header ── */
.ppm-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e5ea;
}

.ppm-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #052523;
}

.ppm-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 9999px;
    color: #828d9e;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ppm-close:hover {
    background: #eef0f3;
    color: #052523;
}

/* ── Body ── */
.ppm-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px 24px;
}

.ppm-intro {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #052523;
}

/* ── Bandeau d'erreur générale ── */
.ppm-alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
}

/* ── Grille des champs ── */
.ppm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 24px;
}

@media (min-width: 768px) {
    .ppm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Sous-champ conditionnel "Précisez…" */
.ppm-subfield {
    margin-top: 12px;
}

/* Espace entre le label et l'astérisque des champs requis
   (le thème applique un margin-left négatif qui les colle) */
.ppm-body .field.required > label::after {
    margin-left: 3px !important;
}

/* ── Erreurs de validation ── */
.ppm-error {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #f34832;
}

.ppm-invalid {
    border-color: #f34832 !important;
}

/* ── Footer ── */
.ppm-footer {
    margin-top: 22px;
}

.ppm-submit {
    width: 100%;
    justify-content: center;
    font-size: 18px;
    padding: 12px 10px;
}

.ppm-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
