/* SCD-570. Notification rows (page, header dropdown, mobile sheet) and the Notifications page. Inter. */

/* ---------- Rows, shared ---------- */
.ntf-group { display: block; }

.ntf-section {
    padding: 16px 16px 10px;
    font: 600 12px/20px 'Inter', sans-serif;
    color: #535862;
    text-transform: uppercase;
}

.ntf-section--bordered { border-bottom: 1px solid #EEEFF1; }

.ntf-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #EEEFF1;
    background: #fff;
    color: #181D27;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.ntf-row:hover { background: #FAFBFD; }
.ntf-row--unread, .ntf-row--unread:hover { background: #F6F9FF; }
.ntf-group .ntf-row:last-child { border-bottom: 0; }
.ntf-row:focus-visible { outline: 2px solid #465DA6; outline-offset: -2px; }

.ntf-lead { position: relative; flex: 0 0 32px; width: 32px; height: 32px; }

.ntf-avatar { display: block; width: 32px; height: 32px; border-radius: 200px; object-fit: cover; }

.ntf-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: #465DA6;
    border: 0.7px solid #F6F9FF;
    border-radius: 9999px;
    box-sizing: content-box;
    width: 8px;
    height: 8px;
}

.ntf-badge img { display: block; max-width: 8px; max-height: 8px; }

.ntf-lead--system {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBF1FF;
    border-radius: 4px;
}

.ntf-lead--system img { display: block; }

.ntf-bell {
    display: block;
    width: 16px;
    height: 16px;
    background: #465DA6;
    -webkit-mask: url(/images/notifications/bell.svg) center / 13px 14.6px no-repeat;
    mask: url(/images/notifications/bell.svg) center / 13px 14.6px no-repeat;
}

.ntf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntf-row:has(.ntf-cta) .ntf-body { gap: 6px; }

.ntf-line { display: flex; align-items: flex-start; gap: 8px; }
.ntf-text { flex: 1; min-width: 0; font: 400 14px/20px 'Inter', sans-serif; color: #262626; }
.ntf-name, .ntf-title { font-weight: 600; color: #535862; }
.ntf-row--unread .ntf-name, .ntf-row--unread .ntf-title { color: #181D27; }
.ntf-verb { color: #717680; font-weight: 400; }
.ntf-row--unread .ntf-verb { color: #262626; }
.ntf-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; }

.ntf-sub {
    display: block;
    font: 400 12px/18px 'Inter', sans-serif;
    color: #8C8C8C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ntf-time { display: block; font: 400 12px/18px 'Inter', sans-serif; color: #8C8C8C; }

.ntf-cta {
    align-self: flex-start;
    margin-bottom: -2px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 600 14px/20px 'Inter', sans-serif;
    color: #414651;
}

.ntf-empty { padding: 32px 16px; text-align: center; font-family: 'Inter', sans-serif; }
.ntf-empty__title { font: 600 16px/24px 'Inter', sans-serif; color: #1C1C1C; }
.ntf-empty__text { margin: 8px auto 0; max-width: 281px; font: 400 14px/22px 'Inter', sans-serif; color: #8C8C8C; }

/* ---------- Header dropdown ---------- */
.header-desktop__notif-list .ntf-section { padding: 10px 16px; font-size: 10px; line-height: 15px; }
.header-desktop__notif-list .ntf-section--bordered { padding-top: 16px; }
.header-desktop__notif-list .ntf-empty { padding: 24px 16px; }

/* ---------- Page ---------- */
.ntf-page { font-family: 'Inter', sans-serif; background: #fff; color: #181D27; }
.ntf-page--mobile { display: none; }

/* styles.css pins body to min-width 1300px; same override as advertise.css. */
body:has(.ntf-page) { min-width: 0 !important; }

.ntf-page__inner { box-sizing: border-box; max-width: 960px; margin: 0 auto; padding: 48px; display: flex; flex-direction: column; gap: 4px; }
.ntf-page__title { margin: 0; font: 600 48px/60px 'Inter', sans-serif; letter-spacing: -0.96px; color: #000; }

.ntf-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
    border-bottom: 1px solid #D9D9D9;
}

.ntf-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 16px 0;
    margin: 0;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    font: 500 16px/24px 'Inter', sans-serif;
    color: #717680;
    cursor: pointer;
}

.ntf-tab--active {
    border-bottom-color: #465DA6;
    font-weight: 600;
    color: #465DA6;
    filter: drop-shadow(0 1px 1px rgba(10, 13, 18, 0.05));
}

.ntf-tab__count {
    padding: 2px 8px;
    background: #F5F5F5;
    border-radius: 16px;
    font: 500 12px/18px 'Inter', sans-serif;
    color: #414651;
}

.ntf-tab__count[hidden] { display: none; }

.ntf-quiet {
    margin: 0 0 0 auto;
    padding: 0;
    background: none;
    border: 0;
    font: 600 16px/24px 'Inter', sans-serif;
    color: #5E69A8;
    cursor: pointer;
}

.ntf-quiet:hover { opacity: 0.8; }
.ntf-quiet[hidden] { display: none; }
.ntf-quiet:disabled { opacity: 0.5; cursor: default; }

.ntf-page__list { min-height: 120px; }
.ntf-page__list[aria-busy="true"] { opacity: 0.6; }
.ntf-page__more { display: flex; justify-content: center; padding: 16px 0 0; }
.ntf-page__more .ntf-quiet { margin: 0; }

.ntf-page__signin { padding: 96px 16px; text-align: center; }
.ntf-page__signin p, .ntf-page__signin span.ntf-signin__text { display: block; margin: 8px 0 24px; font: 400 16px/24px 'Inter', sans-serif; color: #535862; }
.ntf-signin__title { display: block; font: 600 24px/32px 'Inter', sans-serif; color: #181D27; }
.ntf-signin__link {
    display: inline-block;
    padding: 10px 18px;
    background: #465DA6;
    border-radius: 8px;
    font: 600 16px/24px 'Inter', sans-serif;
    color: #fff;
    text-decoration: none;
}

/* Desktop-only rules stop at 769. */
@media (max-width: 768px) {
    .ntf-page--desktop { display: none; }
    .ntf-page--mobile { display: block; }
}

.ntf-page--mobile .ntf-page__inner { padding: 16px 0 0; gap: 0; }
.ntf-page--mobile .ntf-page__title { padding: 0 16px 12px; font: 600 24px/32px 'Inter', sans-serif; letter-spacing: 0; }
.ntf-page--mobile .ntf-tabs { height: auto; padding: 0 16px; }
.ntf-page--mobile .ntf-tab { padding: 12px 0; font-size: 14px; line-height: 20px; }
.ntf-page--mobile .ntf-quiet { font-size: 14px; line-height: 20px; }
.ntf-page--mobile .ntf-section { padding: 16px 16px 10px; }
.ntf-page--mobile .ntf-group:first-child .ntf-section { padding-top: 12px; }
.ntf-page--mobile .ntf-row { padding: 12px 16px; gap: 12px; }
.ntf-page--mobile .ntf-page__more { padding: 16px; }

/* ---------- Mobile bottom sheet ---------- */
.ntf-sheet { position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none; }
.ntf-sheet--open { visibility: visible; pointer-events: auto; }

.ntf-sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 13, 18, 0.5); opacity: 0; transition: opacity 0.2s; }
.ntf-sheet--open .ntf-sheet__backdrop { opacity: 1; }

.ntf-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px 8px 0 0;
    font-family: 'Inter', sans-serif;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    outline: 0;
}

.ntf-sheet--open .ntf-sheet__panel { transform: translateY(0); }

.ntf-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.ntf-sheet__title { margin: 0; font: 700 16px/24px 'Inter', sans-serif; color: rgba(0, 0, 0, 0.88); }

.ntf-sheet__close { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; }
.ntf-sheet__close img { display: block; width: 14px; height: 14px; }

.ntf-sheet__list { flex: 1; overflow-y: auto; }
.ntf-sheet .ntf-section { padding: 12px 16px 10px; }
.ntf-sheet .ntf-row { padding: 12px 16px; gap: 12px; }

.ntf-sheet__foot { padding: 17px 16px 16px; border-top: 1px solid #EEEFF1; text-align: center; background: #fff; }
.ntf-sheet__foot a { font: 600 14px/20px 'Inter', sans-serif; color: #5E69A8; text-decoration: none; }

.ntf-sheet .ntf-empty { padding: 16px 8px 24px; }

@media (min-width: 769px) { .ntf-sheet { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .ntf-sheet__backdrop, .ntf-sheet__panel { transition: none; }
}
