
.main-header {
    background: var(--monochrome-900);
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 8px;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 200;
}

/* Logo container — allow natural SVG sizing */
.main-header .header_logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: auto;
}

/* Logo — matches QS logo_dark.svg natural size (187x36) */
.main-header .header_logo .logo_img {
    width: auto;
    height: 36px;
    max-width: none;
}

.main-header .main-header-links-mobile-trigger {
    display: none;
    cursor: pointer;
}

.main-header .main-header-links-mobile-nots {
    display: none;
    cursor: pointer;
    float:right;
}

.main-header .main-header-links-mobile-nots span {
    display: block;
    margin-bottom: 6px;
    float:right;
    color:#fff;
}

.main-header .main-header-links-mobile-trigger span {
    display: block;
    margin-bottom: 6px;
    width: 25px;
    height: 2px;
    background: #fff;
}

.main-header .main-header-links {
    display: flex;
    align-items: center;
}

/* Profile avatar wrapper — matches QS w-13 h-13 rounded hover:bg-white/20 */
.main-header .main-header-links .user-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s;
}

.main-header .main-header-links .user-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.main-header .main-header-links .user-link:active,
.main-header .main-header-links .user-link.open {
    background-color: rgba(255, 255, 255, 0.35);
}

/* Profile avatar image — matches QS RevAvatar size="small" (32px) circle, dark theme */
.main-header .main-header-links .user-link .user-link-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
}

.main-header-links .header-link {
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    margin-left: 0;
}

.main-header-links .header-link-black {
    color: #000 !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    margin-left: 0;
}

/* App Switcher Dropdown */
.app-switcher-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.app-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--monochrome-700);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    padding: 0 12px;
    height: 40px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s;
    line-height: 1.5;
    width: 225px;
}

.app-switcher-trigger:hover {
    border-color: var(--monochrome-800);
}

.app-switcher-trigger.open {
    border-color: var(--primary-400);
}

.app-switcher-trigger:focus {
    outline: none;
    border-color: var(--primary-400);
}

/* Icon badge in trigger (size "s": 20x20, rounded-sm) */
.app-switcher-trigger-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: var(--primary-500);
    flex-shrink: 0;
}
.app-switcher-trigger-icon-wrap i {
    color: #fff;
    font-size: 12px;
}

.app-switcher-label {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    flex-grow: 1;
    text-align: left;
}

.app-switcher-trigger[disabled] .app-switcher-label {
    color: rgba(255, 255, 255, 0.5);
}

.app-switcher-caret {
    color: var(--monochrome-600);
    font-size: 10px;
    transition: transform 0.2s;
    margin-left: auto;
}

.app-switcher-trigger.open .app-switcher-caret {
    color: #fff;
}

.app-switcher-caret.rotated {
    transform: rotate(180deg);
}

/* App Switcher Menu */
.app-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    width: 225px;
    z-index: 320;
    overflow: hidden;
    padding: 8px 0;
}

.app-switcher-menu.open {
    display: block;
}

/* App Switcher Items (typography-body-sm: 14px/400/1.5) */
.app-switcher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    margin: 4px 0;
    color: var(--monochrome-900);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s;
    text-transform: capitalize;
}

.app-switcher-item:hover {
    background-color: var(--monochrome-50, #f3f5f8);
    text-decoration: none;
    color: var(--monochrome-900);
}

.app-switcher-item.app-switcher-item-disabled {
    cursor: default;
}

.app-switcher-item.app-switcher-item-disabled:hover {
    background-color: transparent;
}

.app-switcher-item .tag-text {
    background-color: var(--primary-50);
    color: var(--primary-600);
    padding: 4px 6px;
    font-weight: bold;
    border-radius: 32px;
    margin-top: 4px;
    display: block;
}

/* Icon badges in dropdown items (size "s": 20x20, rounded-sm) */
.app-switcher-item-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: var(--primary-500);
    flex-shrink: 0;
}
.app-switcher-item-icon-wrap i {
    color: #fff;
    font-size: 18px;
}

.app-switcher-item-active {
    background-color: var(--primary-50);
}

