/* Keep account-menu labels stable while highlighting the full interactive row. */
.hdropdown.with-avatar a.account-menu-hover-row {
    display: block;
    margin-right: -30px;
    margin-left: -30px;
    padding-right: 30px;
    padding-left: 30px;
    color: #555 !important;
    transition: background-color 150ms ease;
}

.hdropdown.with-avatar .table-user-menu td > a.account-menu-hover-row {
    margin: -10px -8px -7px;
    padding: 10px 8px 7px;
}

.navbar .nav .header-menu .dropdown-menu li a.account-menu-hover-row:hover,
.navbar .nav .header-menu .dropdown-menu li a.account-menu-hover-row:focus,
.navbar .loginbar .header-menu .dropdown-menu li a.account-menu-hover-row:hover,
.navbar .loginbar .header-menu .dropdown-menu li a.account-menu-hover-row:focus,
.page-topbar .dropdown-menu.profile > li > a.account-menu-hover-row:hover,
.page-topbar .dropdown-menu.profile > li > a.account-menu-hover-row:focus {
    color: #555 !important;
    text-decoration: none;
    background: #eff2f4 !important;
}

.hdropdown.with-avatar a.account-menu-hover-row.color-ff0000,
.hdropdown.with-avatar a.account-menu-hover-row.color-ff0000:hover,
.hdropdown.with-avatar a.account-menu-hover-row.color-ff0000:focus,
.page-topbar .dropdown-menu.profile > li > a.account-menu-hover-row.color-ff0000,
.page-topbar .dropdown-menu.profile > li > a.account-menu-hover-row.color-ff0000:hover,
.page-topbar .dropdown-menu.profile > li > a.account-menu-hover-row.color-ff0000:focus {
    color: #ff0000 !important;
}

@media (max-width: 991px) {
    #m-header #miniMenuToggle .user-avatar-box {
        margin-bottom: 0;
    }

    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 13px 20px !important;
        color: #2f3950 !important;
        background: #fff !important;
        box-sizing: border-box;
        touch-action: manipulation;
        transition: background-color 150ms ease;
        -webkit-tap-highlight-color: transparent;
    }

    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a:hover,
    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a:focus,
    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a:active {
        color: #2f3950 !important;
        background: #eff2f4 !important;
    }

    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a:focus-visible {
        outline: none;
        box-shadow: inset 0 0 0 2px rgba(25, 180, 149, 0.35);
    }

    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a > .account-menu-lucide-icon {
        margin-right: 10px !important;
    }

    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a > .m-menu-span {
        margin-left: 0;
        color: inherit;
    }

    #m-header ul#miniMenuToggle > li.mobile-account-menu-support-start {
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid #e1e6f0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdropdown.with-avatar a.account-menu-hover-row,
    #m-header ul#miniMenuToggle > li.mobile-account-menu-link > a {
        transition: none;
    }
}
