/* Overlay plein écran */
.ccrf-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);
}

/* Popup */
.ccrf-popup {
    position: relative;

    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    box-sizing: border-box;
    padding: 45px 45px 35px;

    background: #ffffff;

    font-family: "Josefin Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #111111;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Paragraphes */
.ccrf-popup-content p {
    margin: 0 0 20px;
}

.ccrf-popup-content p:last-child {
    margin-bottom: 0;
}

/* Croix de fermeture */
.ccrf-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;

    width: 32px;
    height: 32px;

    padding: 0;
    border: 0;
    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 32px;
    color: #111111;

    cursor: pointer;
}

.ccrf-popup-close:hover {
    opacity: 0.6;
}

.ccrf-popup-close:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

/* Caché après fermeture */
.ccrf-popup-overlay.is-hidden {
    display: none;
}

/* Classe accessible mais invisible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile */
@media (max-width: 600px) {
    .ccrf-popup-overlay {
        padding: 12px;
    }

    .ccrf-popup {
        max-height: calc(100vh - 24px);
        padding: 42px 25px 28px;

        font-size: 14px;
        line-height: 1.5;
    }

    .ccrf-popup-close {
        top: 7px;
        right: 10px;
    }
}