#myrgpd-modal-container,
#myrgpd-preferences-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#myrgpd-popup,
#myrgpd-preferences-popup {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    width: 90%;
    max-width: 400px;
    position: relative;
}

/* Style existant pour le pop-up principal... */
.myrgpd-header {
    text-align: center;
    margin-bottom: 10px;
}

.myrgpd-logo {
    max-width: 80px;
}

.myrgpd-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

.myrgpd-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.myrgpd-btn {
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}

#myrgpd-reject {
    background-color: #f33f3f; /* Fushia */
}

#myrgpd-accept,
#myrgpd-save-preferences {
    background-color: #28a745; /* Vert vif */
}

#myrgpd-preferences {
    background-color: #007bff; /* Bleu vif */
}

#myrgpd-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

/* Classe pour cacher le pop-up */
#myrgpd-modal-container.hidden,
#myrgpd-preferences-modal-container.hidden {
    display: none;
}

/* Styles pour la pop-up de préférences */
#myrgpd-preferences-popup {
    text-align: left;
}

.myrgpd-preference-category {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.myrgpd-preference-category p {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.myrgpd-preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.myrgpd-preference-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Style des interrupteurs (sliders) */
.switch-container {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #28a745;
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}