/**
 * install-pwa/notify-inbox-tab — floating arrow + bell tab (Android app style)
 */

body.ipwa-has-notify-tab #fmFooterNotifyWrap {
    display: none !important;
}

.ipwa-notify-tab {
    position: fixed;
    right: 0;
    right: env(safe-area-inset-right, 0);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2147482500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 6px 7px 4px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: -4px 0 18px rgba(2, 6, 23, 0.35);
    color: #f8fafc;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
    animation: ipwa-notify-tab-in 0.35s ease-out;
}

.ipwa-notify-tab:hover {
    transform: translateY(-50%) translateX(-2px);
    box-shadow: -6px 0 22px rgba(2, 6, 23, 0.45);
}

.ipwa-notify-tab:active {
    transform: translateY(-50%) translateX(0);
}

.ipwa-notify-tab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(12px);
}

.ipwa-notify-tab.is-highlighted {
    box-shadow: -6px 0 24px rgba(37, 99, 235, 0.35);
    border-color: rgba(96, 165, 250, 0.55);
}

.ipwa-notify-tab-arrow,
.ipwa-notify-tab-bell-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ipwa-notify-tab-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ipwa-notify-tab-bell-wrap {
    position: relative;
    width: 16px;
    height: 16px;
}

.ipwa-notify-tab-bell-wrap svg {
    width: 16px;
    height: 16px;
    display: block;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.ipwa-notify-tab.has-unread .ipwa-notify-tab-bell-wrap svg {
    color: #60a5fa;
}

.ipwa-notify-tab-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.ipwa-notify-tab-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

@keyframes ipwa-notify-tab-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ipwa-notify-tab {
        animation: none;
        transition: none;
    }
}
