/*
    File: msc-header-navigation.css
    Description:
    This file handles the UI UX header, menu and navigations of the website, uses for the /catalog, /app paths and the wordpress msc blog.
    Including the mobile and desktop versions of the header, main menu, main services dropdown, main menu account dropdown, services mini menu, and main menu search bar,
    Select student navigation, switch store navigation, select a date navigation, mobile bottom menu, and store breadcrumbs.

    Breakpoint Ranges:
      - 1200px and up       : Default and large desktops)
      - 992px to 1199px     : Medium desktops/laptops
      - 768px to 991px      : Tablets (landscape) and small laptops
      - 576px to 767px      : Large mobile devices and Tablets (portrait)
      - Below 575px         : Small mobile devices
*/

/* Default and Large Desktops) (1200px and above) */
#msc-new-header {
    box-shadow: unset !important;
}

#desktop-header {
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
}

#desktop-header-top {
    max-height: 40px;
    background-color: #454445;
    transition: background-color 0.3s ease;
}

#desktop-header-top #header-top-links {
    font-size: 12px;
    max-width: 1460px;
    height: 40px;
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 5px;
    color: #FFFFFF;
}

#desktop-header-top #header-top-links a {
    min-width: 115px;
    display: inline-block;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    position: relative;
}

#desktop-header-top #header-top-links a:hover,
#desktop-header-top #header-top-links a:focus {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

#desktop-header-top #header-top-links a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#desktop-header-content {
    display: flex;
    margin: 0 auto;
    width: 100%;
    height: 70px;
    max-width: 1460px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

#desktop-header-content #header-logo {
    padding-left: 20px;
    margin-right: 50px;
}

#desktop-header-content #header-logo a:focus img {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

nav#main-menu-container {
    flex: 1;
}

nav#main-menu-container ul {
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 65px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav#main-menu-container li {
    min-width: 70px;
    margin-right: 10px;
    position: relative;
}

nav#main-menu-container a {
    color: #4d4d4d;
    text-decoration: none;
    padding: 10px 12px;
    position: relative;
}

nav#main-menu-container a:hover,
nav#main-menu-container a:focus {
    font-weight: bold;
}

nav#main-menu-container a:focus {
    outline: 2px solid #4d4d4d;
    outline-offset: 2px;
}

/* --- Mega Menu Styles --- */
.services-menu-parent {
    position: relative;
    width: 110px;
    height: 65px;
    display: flex;
    align-items: center;
}

#services-menu-toggle {
    padding: 0 35px 0 12px !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #4d4d4d;
}

#services-menu-toggle[aria-expanded="true"] {
    font-weight: bold;
}

#services-menu-toggle::after {
    content: '\203A' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(90deg) !important;
    font-size: 20px !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 20px !important;
    text-align: center !important;
}

#services-menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(-90deg) !important;
}

#services-mega-menu {
    position: absolute;
    left: -25px;
    top: 108%;
    width: 1270px;
    max-width: 90vw;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 2px solid #dcdcdc;
    padding: 32px 36px 28px 36px;
    z-index: 1000;
    display: none;
    min-height: 180px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.5s ease;
}

.mega-menu-item:hover {
    background-color: #f5f5f5;
}

.mega-menu-item:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

.mega-menu-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    flex-shrink: 0;
}

.mega-menu-content {
    flex: 1;
}

.mega-menu-title {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.mega-menu-description {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

#desktop-header-content #user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

#user-nav .register-btn,
#user-nav .login-btn {
    padding: 8px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 125px;
    text-align: center;
}

#user-nav .register-btn {
    background-color: #2E8540;
    color: #FFFFFF;
    border: 2px solid #2E8540;
}

#user-nav .login-btn {
    background-color: #FFFFFF;
    color: #333333;
    border: 2px solid #4d4d4d;
}

#user-nav .register-btn:hover {
    background-color: #287238FF;
}

#user-nav .login-btn:hover {
    background-color: #444444;
    border-color: #444444;
    color: #FFFFFF;
}

#user-nav .register-btn:focus,
#user-nav .login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 133, 64, 0.3);
}

#user-nav .home-link {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

#user-nav .home-link .home-icon {
    display: block;
    width: 30px;
    height: 25px;
    background-image: url('icons/home-grey.png');
    background-size: contain;
    transition: background-image 0.3s ease;
}

#user-nav .home-link .home-icon:hover {
    background-image: url('icons/home-green.png');
}

#user-nav .home-link .home-icon:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

#user-nav #parent-service-menu {
    display: block;
    width: 30px;
    height: 25px;
    background-image: url('icons/service-colourful-burger.png');
    background-size: contain;
    transition: background-image 0.3s ease;
    cursor: pointer;
}

#user-nav #parent-service-menu[aria-expanded="true"] {
    background-image: url('icons/service-green-burger.png');
}

#user-balance {
    border: 3px solid #2E8540;
    color: #4d4d4d;
    padding: 6px 10px;
    border-radius: 25px;
    min-width: 125px;
    text-align: center;
}

