/* ===== Prix Privilège (fiche produit / listes) ===== */
.privileges-price {
    font-family: workSans-regular, sans-serif;
    font-weight: 300;
}
#product .privileges-price {
    margin-top: 10px;
    font-size: 1.1em;
    color: #ff6600;
    text-align: right;
}
.privileges-price span {
    font-size: 1.8em;
    font-weight: 500;
    color: #0000008a;
    font-family: Arial Black, Arial Bold, Gadget, sans-serif;
}
.privileges-price {
    text-align: right;
    margin-top: 5px;
}
.privileges-price span { margin-top: 5px; font-size: 1.1em; }
#index .privileges-price span { font-size: 1em; }
.privileges-price a { color: blue; text-decoration: underline; }
.privileges-price a:hover { color: #ff6600; }

/* ===== Voile léger quand la popup est visible ===== */
body.pgpriv-open::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 999998;
    pointer-events: none;
}

/* ===== Panneau flottant PRIVILEGE — centré ===== */
#pgprivilegesmodal.pgpriv-panel {
    position: fixed !important;
    top: 50%;
    left: 50%;
    background: #fff;
    /* Légèrement en dessous du centre au départ → monte au visible */
    transform: translate(-50%, calc(-50% + 12px));
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: 92vh;
    overflow-y: auto;
    z-index: 999999;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.32);

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0.32s;
    pointer-events: none;
}
#pgprivilegesmodal.pgpriv-panel.pgpriv-visible {
    transform: translate(-50%, -50%);
    visibility: visible;
    opacity: 1;
    transition: opacity 0.32s ease, transform 0.32s ease;
    pointer-events: auto;
}

/* Bouton × du contenu TinyMCE (class .isp-close) — cercle noir */
.isp-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.60) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    color: #fff !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 17px !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    margin-left: 6px !important;
}
.isp-close:hover { background: #000 !important; }

/* Bouton Fermer en bas du panneau */
.pgpriv-footer-btn {
    text-align: center;
    padding: 4px 16px 18px;
}
.pgpriv-btn-fermer {
    background: none;
    border: 2px solid #826E63;
    border-radius: 20px;
    color: #826E63;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 28px;
    cursor: pointer;
    letter-spacing: 0.03em;
}
.pgpriv-btn-fermer:hover {
    background: #826E63;
    color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    #pgprivilegesmodal.pgpriv-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(20px);
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
    #pgprivilegesmodal.pgpriv-panel.pgpriv-visible {
        transform: translateY(0);
    }
}