.header-link:hover,
.header-link:hover a,
.header-link:focus,
.header-link:focus a,
.header-link.active,
.header-link.active a {
    color: #40BFBC !important;
    font-weight: bold !important;
}
.header-link.grow-btn:hover,
.header-link.grow-btn:focus,
.header-link.grow-btn.active,
.header-link.grow-btn.active a {
    color: #fff !important;
}
.header-link a {
    color: #fff;
}

.header-icons {
    display: flex;
    align-items: center;
    display: none;
}

.main-header-links-mobile-add {
    cursor: pointer;
    margin-right: 20px; /* Adjust as needed */
}

.main-header-links-mobile-add span {
    display: block;
    color: #fff;
}

.main-header .main-header-links .header-link .activate-dropdown {
    margin-left: 8px;
    font-size: 10px;
    border: 2px solid #FFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
}
.main-header .main-header-links .header-link.active .activate-dropdown,
.main-header .main-header-links .header-link:hover .activate-dropdown {
    border: 2px solid #F29C94;
}

/* Profile dropdown — matches QS ProfileMenu MenuItems */
.account-settings {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    right: 8px;
    top: 66px;
    width: 257px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 320;
    box-shadow:
        0px 3px 14px 2px rgba(0, 0, 0, 0.12),
        0px 8px 10px 1px rgba(0, 0, 0, 0.14),
        0px 5px 5px -3px rgba(0, 0, 0, 0.20);
}

/* Avatar icon — matches QS RevAvatar size="small" circle light theme */
.account-settings .account-settings-user-icon {
    height: 32px;
    width: 32px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(1, 0, 37, 0.08);
    background-color: var(--monochrome-50);
}
.account-settings .account-settings-user-icon i.fa {
    color: rgba(10, 7, 44, 0.31);
}

/* User details — matches QS typography-body-sm / xs */
.account-settings .account-settings-user-details {
    text-align: center;
}
.account-settings .account-settings-user-details .user-name {
    font-size: 14px;
    line-height: 1.5;
    color: var(--monochrome-900);
    margin-top: 12px;
    margin-bottom: 0;
    font-weight: 400;
}
.account-settings .account-settings-user-details .user-email {
    font-size: 12px;
    line-height: 1.5;
    color: var(--monochrome-500);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Manage account button — matches QS RevLink primary medium (inline-flex, content-width) */
.account-settings .revBtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0;
    padding: 9.5px 16px !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 4px !important;
    text-decoration: none !important;
    background-color: var(--primary-500) !important;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
}
.account-settings .revBtn:hover {
    background-color: var(--primary-600) !important;
}

/* Logout button — matches QS RevButton tertiary primary */
.account-settings .logout-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 4px;
    color: var(--primary-500);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.account-settings .logout-link:hover {
    background-color: var(--primary-50);
    color: var(--primary-600);
    text-decoration: none;
}
.account-settings .logout-link i.fa {
    color: inherit;
    font-size: 14px;
}