#user-balance a {
    color: #4d4d4d;
    text-decoration: none;
}

#user-balance span {
    font-weight: bold;
}

#user-balance:hover {
    background-color: #bcd6bf;
}

.account-menu-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#user-nav #account-menu {
    display: flex;
    justify-content: center;
    width: 80px;
    background-color: #4d4d4d;
    border: 3px solid #4d4d4d;
    border-radius: 30px;
    background-image: url('icons/account-grey.png');
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: 8px center;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    height: 38px;
}

#user-nav #account-menu::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    transition: transform 0.3s ease;
    pointer-events: none;
}

#user-nav #account-menu[aria-expanded="true"] {
    background-color: #2E8540;
    border-color: #2E8540;
    background-image: url('icons/account-green.png');
}

#user-nav #account-menu[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(-180deg);
    border-top: 8px solid #ffffff;
}

/* Account Dropdown Menu Styles */
#account-menu-content {
    display: none;
    position: absolute;
    top: 34px;
    right: -5px;
    min-width: 320px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #dcdcdc;
    z-index: 1000;
    border-top: 0px;
    border-radius: 0 0 4px 4px;
    margin-top: 25px;
}

#account-menu-content .account-info {
    height: 74px;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    background-color: #ecf7e9;
    word-wrap: break-word;
}

#account-menu-content .account-info .account-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

#account-menu-content .account-info .account-email {
    font-size: 14px;
    color: #666;
    margin: 0;
}

#account-menu-content .account-menu-items {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

#account-menu-content .account-menu-items li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

#account-menu-content .account-menu-items li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 73px;
    color: #4d4d4d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0px 30px;
    border-radius: 4px;
}

#account-menu-content .account-menu-items li a:hover,
#account-menu-content .account-menu-items li a:focus {
    background-color: #f5f5f5;
    color: #2E8540;
    outline: none;
}

/* Services Dropdown Menu Styles */
.service-menu-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#parent-service-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    width: 285px;
    background: #fff;
    border: 1px solid #dcdcdc;
    z-index: 1000;
    margin-top: 27px;
}

#parent-service-content .services-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#parent-service-content .services-menu-items li {
    height: 73px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

#parent-service-content .services-menu-items li:hover,
#parent-service-content .services-menu-items li:focus {
    background-color: #f5f5f5;
    outline: none;
}

#parent-service-content .services-menu-items li:last-child {
    margin-bottom: 0;
}

#parent-service-content .services-menu-items li a.service-item {
    display: flex;
    align-items: center;
    height: 73px;
    padding: 0px 30px;
    color: #4d4d4d;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#parent-service-content .service-icon {
    width: 48px;
    height: auto;
    margin-right: 10px;
    flex-shrink: 0;
    object-fit: contain;
}

#parent-service-content .services-menu-items li a.service-item span {
    flex: 1;
}

/** Desktop Services Mini Menu **/
#services-mini-menu {
    display: flex;
    margin: 0 auto;
    background-color: #f2f2f2;
    max-width: 1430px;
    border: 1px solid #d1d1d1;
    border-top: unset;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


.services-mini-menu-inner {
    display: flex;
    width: 100%;
    height: 73px;
    justify-content: space-between;
}

.services-mini-store-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0px 20px;
    width: auto;
}

.services-mini-menu-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f4f4f4;
    object-fit: cover;
}

.services-mini-menu-store-info {
    display: flex;
    flex-direction: column;
}

.services-mini-menu-store-desc {
    display: flex;
    flex-direction: column;
}

.services-mini-menu-store-title {
    font-weight: bold;
    color: #4D4D4D;
    line-height: 1.2;
}

.services-mini-menu-student-switch,
.services-mini-menu-store-switch {
    color: #2E8540;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
}

#services-mini-menu-cart {
    display: flex;
    padding: 0px 20px;
    font-size: 22px;
    color: #444;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    position: relative;
}

#services-mini-menu-cart .shopping-cart-icon {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('icons/cart-grey.png');
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: center;
}

.shopping-cart-icon .cart-item-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #2E8540;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#services-mini-menu-search-wrapper {
    display: flex;
    width: 510px;
    justify-content: center;
    align-items: center;
    padding: 0px 30px;
}

#services-mini-menu-search {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 24px;
    padding: 0 16px;
    height: 44px;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    position: relative;
}

#services-mini-menu-search i.fa-search {
    color: #4d4d4d;
    font-size: 18px;
}

#desktop-button-search {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-block;
    cursor: pointer;
    color: #4D4D4D;
    border: 2px solid;
    background-color: #efefef;
}

#services-mini-menu-search-clear:hover,
#desktop-button-search:hover {
    background-color: #dddddd;
}

#services-mini-menu-search input {
    border: none;
    background: transparent;
    font-size: 16px;
    flex: 1;
    outline: none;
    color: #333;
    padding: 0;
}

/* To prevent focus effect on input */
#services-mini-menu-search input:focus {
    outline: none !important;
}

