.tk-account-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
}
.tk-account-actions > a {
  flex-shrink: 0;
}
.tk-account-menu {
  position: relative;
  z-index: 20;
  max-width: 100%;
  min-width: 0;
  font-size: 14px;
}
.tk-account-menu summary {
  max-width: min(100%, 20rem);
  list-style: none;
  cursor: pointer;
}
.tk-account-menu summary::-webkit-details-marker {
  display: none;
}
.tk-account-menu summary::after {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-inline-start: 4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.tk-account-menu[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}
.tk-account-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-account-options {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  min-width: max(100%, 148px);
  padding: 4px;
  border: 1px solid var(--lc-border-subtle);
  border-radius: 12px;
  background: var(--lc-surface-raised);
  box-shadow: 0 12px 24px #0006;
}
.tk-account-options button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lc-text);
  font: inherit;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tk-account-options button:hover {
  background: #ffffff12;
}
.tk-account-options button:disabled {
  cursor: wait;
  opacity: 0.6;
}
#uw-ticket-account:empty,
.v3-head [hidden] {
  display: none;
}
/* Keep a usable wallet link while the account request is pending. */
#uw-ticket-link[aria-busy="true"] {
  display: inline-grid;
}
#uw-ticket-link[aria-busy="true"] > span,
#uw-ticket-link[aria-busy="true"]::before {
  grid-area: 1 / 1;
  place-self: center;
}
#uw-ticket-link[aria-busy="true"] > span {
  opacity: 0;
}
@media (scripting: none) {
  #uw-ticket-link[aria-busy="true"] > span {
    opacity: 1;
  }
  #uw-ticket-link[aria-busy="true"]::before {
    display: none;
  }
}
