.cube-notification-dropdown {
    --cube-notification-accent: #fe8e3c;
    --cube-notification-ink: #283252;
    --cube-notification-muted: #9298ac;
    overflow: hidden;
    width: 390px !important;
    max-width: calc(100vw - 24px);
    padding: 0 !important;
    border: 1px solid #eceef3 !important;
    border-radius: 15px !important;
    background: #fff;
    box-shadow: 0 16px 40px rgba(31, 35, 48, .13) !important;
}

/* The theme adds its own border and shadow to .dropdown-menu. Keep that
   positioning wrapper transparent so it cannot show behind the rounded card. */
.dropdown-menu.cube-notification-menu {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.cube-notification-dropdown > .heading,
.cube-notification-dropdown > .dropdown-content > .heading {
    display: flex !important;
    justify-content: space-between !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 18px 20px !important;
    align-items: center !important;
    border-bottom: 1px solid #eceef3 !important;
}

.cube-notification-dropdown .heading-left,
.cube-notification-dropdown .heading-right {
    display: flex;
    align-items: center;
}

.cube-notification-dropdown .heading-title {
    margin: 0 !important;
    color: var(--cube-notification-ink) !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.cube-notification-dropdown .notification-link {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    color: var(--cube-notification-accent) !important;
    font-size: .8rem;
    font-weight: 700 !important;
    line-height: 1.35;
    white-space: nowrap;
}

.cube-notification-dropdown .inner {
    max-height: none !important;
}

.cube-notification-dropdown .init_notification_html {
    max-height: 380px;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
}

.cube-notification-dropdown .init_notification_html > li {
    position: relative;
    margin: 0 !important;
    border-bottom: 1px solid #f0f1f5;
}

.cube-notification-dropdown .init_notification_html > li:last-child {
    border-bottom: 0;
}

.cube-notification-dropdown .notification-item.cube-header-notification-item {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    min-height: 84px;
    padding: 14px 17px !important;
    background: #fff;
    transition: background-color .18s ease;
}

.cube-notification-dropdown .notification-item.cube-header-notification-item:hover {
    background: #fffaf6 !important;
}

.cube-notification-dropdown .notification-item.cube-header-notification-item.is-unread {
    background: #fffcf9;
}

.cube-notification-dropdown .notification-item.cube-header-notification-item.is-unread::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--cube-notification-accent);
    content: '';
}

.cube-header-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f2f5f9;
    color: #71809a;
    font-size: 15px;
}

.cube-header-notification-icon.is-order {
    background: #eaf3ff;
    color: #3378bd;
}

.cube-header-notification-icon.is-message {
    background: #fff0e5;
    color: #d96d21;
}

.cube-header-notification-icon.is-system {
    background: #f2efff;
    color: #7055b6;
}

.cube-notification-dropdown .cube-header-notification-content {
    min-width: 0;
    text-align: left;
}

.cube-header-notification-topline {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.cube-header-notification-category {
    color: #7f879a;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
}

.cube-header-notification-unread {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cube-notification-accent);
}

.cube-notification-dropdown .cube-header-notification-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 !important;
    color: var(--cube-notification-ink) !important;
    font-size: .83rem !important;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cube-notification-dropdown .cube-header-notification-time {
    display: block;
    margin: 5px 0 0 !important;
    color: var(--cube-notification-muted) !important;
    font-size: .7rem !important;
    line-height: 1.35;
}

.cube-header-notification-chevron {
    color: #c1c5d0;
    font-size: 11px;
}

.cube-header-notification-empty {
    padding: 34px 20px !important;
    color: var(--cube-notification-muted);
    font-size: .8rem;
    text-align: center;
}

body.is-dark .cube-notification-dropdown {
    border-color: #303039 !important;
    background: #232326;
}

body.is-dark .cube-notification-dropdown .notification-item.cube-header-notification-item,
body.is-dark .cube-notification-dropdown .notification-item.cube-header-notification-item.is-unread {
    background: #232326;
}

body.is-dark .cube-notification-dropdown .notification-item.cube-header-notification-item:hover {
    background: #2b2b30 !important;
}

body.is-dark .cube-notification-dropdown .cube-header-notification-title,
body.is-dark .cube-notification-dropdown .heading-title {
    color: #e5e5eb !important;
}

@media (max-width: 480px) {
    .cube-notification-dropdown {
        width: calc(100vw - 20px) !important;
    }

    .cube-notification-dropdown .notification-item.cube-header-notification-item {
        grid-template-columns: 36px minmax(0, 1fr) 14px;
        gap: 10px;
        min-height: 78px;
        padding: 12px 14px !important;
    }

    .cube-header-notification-icon {
        width: 36px;
        height: 36px;
    }
}