#services-mini-menu-search:has(input:focus) {
    outline: 2px solid #2E8540;
}

#desktop-button-search.search-icon {
    background-image: url('icons/search-grey.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

#services-mini-menu-search-clear {
    width: 38px;
    height: 38px;
}

.search-clear-button {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    color: #4d4d4d;
    transition: background 0.2s;
    border: 2px solid;
    background-color: #efefef;
    font-size: 16px;
}

.services-mini-menu-student-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #ffffff;
    min-width: 380px;
    border-left: 1px solid #d1d1d1;
}

.services-mini-menu-student-wrapper.has-no-student {
    background-color: #f2f2f2;
    border-left: unset;
}

.services-mini-menu-student-wrapper.student-selected {
    background: #eaf7ea;
}

.services-mini-menu-user {
    display: flex;
    align-items: center;
    border-radius: 4px;
    padding: 8px 18px 8px 30px;
}

.services-mini-menu-user-avatar {
    width: 40px;
    height: 40px;
    background: #aab7a8;
    border-radius: 50%;
    margin-right: 12px;
}

.services-mini-menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.services-mini-menu-user-name {
    font-weight: bold;
    color: #4D4D4D;
    font-size: 14px;
    line-height: 1.2;
}

.services-mini-menu-user-school {
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}


/* Student Select Dropdown Styles */
.services-mini-menu-student-wrapper,
.services-mini-store-wrapper {
    position: relative;
}

.student-select-dropdown {
    position: absolute;
    top: 100%;
    right: -1px;
    left: -1px;
    background: #fff;
    z-index: 1002;
    border: 1px solid #d1d1d1;
}

/* Store Select Dropdown Styles */
#store-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 350px;
    background: #fff;
    z-index: 1002;
    border: 1px solid #d1d1d1;
}

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

.store-select-item {
    display: flex;
    align-items: center;
    padding: 12.5px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s;
}

.store-select-item:last-child {
    border-bottom: none;
}

.store-select-item:hover {
    background-color: #f4f8f6;
}

.store-select-item.selected {
    background-color: #eaf7ea;
}

.store-select-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    flex-shrink: 0;
}

.store-select-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.store-select-desc {
    color: #666;
    font-size: 14px;
}

.store-select-title {
    font-weight: bold;
    color: #4D4D4D;
}

.store-select-switch {
    color: #2E8540;
    font-weight: 600;
    margin-left: 8px;
}

.student-select-title {
    font-weight: bold;
    font-size: 16px;
    color: #4D4D4D;
    padding: 16px 20px 8px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.student-select-select {
    color: #399944;
    font-weight: 600;
    font-size: 13px;
    margin-left: 8px;
}

.student-select-list {
    padding: 0;
    margin: 0;
}

.student-select-list a {
    color: #4D4D4D;
}

.student-select-item {
    display: flex;
    flex-direction: row;
    padding: 12.5px 5px 12.5px 30px;
    cursor: pointer;
    border-bottom: 1px solid #f6f6f6;
    transition: background 0.15s;
    background: #fff;
    color: #4D4D4D;
}

.student-select-item:last-child {
    border-bottom: none;
}

.student-select-item:hover:not(.unavailable):not(.selected),
.student-item:hover:not(.unavailable):not(.selected)
{
    background: #f4f8f6;
}

.student-select-item.selected {
    background: #eaf7ea;
}

.student-select-item.unavailable,
.student-item.unavailable
{
    color: #b0b0b0;
    background: #fafafa;
    cursor: not-allowed;
    pointer-events: none;
}

/* Prevent clicks on unavailable links */
a.unavailable
{
    pointer-events: none;
    cursor: not-allowed;
}

.student-name-school-wrapper {
    display: flex;
    flex-direction: column;
}

.student-name-school-wrapper .student-select-name {
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    word-break: break-word;
}

.student-name-school-wrapper .student-select-unavailable,
.student-info .student-select-unavailable
{
    color: #2e8540;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0;
}

.student-name-school-wrapper .student-select-school {
    margin-top: 2px;
}

.student-select-divider {
    height: 1px;
    background: #e3e8ee;
    margin: 4px 0;
    border: none;
}

/* Mobile Header Styles */
#mobile-header {
    display: none;
}

#mobile-header-buffer {
    display: none;
}

#mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    background-color: #ffffff;
    height: 70px;
    padding: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

#mobile-main-menu {
    width: 44px;
    height: 44px;
    background-image: url('icons/mobile-hamburger-menu-icon.png');
    background-size: 25px 22px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    margin-right: 20px;
    position: relative;
    border: none;
    background-color: transparent;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-main-menu:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

#mobile-main-menu .hamburger-close-icon {
    display: none;
    width: 25px;
    height: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: space-between;
}

#mobile-main-menu[aria-expanded="true"] {
    background-image: none;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon {
    display: flex;
}

#mobile-main-menu .hamburger-close-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #4d4d4d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon .top-bun {
    transform: translateY(9px) rotate(45deg);
    background-color: #2E8540;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon .patty {
    opacity: 0;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon .bottom-bun {
    transform: translateY(-10px) rotate(-45deg);
    background-color: #2E8540;
}

