/* Popup de opções de e-mail (shared/email_popup.php) - visual baseado no popup lateral de turmas */

/* fixed e centralizado na tela */
.email_popup{
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    z-index: 99999;
}
.email_popup::backdrop{
    background: rgba(0, 0, 0, 0.8);
}
/* fade de entrada (popup + fundo) */
.email_popup[open],
.email_popup[open]::backdrop{
    animation: emailPopupFadeIn 0.3s ease forwards;
}
/* fade de saída: o JS adiciona .closing e só fecha no fim da animação */
.email_popup.closing,
.email_popup.closing::backdrop{
    animation: emailPopupFadeOut 0.3s ease forwards;
}
@keyframes emailPopupFadeIn{
    from{ opacity: 0; }
    to{ opacity: 1; }
}
@keyframes emailPopupFadeOut{
    from{ opacity: 1; }
    to{ opacity: 0; }
}
.content_email_popup{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 400px;
    max-width: 100%;
    padding: 48px 24px 24px;
    box-sizing: border-box;
    background: var(--color-palette-orange-normal, #e96e3a);
    border: 1px solid #000;
    border-radius: 24px;
    text-align: left;
}
.content_email_popup .close_email_popup{
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}
.content_email_popup h1{
    margin: 0;
    color: #fff;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-display, Gramatika);
    font-size: 32px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.64px;
}
.content_email_popup p{
    margin: 0;
    color: #fff;
    font-family: var(--font-default, "Suisse Intl");
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}
.content_email_popup .options{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.content_email_popup .option{
    display: flex;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    border-bottom: 2px solid var(--color-palette-black-90, #1a1a1a);
    background: var(--color-palette-black-80, #2a2a2a);
    color: #fff;
    font-family: var(--font-default, "Suisse Intl");
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}
.content_email_popup .option:hover{
    background: var(--color-palette-black-90, #1a1a1a);
}
.content_email_popup .divider{
    color: #fff;
    text-align: center;
    font-family: var(--font-default, "Suisse Intl");
    font-size: 14px;
    font-weight: 500;
}
.content_email_popup .copy_email{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 12px;
    background: #fff;
}
.content_email_popup .copy_email .address{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a1a1a;
    font-family: var(--font-default, "Suisse Intl");
    font-size: 16px;
    font-weight: 500;
}
.content_email_popup .copy_email_button{
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--color-palette-black-80, #2a2a2a);
    color: #fff;
    font-family: var(--font-default, "Suisse Intl");
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
