.wpafn-account-menu {
    position: relative;
    display: inline-block;
    max-width: 100%;
    font-family: 'Basis Grotesque PRO', 'Outfit', sans-serif;
    color: #fff;
}

.wpafn-account-menu *,
.wpafn-account-menu *::before,
.wpafn-account-menu *::after {
    box-sizing: border-box;
}

.wpafn-account-menu__button {
    max-width: min(100%, 260px);
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 0;
    background: rgba(255, 255, 255, .04) !important;
    color: #e2e8f0 !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    font: inherit;
    cursor: pointer;
    transition: .18s ease;
}

.wpafn-account-menu__button:hover,
.wpafn-account-menu__login:hover,
.wpafn-account-menu.is-open .wpafn-account-menu__button {
    border-color: rgba(72, 157, 255, .55);
    background: rgba(72, 157, 255, .10);
    color: #fff;
}

.wpafn-account-menu__login {
    text-decoration: none !important;
}

.wpafn-account-menu__icon,
.wpafn-account-menu__chevron {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.wpafn-account-menu__icon svg,
.wpafn-account-menu__chevron svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wpafn-account-menu__name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    font-family: 'Basis Grotesque PRO Mono', 'Outfit', sans-serif;
}

.wpafn-account-menu__chevron {
    color: #94a3b8;
    transition: transform .18s ease;
}

.wpafn-account-menu.is-open .wpafn-account-menu__chevron {
    transform: rotate(180deg);
}

.wpafn-account-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    width: max-content;
    min-width: 140px;
    max-width: min(280px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(24, 24, 27, .98) 0%, rgba(10, 10, 11, .98) 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.wpafn-account-menu__item {
    min-height: 42px;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: .18s ease;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.wpafn-account-menu__item:last-child {
    border-bottom: 0;
}

@media (max-width: 480px) {
    .wpafn-account-menu {
        width: 100%;
    }

    .wpafn-account-menu__button {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        gap: 8px;
        padding: 0 12px;
    }

    .wpafn-account-menu__name {
        max-width: none;
        min-width: 0;
        flex: 1 1 auto;
        text-align: left;
        font-size: 14px;
    }

    .wpafn-account-menu__dropdown {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}