#mobile-main-menu-content {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 0px 10px;
    overflow-y: auto;
}

#mobile-main-menu-content.open {
    display: block;
}

#mobile-main-menu-content.open + body {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile menu content styles */
.mobile-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mobile-main-menu-content .mobile-main-menu-items {
    width: 100%;
    margin-bottom: 20px;
    list-style: none;
    padding: 10px 20px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mobile-main-menu-content .mobile-main-menu-item {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mobile-main-menu-content .mobile-main-menu-item:last-child {
    border-bottom: none;
}

#mobile-main-menu-content .mobile-main-menu-link {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4d4d4d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
    min-height: 73px;
    text-align: center;
    position: relative;
}

#mobile-main-menu-content .mobile-main-menu-services-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 5px;
}

#mobile-main-menu-content .mobile-main-menu-services-link::after {
    content: '\276F'; /* Heavy Right-Pointing Angle Quotation Mark Ornament (❯) */
    display: inline-block;
    margin-left: 10px;
    color: #4d4d4d;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    top: 0px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#mobile-main-menu-content .mobile-main-menu-services-link[aria-expanded="true"] {
    color: #2E8540;
    background-color: white;
}

#mobile-main-menu-content .mobile-main-menu-services-link[aria-expanded="true"]::after {
    transform: rotate(90deg);
    color: #2E8540;
}

#mobile-main-menu-content .mobile-main-menu-link:hover {
    background-color: #f5f5f5;
    color: #2E8540;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-main-menu-link:focus {
    color: #2E8540;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-buttons {
    margin-top: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#mobile-main-menu-content .mobile-join-btn,
#mobile-main-menu-content .mobile-login-btn {
    display: block;
    padding: 12px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    line-height: 24px;
    width: 200px;
    margin: 0 auto;
}

#mobile-main-menu-content .mobile-join-btn {
    background-color: #2E8540;
    color: #FFFFFF;
    border: 2px solid #2E8540;
}

#mobile-main-menu-content .mobile-login-btn {
    background-color: transparent;
    color: #333333;
    border: 2px solid #4d4d4d;
}

#mobile-main-menu-content .mobile-join-btn:hover,
#mobile-main-menu-content .mobile-join-btn:focus {
    background-color: #287238;
    color: #FFFFFF;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-login-btn:hover,
#mobile-main-menu-content .mobile-login-btn:focus {
    background-color: #444444;
    border-color: #444444;
    color: #FFFFFF;
    text-decoration: none;
}

/* Mobile Services Submenu */
#mobile-main-menu-content .mobile-services-submenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s ease-in-out; /* Animate only opacity */
    pointer-events: none;
}

#mobile-main-menu-content .mobile-services-submenu.open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}

#mobile-main-menu-content .mobile-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#mobile-main-menu-content .mobile-services-list li {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px 0px;
    border-bottom: 1px solid #e5e5e5;
}

#mobile-main-menu-content .mobile-services-list li:last-child {
    border-bottom: none;
}

#mobile-main-menu-content .mobile-service-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 300px;
    padding: 0px 20px;
}

#mobile-main-menu-content .mobile-services-list li:hover,
#mobile-main-menu-content .mobile-services-list li:focus {
    background-color: #f0f0f0;
    color: initial;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    margin-right: 18px;
}

@media (max-width: 1499px) {
    #services-mega-menu {
        width: 1100px;
    }
}

@media (max-width: 1299px) {
    #services-mega-menu {
        width: 1000px;
    }
}

/* Medium desktops/laptops (992px - 1199px) */
@media (max-width: 1199px) {
    #desktop-header-content {
        padding: 0 15px;
    }

    nav#main-menu-container li {
        margin-right: 15px;
    }

    #services-mega-menu {
        width: 800px;
    }

    .services-mini-store-wrapper {
        width: initial;
    }

    #services-mini-menu-search-wrapper {
        width: 350px;
    }

    .services-mini-menu-student-wrapper {
        max-width: 300px;
    }
}

/* Mobile Select Student Button */
#mobile-select-student {
    background-color: #ffffff;
    color: #4d4d4d;
    border: 2px solid #4d4d4d;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 30px 8px 16px;
    height: 38px;
    min-width: 150px;
    margin-right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

/* Add a span wrapper for text */
#mobile-select-student span {
    display: inline-block;
}

#mobile-select-student.has-student-list::after {
    content: '';
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #4d4d4d;
    transition: transform 0.3s ease;
}

#mobile-select-student[aria-expanded="true"] {
    border-color: #2E8540;
    color: #2E8540;
}

#mobile-select-student[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(-180deg);
    border-top-color: #2E8540;
}

#mobile-select-student:hover,
#mobile-select-student:focus,
#mobile-bottom-main-menu .balance-icon.balance:hover,
#mobile-bottom-main-menu .balance-icon.balance:focus {
    background-color: #f5f5f5;
    border-color: #2E8540;
    color: #2E8540;
    outline: none;
}

