/* Shared sign-in button and current-account menu. */
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px; border-radius: 8px; cursor: pointer; list-style: none; font-size: 13px; }
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger::marker { content: ''; }
.account-trigger:hover { background: #192131; }
.account-sign-in { padding: 5px 10px 5px 5px; color: #b9daff; border: 1px solid #304762; background: #192638; }
.account-sign-in:hover { border-color: #6da7e4; background: #22344c; }
.account-trigger > svg { color: #8293ab; transition: transform .15s; }
.account-menu[open] .account-trigger > svg { transform: rotate(180deg); }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #3b5371; border-radius: 50%; background: #20344c; color: #9bceff; flex-shrink: 0; font-size: 11px; font-weight: 700; }
#checkoutUser { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-popover { position: absolute; top: calc(100% + 12px); right: 0; width: 280px; padding: 8px; background: #171f2d; border: 1px solid #324159; border-radius: 12px; box-shadow: 0 18px 48px #0006; }
.account-menu-heading { margin: 0 4px 6px; padding: 12px 8px 16px; border-bottom: 1px solid #2b384c; }
.account-menu-heading > span { font-size: 11px; color: #8293ab; }
.account-menu-heading p { font-size: 12px; color: #c3cfdf; line-height: 1.7; margin: 7px 0 0; overflow-wrap: anywhere; }
.account-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; background: transparent; color: #cdd8e7; padding: 12px; font: inherit; font-size: 13px; text-align: left; border-radius: 7px; cursor: pointer; }
.account-menu-link > span { color: #7e92ad; }
.account-menu-link:hover { background: #233047; }
.account-menu-link[aria-disabled=true] { color: #8191a8; cursor: default; pointer-events: none; }
[hidden] { display: none !important; }
.account-trigger:focus-visible, .account-menu-link:focus-visible { outline: 2px solid #7abaff; outline-offset: 4px; }
.account-popover { z-index: 20; line-height: 1.7; }
.account-trigger { color: inherit; text-decoration: none; }
.account-sign-in { color: #b9daff; }
@media (max-width: 480px) {
  #checkoutUser { max-width: 80px; }
  .account-popover { width: min(280px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) { .account-trigger > svg { transition: none; } }
