/* Publi-communiqué / DGCCRF notice modal — ported from the React app's notice-modal styles. */

.notice-modal[hidden] {
    display: none;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-modal__layer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.notice-modal__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 60px);
    background: #fff;
    padding: 50px 50px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.notice-modal__title {
    color: #000;
    margin: 0 0 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.notice-modal__body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0 0 30px;
    white-space: pre-line;
}

.notice-modal__cta {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, color .25s;
}

.notice-modal__cta:hover {
    background: #fff;
    color: #000;
}

.notice-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 2;
}

.notice-modal__close span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    display: block;
}

.notice-modal__close span:first-child {
    transform: translateY(-50%) rotate(45deg);
}

.notice-modal__close span:last-child {
    transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .notice-modal__container {
        max-width: calc(100% - 30px);
        max-height: calc(100vh - 30px);
        padding: 50px 25px 30px;
    }
}