#mobile-select-student:hover::after,
#mobile-select-student:focus::after {
    border-top-color: #2E8540;
}

/* Mobile Select Student List Dropdown */
#mobile-select-student-list {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 126.5px);
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e5e5e5;
}

#mobile-select-student-list .student-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
}

#mobile-select-student-list .student-item:hover,
#mobile-select-student-list .student-item:focus {
    background-color: #edf7e9;
}

#mobile-select-student-list .student-item.active {
    background-color: #edf7e9;
    position: relative;
}

#mobile-select-student-list .student-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #2E8540;
}

.student-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E8540, #4CAF50);
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#mobile-select-student-list .student-info {
    flex: 1;
}

#mobile-select-student-list .student-name {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin: 0 0 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    word-break: break-word;
}

#mobile-select-student-list .student-school {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Mobile Bottom Navigation Main Menu */
#mobile-bottom-navigation {
    display: none;
}

#mobile-services-mini-menu-navigation {
    display: none;
}

#mobile-store-select-list {
    display: none;
}

#mobile-menu-search-navigation {
    display: none;
}

#mobile-menu-category-navigation {
    display: none;
}

#mobile-menu-category-list-navigation {
    display: none;
}

#mobile-bottom-main-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    border-top: 1px solid #e5e5e5;
    position: relative;
    z-index: 2; /* Local stacking context */
}

/* Mobile Bottom Main Menu Icon Backgrounds */
#mobile-bottom-main-menu .bottom-menu-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-bottom-main-menu .home-icon {
    background-image: url('icons/home-grey.png');
    background-size: 36px 30px;
    background-repeat: no-repeat;
    background-position: center;
}

#mobile-bottom-main-menu .service-icon {
    background-image: url('icons/service-grey-burger.png');
    background-size: 31px 32px;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
}

#mobile-bottom-main-menu .service-icon[aria-expanded="true"] {
    background-image: url('icons/service-green-burger.png');
}

#mobile-bottom-main-menu .account-icon {
    background-image: url('icons/account-grey.png');
    background-size: 37px 36px;
    background-repeat: no-repeat;
    background-position: center;
}

#mobile-bottom-main-menu .balance-icon.balance {
    width: 135px;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 14px 0 14px;
    border-radius: 30px;
    border: 2px solid #4d4d4d;
    color: #4d4d4d;
    background-color: #fff;
    font-weight: 600;
}

#mobile-bottom-main-menu .balance-icon span {
    font-weight: bold;
    margin-left: 4px;
}

#mobile-bottom-main-menu .home-icon:active,
#mobile-bottom-main-menu .home-icon:focus {
    background-image: url('icons/home-green.png');
}

#mobile-bottom-main-menu .account-icon[aria-expanded="true"] {
    background-image: url('icons/account-green.png');
}

/* Mobile Bottom Services Menu */
#mobile-bottom-services-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 53px;
    width: 100vw;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 1099;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

#mobile-bottom-services-menu.open {
    display: block;
    transform: translateY(0);
}

#mobile-bottom-services-menu .services-menu-items {
    list-style-type: none;
    padding: 0;
}

#mobile-bottom-services-menu .service-item {
    display: flex;
    align-items: center;
    padding: 10px 30px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background 0.2s;
    width: 100%;
    height: 73px;
}

#mobile-bottom-services-menu ul li a:hover,
#mobile-bottom-services-menu ul li a:focus
{
    background-color: #f0f0f0;
    color: initial;
    text-decoration: none;
}

#mobile-bottom-services-menu .mobile-bottom-service-icon {
    width: 56px;
    height: 56px;
    margin-right: 18px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

#mobile-bottom-services-menu .service-item span {
    font-size: 16px;
    color: #444;
    font-weight: 500;
}

/* Mobile Account Menu Styles */
#mobile-account-menu-content {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 53px;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 1099;
    overflow-y: auto;
}

#mobile-account-menu-content .account-info {
    padding: 20px;
    background-color: #ecf7e9;
    border-bottom: 1px solid #eee;
}

#mobile-account-menu-content .account-info .account-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

#mobile-account-menu-content .account-info .account-email {
    font-size: 14px;
    color: #666;
    margin: 0;
    word-break: break-all;
}

#mobile-account-menu-content .account-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-account-menu-content .account-menu-items li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

#mobile-account-menu-content .account-menu-items li:last-child {
    border-bottom: none;
}

#mobile-account-menu-content .account-menu-items li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 73px;
    padding: 10px 30px;
    color: #4d4d4d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#mobile-account-menu-content .account-menu-items li a:hover,
#mobile-account-menu-content .account-menu-items li a:focus {
    background-color: #f5f5f5;
    color: #2E8540;
}

/* Contact Us Button Styles */
#contact-us-wrapper {
    left: 0;
    right: 0;
    bottom: 10px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    background: #399944;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 30px;
    padding: 6px 32px 6px 10px;
    border: 2px solid #2E8540;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
}

