.topbar-notifications .notification-panel {
    position: fixed;
    top: 64px;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 50;
    width: auto;
    max-height: calc(100dvh - 76px);
}

.topbar-notifications .notification-list {
    max-height: calc(100dvh - 220px);
}

.topbar-notifications .notification-summary-action {
    opacity: 1;
}

@media (min-width: 640px) {
    .topbar-notifications .notification-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 22rem;
        max-height: none;
        margin-top: 4px;
    }

    .topbar-notifications .notification-list {
        max-height: 320px;
    }
}

@media (min-width: 1024px) {
    .topbar-notifications .notification-summary-action {
        opacity: 0;
    }

    .topbar-notifications .notification-summary-item:hover .notification-summary-action,
    .topbar-notifications .notification-summary-action:focus-visible {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .topbar-notifications .notification-panel {
        top: 62px;
        left: 0.5rem;
        right: 0.5rem;
        border-radius: 0.875rem;
    }

    .topbar-notifications .notification-panel-header,
    .topbar-notifications .notification-summary-item {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .topbar-notifications .notification-summary-item {
        gap: 0.625rem;
    }
}
