/*
 Newsletter CSS
 Last update : 29.5.26
*/

/* ============================================================
    Newsletter popup
============================================================ */

.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}
.newsletter-popup.is-open {
    visibility: visible;
    opacity: 1;
}

.newsletter-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    cursor: pointer;
}

.newsletter-popup__content {
    position: relative;
    max-width: 700px;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 4rem);
    margin: 2rem auto;
    background: var(--color-light);
    border-radius: var(--br-md);
    overflow-y: auto;
    z-index: 2;
}

.newsletter-popup__inner {
    padding: var(--padding-lg);
}

.newsletter-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

body.newsletter-popup-open {
    overflow: hidden;
}

/* ============================================================
    Infomaniak form
============================================================ */

.newsletter-popup .inf-main_b270812d6bef5132ed55709ba0c9e2d3 {
    margin: 0;
    padding: 0;
    background: var(--color-light);
    max-width: 100%;
    border: var(--br-md);
}
.newsletter-popup h4 {
    display: none;
}

.newsletter-popup .inf-content {
    margin-top: 2rem;
}

.newsletter-popup .inf-input input {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--br-sm);
}

.newsletter-popup .inf-submit {
    text-align: left;
}

.newsletter-popup .inf-submit input[type="submit"] {
    cursor: pointer;
}