/* =========================================================
   SININHO DE NOTIFICAÇÕES - HEADER
   ========================================================= */

.site-notifications {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
}


/*
 * =============================================
 * BOTÃO DO SINO
 * =============================================
 */

.site-notifications-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 12px;

    background: transparent;
    color: #5b21b6;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.site-notifications-button:hover,
.site-notifications-button:focus-visible,
.site-notifications-button[aria-expanded="true"] {
    background: #f5f2fb;
    color: #4c1d95;
}

.site-notifications-button:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}


/*
 * =============================================
 * ÍCONE
 * =============================================
 */

.site-notifications-icon {
    display: block;

    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    pointer-events: none;
}


/*
 * =============================================
 * BADGE
 * =============================================
 */

.site-notifications-badge {
    position: absolute;

    top: -1px;
    right: -2px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    border: 2px solid #ffffff;
    border-radius: 999px;

    background: #d92d20;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    pointer-events: none;
}


/*
 * =============================================
 * PAINEL
 * =============================================
 */

.site-notifications-panel {
    position: absolute;
    z-index: 2000;

    top: calc(100% + 12px);
    right: -72px;

    width: 390px;
    max-width: calc(100vw - 24px);

    overflow: hidden;

    border: 1px solid #e4e5eb;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 20px 55px
        rgba(
            17,
            24,
            39,
            0.18
        );
}

.site-notifications-panel[hidden] {
    display: none !important;
}


/*
 * Seta do dropdown.
 */

.site-notifications-panel::before {
    content: "";

    position: absolute;

    top: -7px;
    right: 85px;

    width: 12px;
    height: 12px;

    border-top: 1px solid #e4e5eb;
    border-left: 1px solid #e4e5eb;

    background: #ffffff;

    transform: rotate(45deg);
}


/*
 * =============================================
 * CABEÇALHO DO PAINEL
 * =============================================
 */

.site-notifications-heading {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 17px 18px 14px;

    border-bottom: 1px solid #ececf1;

    background: #ffffff;
}

.site-notifications-heading strong {
    color: #111827;

    font-size: 16px;
    font-weight: 800;
}

.site-notifications-heading span {
    color: #667085;

    font-size: 12px;
}


/*
 * =============================================
 * LISTA
 * =============================================
 */

.site-notifications-list {
    max-height: 430px;

    overflow-x: hidden;
    overflow-y: auto;

    background: #ffffff;
}

.site-notification-item {
    position: relative;

    display: block;

    padding:
        15px
        18px
        15px
        42px;

    border-bottom: 1px solid #f0f1f4;

    color: inherit;
    background: #ffffff;

    text-decoration: none;

    transition:
        background-color 0.2s ease;
}

.site-notification-item:last-child {
    border-bottom: 0;
}

.site-notification-item:hover {
    background: #faf9fd;
}

.site-notification-item.is-unread {
    background: #f8f5ff;
}


/*
 * Ponto de não lida.
 */

.site-notification-dot {
    position: absolute;

    top: 21px;
    left: 20px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: transparent;
}

.site-notification-item.is-unread
.site-notification-dot {
    background: #6d28d9;
}


/*
 * =============================================
 * CONTEÚDO
 * =============================================
 */

.site-notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 5px;
}

.site-notification-type {
    color: #6d28d9;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-notification-date {
    flex: 0 0 auto;

    color: #98a2b3;

    font-size: 11px;

    white-space: nowrap;
}

.site-notification-title {
    display: block;

    margin-bottom: 4px;

    color: #101828;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.site-notification-message {
    display: block;

    max-height: 2.9em;

    overflow: hidden;

    color: #667085;

    font-size: 12px;
    line-height: 1.45;
}


/*
 * =============================================
 * ESTADO VAZIO
 * =============================================
 */

.site-notifications-empty {
    padding: 28px 20px;

    color: #667085;
    background: #ffffff;

    font-size: 13px;

    text-align: center;
}


/*
 * =============================================
 * RODAPÉ
 * =============================================
 */

.site-notifications-footer {
    display: block;

    padding: 14px 18px;

    border-top: 1px solid #ececf1;

    color: #28156f;
    background: #ffffff;

    font-size: 13px;
    font-weight: 800;

    text-align: center;
    text-decoration: none;
}

.site-notifications-footer:hover {
    background: #faf9fd;
}


/*
 * =============================================
 * RESPONSIVO
 * =============================================
 */

@media (max-width: 900px) {

    .site-notifications-panel {
        position: fixed;

        top: 82px;
        right: 12px;
        left: 12px;

        width: auto;
        max-width: none;
    }

    .site-notifications-panel::before {
        display: none;
    }
}
