.zp_top_account_menu {
    position: relative;
}

.zp_top_account_menu summary {
    list-style: none;
}

.zp_top_account_menu summary::-webkit-details-marker {
    display: none;
}

.zp_top_account_summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.zp_top_account_summary > i:first-child {
    font-size: 12px;
}

.zp_top_account_summary > i:last-child {
    color: #999999;
    font-size: 8px;
    transition: transform 0.18s ease;
}

.zp_top_account_menu[open]
.zp_top_account_summary > i:last-child {
    transform: rotate(180deg);
}

.zp_top_account_dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    width: 245px;
    padding: 8px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #171717;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.zp_top_account_dropdown::before {
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #d8d8d8;
    border-left: 1px solid #d8d8d8;
    background: #ffffff;
    content: "";
    transform: rotate(45deg);
}

.zp_top_account_identity {
    display: grid;
    gap: 3px;
    padding: 11px;
    border-bottom: 1px solid #eeeeee;
}

.zp_top_account_identity strong {
    overflow: hidden;
    color: #171717;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zp_top_account_identity span {
    overflow: hidden;
    color: #777777;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zp_top_account_identity small {
    width: fit-content;
    margin-top: 4px;
    padding: 4px 6px;
    background: #fff2d9;
    color: #996100;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_top_account_dropdown form {
    margin: 0;
}

.zp_top_account_item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border: 0;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.zp_top_account_item i {
    width: 17px;
    color: #f5a000;
    text-align: center;
}

.zp_top_account_item:hover {
    background: #f5f5f5;
    color: #171717;
}

.zp_top_account_logout {
    border-top: 1px solid #eeeeee;
    color: #a72a22;
}

.zp_top_account_logout i {
    color: #c9362b;
}

.zp_top_account_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    text-decoration: none;
}

@media (max-width: 700px) {
    .zp_top_account_dropdown {
        right: -8px;
    }
}
