header [data-shop-account][hidden] { display: none; }
.shop-account-menu { position: relative; min-width: 0; }
header .shop-account-trigger {
  display: block; cursor: pointer; list-style: none; max-width: min(12rem, 32vw);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-account-trigger::-webkit-details-marker { display: none; }
.shop-account-trigger::after { content: " ▾"; }
.shop-account-panel {
  position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + .45rem);
  width: max-content; min-width: 9rem; max-width: calc(100vw - 2rem);
  padding: .3rem; border: 1px solid currentColor; border-radius: .65rem;
  background: Canvas; color: CanvasText; box-shadow: 0 8px 20px #0002;
}
header .shop-account-item { display: block; padding: .55rem .7rem; border-radius: .35rem; color: inherit; }
header .shop-account-item:hover, header .shop-account-item:focus-visible { background: Highlight; color: HighlightText; }
