.hf-hidden {
    display: none !important;
}

#header .hf-header-hubs,
#header .hf-mobile-header-hubs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#header .hf-header-hub-dropdown {
    position: relative;
}

#header .hf-nav-header-hubs {
    display: flex;
    align-items: center;
}

#header .hf-header-hub-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(6, 34, 77, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#header .hf-header-hub-toggle:hover,
#header .hf-header-hub-toggle:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(6, 34, 77, 0.24);
    transform: translateY(-1px);
    text-decoration: none;
}

#header .hf-header-hub-toggle::after {
    display: none;
}

#header .hf-header-hub-icon {
    line-height: 0;
}

#header .hf-header-hub-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f02849;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(240, 40, 73, 0.34);
    border: 2px solid #2d79c7;
}

#header .hf-header-hub-menu {
    width: 360px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 56px rgba(8, 25, 54, 0.24);
    z-index: 1200;
}

#header .hf-header-hub-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #edf2fb;
}

#header .hf-header-hub-menu-head strong {
    color: #173b73;
    font-size: 18px;
    font-weight: 800;
}

#header .hf-header-hub-menu-head a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

#header .hf-header-hub-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
}

#header .hf-header-hub-empty {
    padding: 26px 14px;
    color: #6a7d98;
    font-size: 14px;
    text-align: center;
}

#header .hf-header-hub-entry {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    color: #173b73;
    transition: background .18s ease, transform .18s ease;
}

#header .hf-header-hub-entry:hover,
#header .hf-header-hub-entry:focus {
    background: #f4f8ff;
    text-decoration: none;
    transform: translateY(-1px);
}

#header .hf-header-hub-avatar,
#header .hf-header-hub-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

#header .hf-header-hub-avatar {
    object-fit: cover;
    background: #eef4ff;
}

#header .hf-header-hub-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f5fb9 0%, #15386d 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

#header .hf-header-hub-entry-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

#header .hf-header-hub-entry-title strong {
    color: #142f59;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

#header .hf-header-hub-entry-time {
    color: #8090a8;
    font-size: 11px;
    white-space: nowrap;
}

#header .hf-header-hub-entry-body {
    color: #516884;
    font-size: 13px;
    line-height: 1.45;
}

#header .hf-header-hub-entry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1c56b2;
    font-size: 11px;
    font-weight: 800;
}

#header .hf-mobile-header-hubs .hf-header-hub-toggle {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 16px rgba(6, 34, 77, 0.16);
}

#header .hf-mobile-header-hubs .hf-header-hub-toggle svg {
    width: 18px;
    height: 18px;
}

#header .hf-mobile-header-hubs .hf-header-hub-badge {
    top: -6px;
    right: -5px;
    border-color: #2c78c6;
}

#header .hf-header-hub-menu-mobile {
    position: absolute;
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 16px));
}

#header .hf-header-hub-menu-mobile .hf-header-hub-entry {
    grid-template-columns: 42px 1fr;
    gap: 10px;
}

#header .hf-header-hub-menu-mobile .hf-header-hub-avatar,
#header .hf-header-hub-menu-mobile .hf-header-hub-fallback {
    width: 42px;
    height: 42px;
}

#header .hf-header-hub-menu-mobile .hf-header-hub-entry-body {
    display: none;
}

#header .hf-header-hub-menu-mobile .hf-header-hub-entry-title {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    #header .hf-header-hubs {
        display: none !important;
    }

    #header .nav-mobile-header .flex-item-left {
        flex: 0 0 44px;
        width: 44px;
    }

    #header .nav-mobile-header .flex-item-mid {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    #header .nav-mobile-header .flex-item-right {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
    }

    #header .hf-mobile-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        flex-wrap: nowrap;
    }

    #header .hf-mobile-header-hubs {
        margin-right: 2px;
        gap: 4px;
        flex-shrink: 0;
    }

    #header .hf-mobile-header-hubs .hf-header-hub-dropdown {
        flex-shrink: 0;
    }

    #header .a-mobile-account,
    #header .a-mobile-cart {
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    #header .hf-mobile-header-hubs {
        display: none !important;
    }
}
