/* Shared styles for the obituary alert FAB + subscription modal
   (MemorialObituaryWidget and MemorialObituariesWidget) */

.fab_alert_mail,
.fab_alert_mail_on_scroll {
    bottom: 32px;
    right: 32px;
    display: flex;
    z-index: 10;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 16px 24px;
    background: var(--smp-grey-50);
    box-shadow: 0 0 8px var(--smp-shadow);
    border-radius: 72px;
    color: var(--smp-dark-grey-900);
    border: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
}

.fab_alert_mail:hover,
.fab_alert_mail_on_scroll:hover {
    background-color: var(--smp-grey-100);
    color: var(--smp-dark-grey-900);
    box-shadow: 0 0 8px var(--smp-shadow);
}

.fab_alert_mail .mail-letter,
.fab_alert_mail_on_scroll .mail-letter {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: currentColor;
    color: var(--smp-dark-grey-900);
    margin-right: 8px;
}

.fab_alert_mail_on_scroll .mail-letter {
    margin-right: 0;
}

.fab_alert_mail .mail-letter-label {
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-transform: none;
    white-space: nowrap;
}

.fab_alert_mail_on_scroll {
    padding: 16px;
    width: 56px;
}

.positionFixed {
    position: fixed;
}

.positionAbsolute {
    position: absolute;
}

#emailAlert.smp-modal .fab-alert-mail__description {
    margin: 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: var(--smp-grey-500);
}

.toast-mail-alert-success {
    background-color: #B8FFDB;
    padding: 16px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 590px;
    max-height: 110px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
}

.toast-mail-alert-failed {
    background-color: #ffb8b8;
    padding: 16px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 590px;
    max-height: 110px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
}

@media only screen and (min-width: 601px) {
    #emailAlert.smp-modal.smp-modal--small {
        min-width: 600px;
        max-width: 600px;
        width: auto;
    }
}
