/* --- Custom My Account Header Widget Styles --- */

.custom-account-widget-wrapper {
    position: relative;
    display: inline-block;
    font-family: "Instrument Sans", sans-serif;
}

.custom-account-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #000 !important;
    background: #fff !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.custom-account-toggle:hover {
    color: #fff !important;
    background: #186532 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(24, 101, 50, 0.2);
    border-color: #186532;
}

.user-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon-container svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

/* Dropdown */
.custom-account-toggle-container {
    position: relative;
}

.custom-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-account-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.custom-account-toggle-container:hover .custom-account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-account-dropdown ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-account-dropdown li {
    margin: 0 !important;
}

.custom-account-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.custom-account-dropdown li a:hover {
    background: #f8f9f8;
    color: #186532;
    padding-left: 25px;
}

.custom-account-dropdown li.logout a {
    color: #cc0000;
    border-top: 1px solid #f5f5f5;
    margin-top: 5px;
}

.custom-account-dropdown li.logout a:hover {
    background: #fee;
    color: #cc0000;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .account-label {
        display: none;
    }
}