.contact-us-btn:hover,
.contact-us-btn:focus {
    background: #2E8540;
    color: #fff;
}

.contact-us-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    box-sizing: border-box;
}

.contact-us-icon i {
    color: #2e8540;
    display: block;
}

.contact-us-text {
    display: inline-block;
    vertical-align: middle;
}

#initialize-shopping .popup-overlay {
    position: fixed;
    top: -150px; left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    overflow-y: auto;
}

body.warning-popup-open {
    overflow: hidden !important;
    pointer-events: none;
}
body.warning-popup-open #initialize-shopping .popup-overlay,
body.warning-popup-open #warning-select-store.popup-warning,
body.warning-popup-open #warning-select-student.popup-warning,
body.warning-popup-open #btn-select-store-ok,
body.warning-popup-open #btn-select-student-ok {
    pointer-events: auto;
}

#initialize-shopping .popup-warning {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 32px 22px 32px 22px;
    min-width: 450px;
    max-width: 90vw;
    text-align: center;
    border: 1px solid #ccc;
    z-index: 1;
}

#initialize-shopping .popup-warning .main-title {
    font-size: 20px;
    font-weight: 100;
    margin-bottom: 15px;
    margin-top: 0;
    padding-top: 15px;
    line-height: 1.4;
}

#initialize-shopping .popup-okay-div {
    margin-top: 30px;
}

#initialize-shopping #warning-select-student {
    display: none;
}

#initialize-shopping #warning-select-store {
    display: none;
}

