/* Shared dropdown contents. The existing page still owns its user trigger. */
ul.wy-user-menu {
    width: 248px;
    min-width: 248px;
    max-height: min(75vh, calc(100dvh - 100px));
    overflow-y: auto;
    padding: 10px 20px;
    margin: 0;
    list-style: none;
    text-align: left;
    font: 13px/28px -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #52616b;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    box-shadow: 0 8px 30px #24303812;
}
ul.wy-user-menu > li,
ul.wy-user-menu > ul > li { margin: 0; padding: 0; list-style: none; }
ul.wy-user-menu li > a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: #222 !important;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 28px;
    white-space: nowrap;
    text-decoration: none;
}
ul.wy-user-menu li > a:hover { color: #f34f3f !important; background: #fff3eb; }
ul.wy-user-menu > .mySubMenu {
    padding: 10px;
    margin: 4px 0 0;
    border-top: 1px solid #e7e9e9;
    color: #202b32;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
}
ul.wy-user-menu > ul {
    position: static;
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}
ul.wy-user-menu .message-badge {
    position: relative;
    top: -8px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    background: #ed6b35;
    font-size: 12px;
    line-height: 18px;
}
ul.wy-user-menu a:focus-visible,
ul.wy-user-menu .mySubMenu:focus-visible { outline: 2px solid #ed6b3580; outline-offset: -2px; }
.account-menu > ul.wy-user-menu {
    display: block;
    position: absolute;
    top: 30px;
    right: 0;
    z-index: 50;
}
.top-cart-content:has(> ul.wy-user-menu) { width: 248px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.top-cart-content > ul.wy-user-menu { display: block; position: static; float: none; }
@media (max-width: 767px) {
    body .header-meta-info .header-account .header-account-list.top-link > ul.wy-user-menu {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }
}
