/* NOBTI final notifications */

.nobti-notif-float {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 148px);
    left: 16px;
    z-index: 8150;
    direction: rtl;
}

.nobti-notif-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .20);
    color: #0f172a;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.nobti-notif-btn:active {
    transform: scale(.97);
}

.nobti-notif-count {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 10px;
    line-height: 16px;
    font-weight: 950;
    text-align: center;
    padding: 0 5px;
    display: none;
}

.nobti-notif-count.is-visible {
    display: block;
}

.nobti-notif-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 198px);
    left: 14px;
    right: 14px;
    max-width: 440px;
    margin-inline: auto;
    z-index: 9200;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .25);
    padding: 13px;
    direction: rtl;
    display: none;
    border: 1px solid rgba(226, 232, 240, .9);
}

.nobti-notif-panel.is-open {
    display: block;
}

.nobti-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.nobti-notif-head-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nobti-notif-head strong {
    font-size: 16px;
    font-weight: 950;
    color: #0f172a;
}

.nobti-notif-head small {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.nobti-notif-close,
.nobti-notif-readall {
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 10px;
    cursor: pointer;
}

.nobti-notif-close {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
}

.nobti-notif-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nobti-notif-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.nobti-notif-item.is-unread {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.nobti-notif-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 4px;
}

.nobti-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    flex: 0 0 auto;
    display: none;
}

.nobti-notif-item.is-unread .nobti-notif-dot {
    display: inline-block;
}

.nobti-notif-item-body {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    line-height: 1.4;
}

.nobti-notif-time {
    margin-top: 5px;
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 850;
}

.nobti-notif-empty {
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.nobti-notif-error {
    padding: 14px;
    text-align: center;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 420px) {
    .nobti-notif-float {
        top: calc(env(safe-area-inset-top, 0px) + 140px);
        left: 12px;
    }

    .nobti-notif-btn {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .nobti-notif-panel {
        top: calc(env(safe-area-inset-top, 0px) + 190px);
        left: 10px;
        right: 10px;
    }

    .nobti-notif-list {
        max-height: 330px;
    }
}
