/* Persistent notification inbox. This file intentionally does not alter theme CSS. */
.sl-notification-badge {
    position: absolute;
    top: -1px;
    right: -2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f04452;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    pointer-events: none;
}

/* Keep the notification trigger visually balanced with the search control. */
.mh-icon-btn.sl-notification-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

.mh-icon-btn.sl-notification-trigger > i {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 18px !important;
}

.mh-right .mh-icon-btn > svg,
.mh-right .mh-login-btn > svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.mh-dropdown-menu a > svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    stroke-width: 2;
}

.mh-icon-btn.sl-notification-trigger .sl-notification-badge {
    top: 3px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    padding: 0 2px;
    border-width: 1.5px;
    font-size: 8px;
    line-height: 14px;
}

.sl-notification-page {
    box-sizing: border-box;
    width: min(720px, 100%);
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 34px 20px 52px;
    background: #fff;
    color: #191f28;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sl-notification-page__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
}

.sl-notification-page__heading h1 {
    margin: 0;
    color: #191f28;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.15px;
    line-height: 1.3;
}

.sl-notification-page__heading p {
    margin: 8px 0 0;
    color: #8b95a1;
    font-size: 15px;
    letter-spacing: -.35px;
    line-height: 1.5;
}

.sl-notification-page__toolbar {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-height: 40px;
}

.sl-notification-page__read-all {
    height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: #f2f4f6;
    color: #4e5968;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.sl-notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sl-notification-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 82px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.sl-notification-item:hover {
    border-color: #d1d6db;
    background: #f9fafb;
    transform: translateY(-1px);
}

.sl-notification-item.is-unread { background: #f2f6ff; border-color: #e0e9fb; }
.sl-notification-item__icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #f2f4f6;
    color: #252a32;
}

.sl-notification-item.is-unread .sl-notification-item__icon { background: #dfeaff; color: #3182f6; }

.sl-notification-item__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding-right: 22px;
}

.sl-notification-item__content strong {
    overflow: hidden;
    color: #191f28;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-notification-item__body {
    display: -webkit-box;
    overflow: hidden;
    color: #6b7684;
    font-size: 13px;
    line-height: 19px;
    letter-spacing: -0.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sl-notification-item time { margin-top: 2px; color: #8b95a1; font-size: 12px; }
.sl-notification-item__dot { position: absolute; top: 18px; right: 18px; width: 6px; height: 6px; border-radius: 50%; background: #3182f6; }
.sl-notification-item__chevron { align-self: center; margin-left: -20px; color: #a4aab4; font-size: 12px; }

.sl-notification-empty {
    display: flex;
    align-items: center;
    min-height: 330px;
    flex-direction: column;
    justify-content: center;
    padding: 28px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    text-align: center;
}

.sl-notification-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #3b414a;
    font-size: 22px;
}

.sl-notification-empty strong { color: #282d35; font-size: 16px; }
.sl-notification-empty p { max-width: 280px; margin: 8px 0 0; color: #9298a3; font-size: 13px; line-height: 20px; }

@media (max-width: 768px) {
    .sl-notification-page { width: 100%; min-height: calc(100vh - 130px); padding: 26px 16px calc(86px + env(safe-area-inset-bottom)); }
    .sl-notification-page__heading { margin-bottom: 20px; }
    .sl-notification-page__heading h1 { font-size: 25px; }
    .sl-notification-page__heading p { font-size: 14px; }
    .sl-notification-item { min-height: 78px; padding: 16px; border-radius: 16px; }
}

/* Notification is a standalone section: feed/market shortcut rows are not relevant here. */
body.sl-notification-page-active #bo_cate,
body.sl-notification-page-active .rb-category-menu,
body.sl-notification-page-active .category-shortcuts,
body.sl-notification-page-active .main-category-shortcuts {
    display: none !important;
}

/* The quick-buttons widget can be injected after the page content by the theme. */
html.sl-notification-page-active .icon-menu-container,
body.sl-notification-page-active .icon-menu-container {
    display: none !important;
}
