/* Customer profile toggle + dropdown */

.login-others .user-dropdown {
    position: relative;
    top: 0;
    vertical-align: middle;
}

.login-others .user-dropdown .header-profile-dropdown {
    position: relative;
    display: inline-block;
}

/* Toggle button */
.login-others .user-dropdown .header-profile-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 12px 5px 5px !important;
    margin: 0 !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #0f172a !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
    overflow: visible !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-others .user-dropdown .header-profile-toggle:hover,
.login-others .user-dropdown .header-profile-dropdown.open .header-profile-toggle {
    border-color: #93c5fd !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
    background: #fff !important;
}

/* Proper circle avatar — wrapper clips image cleanly */
.login-others .user-dropdown .header-profile-avatar-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.login-others .user-dropdown .header-profile-avatar,
.login-others .user-dropdown .header-profile-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    object-fit: cover;
    object-position: center center;
    border: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: #fff;
}

.login-others .user-dropdown .header-profile-name {
    display: inline-block !important;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.login-others .user-dropdown .header-profile-chevron {
    font-size: 11px;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.2s ease;
}

.login-others .user-dropdown .header-profile-dropdown.open .header-profile-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Dropdown panel */
.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    display: block !important;
    float: none !important;
    min-width: 230px;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14) !important;
    z-index: 10050 !important;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.login-others .user-dropdown .header-profile-dropdown.open .dropdown-menu.profile,
.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile.profile-menu-show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile:before,
.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile:after {
    display: none !important;
    content: none !important;
}

.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile > li > a {
    padding: 10px 12px !important;
}

/* Menu links with icons */
.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile > li {
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    float: none;
    list-style: none;
}

.login-others .user-dropdown .header-profile-dropdown .dropdown-menu.profile > li:last-child {
    margin-bottom: 0;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    text-decoration: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    height: auto !important;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-link span {
    flex: 1;
    line-height: 1.35;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-link i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    line-height: 1 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    text-align: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-link:hover,
.login-others .user-dropdown .header-profile-dropdown .profile-menu-link:focus {
    background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%) !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
    box-shadow: 0 1px 4px rgba(245, 130, 32, 0.15) !important;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-link:hover i,
.login-others .user-dropdown .header-profile-dropdown .profile-menu-link:focus i {
    background: #ff5c00 !important;
    color: #fff !important;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout-item {
    border-top: 1px solid #e2e8f0;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding-top: 6px !important;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout {
    color: #475569 !important;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout i {
    background: #f8fafc !important;
    color: #64748b !important;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout:hover,
.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout:focus {
    background: linear-gradient(90deg, #fef2f2 0%, #fff 100%) !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1) !important;
}

.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout:hover i,
.login-others .user-dropdown .header-profile-dropdown .profile-menu-logout:focus i {
    background: #dc2626 !important;
    color: #fff !important;
}

@media screen and (max-width: 767px) {
    .login-others .user-dropdown .header-profile-name,
    .login-others .user-dropdown .header-profile-chevron {
        display: none !important;
    }

    .login-others .user-dropdown .header-profile-toggle,
    .header-top:has(.mobile-toggles) .login-others .user-dropdown .header-profile-toggle {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        justify-content: center;
        border-radius: 50% !important;
        overflow: hidden !important;
        background: #fff !important;
        border: 2px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    .login-others .user-dropdown .header-profile-avatar-wrap,
    .header-top:has(.mobile-toggles) .login-others .user-dropdown .header-profile-avatar-wrap {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        border: none !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .login-others .user-dropdown .header-profile-avatar,
    .header-top:has(.mobile-toggles) .login-others .user-dropdown .header-profile-avatar {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        opacity: 1 !important;
    }
}