/* Show mobile header on screens below 991px */
@media (max-width: 991px) {
    header {
        z-index: 1099 !important;
    }

    #desktop-header {
        display: none;
    }

    #mobile-header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        width: 100%;
        z-index: 1105;
    }

    #mobile-header-buffer {
        display: block;
        min-height: 75px;
    }

    #mobile-bottom-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
    }

    #contact-us-wrapper {
        padding: 0;
        margin-top: 30px;
    }

    #initialize-shopping .popup-overlay {
        display: none;
    }

    #mobile-services-mini-menu-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        top: 73px;
        z-index: 1095;
        height: 60px;
        background-color: #f2f2f2;
    }

    #mobile-services-mini-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        padding: 0px 10px 0px 5px;
    }

    #mobile-services-mini-menu #services-mini-store-wrapper {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    #mobile-services-mini-menu #services-mini-store-wrapper .services-mini-menu-store-title {
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        padding-top: 4px;
    }

    #services-mini-store-wrapper .service-menu-logo {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #f4f4f4;
        object-fit: cover;
    }

    #mobile-services-mini-menu .services-mini-menu-store-info {
        min-width: unset;
    }

    #mobile-services-mini-menu .services-store-name {
        display: flex;
        align-items: center;
        font-size: 14px;
        padding: 2px 0px 2px 0px;
        flex: 1;
        min-width: 0;
    }

    #mobile-services-mini-menu .services-store-name .store-text {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        max-width: calc(100vw - 240px);
    }

    #mobile-services-mini-menu .services-store-name .store-arrow {
        flex-shrink: 0;
        margin-left: 8px;
        color: #2E8540;
        font-weight: bold;
        font-size: 16px;
        line-height: 1;
    }

    #mobile-services-mini-menu .services-store-name.has-store-list {
        cursor: pointer;
    }

    #mobile-services-mini-menu .services-store-name .store-arrow {
        transform: rotate(90deg);
        transition: all 0.3s;
    }

    #mobile-services-mini-menu .services-store-name[aria-expanded="true"] .store-arrow {
        transform: rotate(270deg);
    }

    #mobile-services-mini-menu .services-mini-menu-item {
        width: 38px;
        height: 38px;
        background: #fff;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        transition: background 0.2s;
        position: relative;
        padding: 0;
    }

    #mobile-services-mini-menu .calendar-icon {
        background-image: url('icons/calendar-grey.png');
        background-size: 22px 23px;
        background-repeat: no-repeat;
        background-position: center;
    }

    #mobile-services-mini-menu .calendar-icon-open {
        background-image: url('icons/calendar-green.png');
        border: 2px solid #488348;
        background-color: #cdd6cb;
    }

    #mobile-services-mini-menu .shopping-cart-icon {
        background-image: url('icons/cart-grey.png');
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: center;
    }

    #mobile-services-mini-menu .shopping-cart-icon.active {
        color: #488348;
        background-image: url('icons/cart-green.png');
        background-color: #dae3da;
        outline: 2px solid #488348;
    }

    #mobile-services-mini-menu .shopping-cart-icon .cart-item-count {
        position: absolute;
        top: -7px;
        right: -7px;
        background: #2E8540;
        color: #fff;
        border-radius: 50%;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        pointer-events: none;
        z-index: 2;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

    #mobile-services-mini-menu .search-icon {
        background-image: url('icons/search-grey.png');
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: center;
    }

    #mobile-search-button[aria-expanded="true"] .search-icon {
        background-image: url('icons/search-green.png');
        color: #488348;
        background-color: #dae3da;
        outline: 2px solid #488348 !important;
    }

    #mobile-store-select-items {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #mobile-store-select-list {
        display: none;
        position: fixed;
        top: 133px;
        left: 0;
        right: 0;
        bottom: 53px;
        width: 100vw;
        height: auto;
        background: #fff;
        z-index: 1001;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    }

    #mobile-store-select-list.open {
        display: block;
    }

    #mobile-store-select-items .store-item {
        display: flex;
        align-items: center;
        padding: 18px 18px 12px 45px;
        border-bottom: 1px solid #e5e5e5;
        background: #fff;
        color: #222;
        text-decoration: none;
        transition: background 0.2s;
        position: relative;
        min-height: 64px;
        flex-direction: row;
        border-bottom: 1px solid #e5e5e5;
    }

    #mobile-store-select-items .store-item.selected {
        background: #eaf7ea;
        font-weight: bold;
    }

    #mobile-store-select-items .store-item:focus,
    #mobile-store-select-items .store-item:hover {
        background: #f0f8f4;
        color: #222;
        outline: none;
    }

    #mobile-store-select-items .mobile-bottom-service-icon {
        width: 44px;
        height: 44px;
        margin-right: 16px;
        border-radius: 50%;
        border: 2px solid #e0e0e0;
        background: #fff;
        object-fit: contain;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        flex-shrink: 0;
    }

    #mobile-store-select-items .store-title {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        display: block;
    }

    #mobile-store-select-items .store-desc {
        font-size: 13px;
        color: #4d4d4d;
        display: block;
        margin-top: 2px;
        font-weight: 500;
    }

    #mobile-store-select-items .store-item.selected .store-title {
        color: #2E8540;
    }

    #mobile-store-select-items .store-item.selected .store-desc {
        color: #2E8540;
    }

    #mobile-store-select-items .store-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Mobile Menu Category Navigation */
    #mobile-menu-category-navigation {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 56px;
        padding: 0px 15px 0px 15px;
        left: 0;
        right: 0;
        top: 133px;
        position: fixed;
        pointer-events: none;
        z-index: 10;
        background-color: white;
    }

    #mobile-menu-category-navigation #menu-category-button {
        display: inline-flex;
        flex: 1;
        align-items: center;
        gap: 15px;
        background: #ffffff;
        color: #2E8540;
        font-weight: 700;
        min-height: 45px;
        cursor: pointer;
        border: 2px solid #2E8540;
        border-radius: 28px;
        pointer-events: auto;
        max-width: 100%;
    }

    #mobile-menu-category-navigation #menu-category-button[aria-expanded="true"].menu-not-selected {
        background-color: #dae4da;
        color: #2E8540;
    }

    #mobile-menu-category-navigation #menu-category-button[aria-expanded="true"].menu-not-selected .menu-label::after {
        color: #2E8540;
    }

    #mobile-menu-category-navigation #menu-category-button .menu-label::after {
        content: '\203A';
        display: inline-block;
        transform: rotate(90deg);
        color: #2E8540;
        font-weight: bold;
        position: static;
        transition: all 0.3s;
        font-size: 24px;
        line-height: 1;
        height: 32px;
        margin-left: 10px;
    }

    #menu-category-button[aria-expanded="true"] .menu-icon {
        background-color: #e2ecd2;
    }

    #mobile-menu-category-navigation #menu-category-button[aria-expanded="true"] {
        background-color: #2E8540;
        color: #FFFFFF;
    }

    #mobile-menu-category-navigation #menu-category-button[aria-expanded="true"] .menu-label::after {
        transform: rotate(270deg);
        transition: all 0.3s;
        height: 32px;
        margin-left: 15px;
        color: #FFFFFF;
    }

    #mobile-menu-category-navigation .menu-icon {
        display: inline-block;
        width: 32px;
        height: 31px;
        background-image: url('icons/menu-category-navigation.png');
        background-size: 32px 31px;
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
        border-radius: 50%;
        border: 2px solid #2E8540;
    }

    #mobile-menu-category-navigation .menu-label {
        font-size: 16px;
        line-height: 1;
        display: inline-block;
        height: 32px;
        text-align: left;
        width: 78px;
    }

    #mobile-menu-category-navigation .menu-selected {
        flex: 1;
        font-size: 16px;
        font-weight: 500;
        text-align: right;
        padding-right: 25px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: unset;
    }

    /* Mobile Menu Search Navigation */
    #mobile-menu-search-navigation {
        display: none;
        flex-direction: column;
        position: fixed;
        background-color: white;
        z-index: 11;
        width: 100%;
        top: 130px;
    }

    #mobile-menu-search-navigation.open {
        display: block;
    }

    #mobile-menu-search-navigation #mobile-search-bar {
        display: flex;
        align-content: center;
        background-color: #f2f2f2;
        min-height: 60px;
        padding: 10px;
    }

    #mobile-search-icon-button {
        all: unset;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    #mobile-search-field {
        background: #fff;
        border-radius: 30px;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0 16px;
        height: 48px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        position: relative;
    }

    #mobile-search-field #mobile-search-clear {
        width: 34px;
        height: 34px;
    }

    #mobile-search-field #mobile-search-icon-button:hover,
    #mobile-search-field #mobile-search-clear:hover {
      background-color: #dddddd;
    }

    #mobile-search-field .search-icon {
        display: inline-block;
        width: 34px;
        height: 34px;
        background: url('icons/search-grey.png') no-repeat center center;
        background-size: 20px 20px;
        background-color: #efefef;
        border-radius: 50%;
        border: 2px solid #4d4d4d;
        box-sizing: border-box;
    }

    #mobile-search-field input[type="text"] {
        border: none;
        outline: none;
        font-size: 18px;
        flex: 1;
        background: transparent;
        color: #444;
        padding: 0;
    }

    /* To prevent focus effect on input */
    #mobile-search-field input:focus {
        outline: none !important;
    }

    #mobile-search-field:has(input:focus) {
        outline: 2px solid #2E8540;
    }

    #mobile-menu-category-list-navigation {
        display: flex;
        position: fixed;
        background-color: white;
        z-index: 10;
        width: 100%;
        height: 100%;
        top: 185px;
    }

    #mobile-menu-category-list-navigation #mobile-menu-category-list {
        margin-top: 15px;
        position: relative;
        width: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
        height: calc(100vh - 255px);
        max-height: calc(100vh - 255px);
        padding: 0px 40px 0px 40px;
    }

    #mobile-menu-category-list .block-menu {
        margin-bottom: 35px;
    }

    #mobile-menu-category-list .main-item {
        font-weight: 600;
        font-size: 18px;
        letter-spacing: 0px;
        color: #000000;
        cursor: pointer;
        position: relative;
        margin-bottom: 15px;
        border: 4px solid transparent;
        outline: none;
        background: none;
        padding: 0;
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #mobile-menu-category-list .main-item:focus-visible {
        border-color: #006717 !important;
        outline: none !important;
        outline-offset: -4px;
    }

    #mobile-menu-category-list .main-item::after {
        transform: rotate(90deg);
        content: '\203A';
        position: absolute;
        right: 10px;
        top: 0;
        font-size: 20px;
        display: inline-block;
        -moz-transition: all 1s ease;
        transition: all 0.5s ease;
    }

    #mobile-menu-category-list .main-item-active {
        color: #2E8540;
    }

    #mobile-menu-category-list .opened::after {
        transform: rotate(270deg);
        color: #2E8540;
        content: '\203A';
        -moz-transition: all 1s ease;
        transition: all 0.5s ease;
        right: 15px;
    }

    #mobile-menu-category-list .sub-item {
        font-size: 15px;
        line-height: 17px;
        padding: 12.5px 8px 12.5px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 2px;
        color: #4D4D4D;
        font-weight: bold;
        border: 4px solid transparent;
        outline: none;
    }

    #mobile-menu-category-list .sub-item:focus-visible {
        border-color: #006717 !important;
        outline: none !important;
        outline-offset: -4px;
    }

    #mobile-menu-category-list .sub-item:hover, #mobile-menu-category-list .sub-item-active {
        color: white;
        background-color: #2E8540;
        font-weight: bold;
    }
    /** End Mobile Menu Category **/
}