@media (max-width: 1199px) {
    .main-header .main-header-links {
        display: none;
    }
    .main-header .main-header-links-mobile-trigger {
        display: block;
    }
    .main-header .main-header-links-mobile-nots {
        display: block;
    }
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown .chevron-down {
    transform: rotate(0deg);
}

.custom-dropdown-opened .chevron-down {
    transform: rotate(180deg);
}

.custom-dropdown-wrapper-toggle {
    opacity: 0;
}

.custom-dropdown-wrapper-toggle.dropdown-opened {
    opacity: 1;
}

.custom-dropdown .custom-dropdown-arrow {
    line-height: 0;
    display: inline-block;
    overflow: hidden;
    height: 0;
    width: 0;
    left: 62%;
    margin-left: -20px;
    top: 99%;
    position: absolute;
    border-bottom: 7px solid #FFF;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.custom-dropdown .custom-dropdown-wrapper {
    position: absolute;
    box-shadow: 0px 0px 15px 1px rgba(69,65,78,0.2);
    background: #FFF;
    color: #000;
    border-radius: 4px;
    padding: 0px;
    top: 120%;
    text-align: left;
    z-index: 320;
    left: 50%;
    width: 245px;
    margin-left: -122.5px;
    overflow: hidden;
}

.custom-dropdown .custom-dropdown-wrapper ul {
    list-style: none;
}

.custom-dropdown .custom-dropdown-wrapper ul hr {
    margin: 0 auto !important;
    width: 80%;
}

.custom-dropdown .custom-dropdown-wrapper ul li {
    
}

.custom-dropdown .custom-dropdown-wrapper ul li:hover {
    background: #f3f5f8;
}

.custom-dropdown .custom-dropdown-wrapper ul li a {
    text-decoration: none;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    padding: 20px 15px;
    display: block;
}

.store-badge {
    background: #e1ebfd;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.main-header-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: scroll;
}

.close-main-header-mobile {
    position: absolute;
    right: 30px;
    top: 10px;
    color: #FFF;
    font-size: 26px;
    font-weight: 500;
    cursor: pointer;
    color:#fff;
}

.main-header-mobile-content {
    text-align: center;
}

.main-header-mobile-upper {
    background: #010025;
    padding-top: 20px;
    padding-bottom: 30px;
}

.main-header-mobile-logo {
    margin: 0px 0 20px;
    float: left;
    padding-left: 10px;
}

.main-header-mobile-logo img {
    width: 130px;
}

.user-link-mobile-wrapper {
    
}

.user-link-mobile-wrapper .user-link-mobile {
    overflow: hidden;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: 3px solid #546581;
    margin: auto;
}

.user-link-mobile-wrapper .user-link-mobile img {
    width: 100%;
    height: 100%;
}

.username-mobile-link-wrapper {
    margin-top:60px;
    width: 100%;
}

.username-mobile-link {
    color: #FFF;
    font-weight: 500;
    width: 100%;
    text-align: center;
    background-color:#333;
    min-height: 60px;
    padding:15px;
    display: inline-block;
    border-bottom: 1px solid #fff;
}

.username-mobile-link-wrapper .mobile-edit-username-icon {
    width: 17px;
    margin-top: -2px;
    margin-left: 5px;
}

.mobile-buttons-wrapper {
    margin-top: 20px;
}
.main-header-mobile-down {
    box-shadow: 0px 0px 14px 12px rgba(65, 65, 65, .3);
    border-bottom: 1px solid #eee;
    text-align: left;
    background: #000;
    color: #FFF;
}
.main-header-mobile-stores {
    background: #FFF;
    text-align: left;
    max-height: 275px;
    overflow-y: scroll;
    border-bottom: 2px solid #eee;
    box-shadow: 0px 0px 7px 6px rgba(65, 65, 65, .3);
}

.main-header-mobile-stores .mobile-dropdown-content {

}

.main-header-mobile-down .mobile-dropdown-icon {
    padding-right: 15px;
}

.main-header-mobile-stores .mobile-dropdown-content ul,
.main-header-mobile-down .mobile-dropdown-content ul {
    list-style: none;
}

.main-header-mobile-stores .mobile-dropdown-content ul hr,
.main-header-mobile-down .mobile-dropdown-content ul hr {
    margin: 0 auto !important;
}

.main-header-mobile-stores .mobile-dropdown-content ul li,
.main-header-mobile-down .mobile-dropdown-content ul li {

}

.main-header-mobile-stores .mobile-dropdown-content ul li a,
.main-header-mobile-down .mobile-dropdown-content ul li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    padding: 20px 15px 20px 30px;
    display: block;
}

.main-header-mobile-stores .mobile-dropdown-content ul li a .chevron-right-mobile,
.main-header-mobile-down .mobile-dropdown-content ul li a .chevron-right-mobile {
    color: #ea2d49;
    float: right;
    margin-right: 20px;
    margin-top: 4px;
}
.main-header-mobile-down .mobile-dropdown-content ul li a {
    background: #2c2c2c;
    color: #fff;
    padding: 10px 15px 10px 25px;
    border-bottom: 3px solid #2c2c2c;
    line-height: 33px;
}
.main-header-mobile-down .mobile-dropdown-content ul li a.active,
.main-header-mobile-down .mobile-dropdown-content ul li a:hover {
    border-bottom: 3px solid #FFF;
}
@media (min-width: 1200px) {
    .main-header-mobile {
        display: none !important;
    }
}