

/* ==========================================================
   FENÊTRE DE MAIL
   ========================================================== */
#email-consent-container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 95vw;
    transition: opacity 0.5s ease-in-out;
    z-index: 200;
    /* La plupart des styles viennent de .win98-window */
}

#email-consent-container .window-body {
    padding: 15px 20px;
    font-size: 1rem;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#email-consent-container p {
    margin: 0;
}

#email-consent-container .email-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#email-consent-container .win98-input {
    height: 24px;
    padding: 0 5px;
    background-color: white;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    box-shadow: inset 1px 1px 0px #404040;
    flex-grow: 1;
}

#email-consent-container .button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

#email-consent-container .consent-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

#email-consent-container .consent-details p,
#email-consent-container .consent-details label {
    margin: 0;
    grid-column: 2;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.9rem;
}

#email-consent-container .consent-details input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    background-color: #fff;
    border: 1px solid #404040;
    box-shadow: inset 1px 1px 1px #808080, 1px 1px 0 #fff;
    position: relative;
    cursor: pointer;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    align-self: start;
    margin-top: 2px; /* Alignement vertical fin avec le texte */
}

#email-consent-container .consent-details input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: -3px;
    left: 1px;
    font-size: 1rem;
    color: black;
}


/* Animation de l'encart */
#email-consent-container.blinking-attention {
    animation: soft-orange-glow-win98 1.5s ease-in-out;
}

@keyframes soft-orange-glow-win98 {
    from {
        box-shadow: 2px 2px 8px rgba(0,0,0,0.5), 0 0 5px rgba(255, 165, 0, 0.2);
    }
    to {
        box-shadow: 2px 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(255, 165, 0, 0.8), 0 0 10px rgba(255, 165, 0, 0.6) inset;
    }
}

.ok-button {
    min-width: 75px;
    height: 23px;
    margin-top: 20px;
    padding: 0 12px;
    border: 1px solid black;
    box-shadow: 1px 1px 0px black, inset 1px 1px 0 #fff;
    background: #c0c0c0;
    cursor: pointer;
    font-size: 12px;
}