.header-notifications {
    position: relative;
}

.notification-trigger {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #172033;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
    background: #eef2ff;
    color: var(--themeColoeOne, #4f46e5);
}

.notification-trigger:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.22);
    outline-offset: 2px;
}

.notification-trigger > i {
    font-size: 21px;
}

.notification-count {
    position: absolute;
    top: -2px;
    right: -4px;
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e63950;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.notification-dropdown {
    width: 390px;
    max-width: calc(100vw - 24px);
    margin-top: 14px !important;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    z-index: 1080;
}

.notification-dropdown::before {
    position: absolute;
    top: -7px;
    right: 17px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #e5eaf2;
    border-left: 1px solid #e5eaf2;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.notification-dropdown > li {
    display: block;
    width: 100%;
}

.notification-dropdown-header {
    position: relative;
    z-index: 1;
    display: flex !important;
    min-height: 76px;
    padding: 17px 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 16px;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.notification-dropdown-header > div {
    min-width: 0;
}

.notification-dropdown-header strong {
    display: block;
    margin-bottom: 3px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.notification-dropdown-header > div > span {
    display: block;
    color: #7b8497;
    font-size: 11px;
    line-height: 1.4;
}

.notification-new-badge {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.notification-list-wrap {
    max-height: 350px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.notification-list-wrap::-webkit-scrollbar {
    width: 6px;
}

.notification-list-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.notification-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-item {
    position: relative;
    margin: 0;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.is-unread {
    background: #f7f9ff;
}

.notification-item > a {
    display: flex !important;
    min-height: 84px;
    padding: 14px 18px;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    white-space: normal;
    transition: background-color 0.2s ease;
}

.notification-item > a:hover,
.notification-item > a:focus {
    background: #f1f5ff;
    color: inherit;
}

.notification-item-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 16px;
}

.notification-item.is-unread .notification-item-icon {
    background: var(--themeColoeOne, #4f46e5);
    color: #fff;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.2);
}

.notification-item-content {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.notification-item-message {
    display: -webkit-box;
    overflow: hidden;
    color: #273047;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-item-meta {
    display: flex !important;
    margin-top: 7px;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 10px;
    color: #8992a5;
    font-size: 10.5px;
    line-height: 1.2;
}

.notification-item-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.notification-unread-label {
    color: #4f46e5;
    font-weight: 700;
}

.notification-unread-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: #4f46e5;
}

.notification-empty {
    display: flex !important;
    min-height: 210px;
    padding: 34px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #8992a5;
    text-align: center;
}

.notification-empty-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    margin-bottom: 7px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 21px;
}

.notification-empty strong {
    color: #273047;
    font-size: 14px;
}

.notification-empty > span:last-child {
    font-size: 11px;
}

.notification-dropdown-footer {
    border-top: 1px solid #edf1f6;
    background: #fbfcfe;
}

.notification-dropdown-footer > a {
    display: flex !important;
    min-height: 50px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
    gap: 8px;
    color: var(--themeColoeOne, #4f46e5);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.notification-dropdown-footer > a:hover {
    background: #f1f5ff;
}

/*
 * The storefront theme styles every link and span nested under .menu_icon as
 * a circular header icon. Keep those rules on the trigger, but isolate the
 * actual dropdown content from them.
 */
.menu_icon .notification-dropdown .notification-item > a {
    width: 100%;
    height: auto;
    margin-right: 0;
    padding: 14px 18px;
    border-radius: 0;
    line-height: normal;
    text-align: left;
}

.menu_icon .notification-dropdown a .notification-item-icon {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.menu_icon .notification-dropdown .notification-item.is-unread a .notification-item-icon {
    background: var(--themeColoeOne, #4f46e5);
    color: #fff;
}

.menu_icon .notification-dropdown a .notification-item-content {
    position: static;
    top: auto;
    right: auto;
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: normal;
    text-align: left;
}

.menu_icon .notification-dropdown a .notification-item-message {
    position: static;
    top: auto;
    right: auto;
    display: -webkit-box;
    width: auto;
    height: auto;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    color: #273047;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.menu_icon .notification-dropdown a .notification-item-meta {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    width: auto;
    height: auto;
    margin-top: 7px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #8992a5;
    font-size: 10.5px;
    line-height: 1.2;
    text-align: left;
}

.menu_icon .notification-dropdown a .notification-item-meta > span,
.menu_icon .notification-dropdown .notification-dropdown-footer > a > span {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: inherit;
}

.menu_icon .notification-dropdown a .notification-unread-label {
    color: #4f46e5;
}

.menu_icon .notification-dropdown a .notification-unread-dot {
    position: static;
    top: auto;
    right: auto;
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    padding: 0;
    border-radius: 50%;
    background: #4f46e5;
}

.menu_icon .notification-dropdown .notification-dropdown-footer > a {
    width: 100%;
    height: auto;
    min-height: 50px;
    margin-right: 0;
    padding: 12px 18px;
    border-radius: 0;
    color: var(--themeColoeOne, #4f46e5);
    line-height: normal;
    text-align: center;
}

@media (max-width: 575px) {
    .notification-dropdown {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .notification-dropdown-header {
        min-height: 68px;
        padding: 14px;
    }

    .notification-dropdown-header > div > span {
        display: none;
    }

    .menu_icon .notification-dropdown .notification-item > a {
        min-height: 78px;
        padding: 12px 14px;
        gap: 10px;
    }

    .menu_icon .notification-dropdown a .notification-item-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }
}