/* Tablets (landscape) and small laptops (768px - 991px) */
@media (max-width: 767px) {
    #user-nav .register-btn,
    #user-nav .login-btn {
        padding: 8px 15px;
    }
}

/* Small mobile devices (below 575px) */
@media (max-width: 575px) {

}

/* Desktop dropdown and menu animation (max-height + opacity) */
#account-menu-content,
#parent-service-content,
#services-mega-menu,
#student-select-dropdown,
#store-select-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
#account-menu-content.open,
#parent-service-content.open,
#services-mega-menu.open,
#student-select-dropdown.open,
#store-select-dropdown.open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu fade animation only */
#mobile-main-menu-content,
#mobile-bottom-services-menu,
#mobile-account-menu-content,
#mobile-select-student-list,
#mobile-store-select-list,
#mobile-menu-search-navigation,
#mobile-menu-category-list-navigation
{
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#mobile-main-menu-content.open,
#mobile-bottom-services-menu.open,
#mobile-account-menu-content.open,
#mobile-select-student-list.open,
#mobile-store-select-list.open,
#mobile-menu-search-navigation.open,
#mobile-menu-category-list-navigation.open
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* To override old display:none/block */
#account-menu-content,
#parent-service-content,
#services-mega-menu,
#student-select-dropdown,
#store-select-dropdown,
#mobile-main-menu-content,
#mobile-bottom-services-menu,
#mobile-account-menu-content,
#mobile-select-student-list {
    display: block !important;
}

@media (max-height: 820px) {
    #mobile-account-menu-content .account-menu-items li a {
        height: 63px;
    }
}

@media (max-height: 750px) {
    #mobile-account-menu-content .account-menu-items li a {
        height: 48px;
    }
}