.account-dropdown {
  position: relative;
}

.account-menu-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  list-style: none;
}

.account-menu-toggle::-webkit-details-marker {
  display: none;
}

.account-menu-toggle::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin: -.2rem .15rem 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.account-dropdown[open] .account-menu-toggle::after {
  transform: rotate(225deg);
  margin-top: .2rem;
}

.account-user-icon {
  width: 1.65rem;
  height: 1.65rem;
  position: relative;
  flex: none;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
}

.account-user-icon::before,
.account-user-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.account-user-icon::before {
  width: .37rem;
  height: .37rem;
  top: .29rem;
  border-radius: 50%;
}

.account-user-icon::after {
  width: .75rem;
  height: .42rem;
  bottom: .28rem;
  border-radius: .5rem .5rem .2rem .2rem;
}

.account-dropdown-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .4rem);
  z-index: 10;
  min-width: 13rem;
  padding: .4rem;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: .75rem;
  box-shadow: 0 14px 34px rgb(10 25 53 / 18%);
}

.account-dropdown:not([open]) .account-dropdown-panel {
  display: none;
}

.account-dropdown-panel > a,
.account-dropdown-panel button,
.customer-workspace-nav > a,
.customer-workspace-nav button {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border: 0;
  border-radius: .42rem;
  background: transparent;
  color: #17253b;
  font: 600 .91rem/1.35 var(--font);
  text-align: start;
  white-space: nowrap;
}

.account-dropdown-panel button,
.customer-workspace-nav button {
  color: #7b2635;
  cursor: pointer;
}

.account-dropdown-panel form,
.customer-workspace-nav form {
  margin: .35rem 0 0;
  padding-top: .35rem;
  border-top: 1px solid #e1e7f0;
}

.account-dropdown-panel :is(a, button):hover,
.customer-workspace-nav :is(a, button):hover,
.customer-workspace-nav a[aria-current] {
  color: #0a5a9c;
  background: #eaf2fd;
}

.customer-account {
  background: #f3f6fb;
}

.customer-account main.container {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}

.customer-workspace {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 4vw, 3.5rem) 4rem;
  align-items: start;
  color: #17253b;
}

.customer-workspace-sidebar,
.customer-panel,
.customer-workspace-main .ticket-order,
.customer-workspace-main .workspace-table-scroll,
.customer-workspace-main .order-page {
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: .9rem;
  box-shadow: 0 8px 24px rgb(23 37 59 / 5%);
}

.customer-workspace-sidebar {
  padding: .65rem;
}

.customer-workspace-title {
  display: block;
  color: #17253b;
  padding: .65rem .75rem;
  font-size: 1.05rem;
  font-weight: 750;
  border-bottom: 1px solid #e1e7f0;
  margin-bottom: .35rem;
}

.customer-workspace-nav {
  display: grid;
  gap: .15rem;
}

.customer-workspace-main {
  min-width: 0;
}

.customer-workspace-main > :is(.account-page, .order-page) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.customer-workspace-main h1 {
  margin: 0 0 .85rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.customer-panel,
.customer-workspace-main > .order-page {
  padding: clamp(1.05rem, 2.5vw, 1.65rem);
}

.customer-panel h2 {
  margin: 0 0 .7rem;
  font-size: 1.05rem;
}

.customer-panel address {
  font-style: normal;
  line-height: 1.65;
}

.customer-panel .account-form {
  margin-bottom: 0;
  max-width: 36rem;
}

.customer-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.customer-workspace-main .workspace-table-scroll {
  overflow-x: auto;
  padding: .4rem .7rem;
}

.customer-workspace-main .workspace-table-scroll > table {
  min-width: 28rem;
}

.customer-workspace-main .ticket-order {
  padding: 1rem;
}

@media (max-width: 54rem) {
  .customer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-workspace-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .customer-workspace-nav > a,
  .customer-workspace-nav form {
    width: auto;
  }

  .customer-workspace-nav form {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

.account-sign-in {
  display: inline-flex;
  align-items: center;
}

.account-sign-in > .account-user-icon,
.account-dropdown-panel > .mobile-account-settings {
  display: none;
}

dialog.shop-login-dialog {
  width: min(calc(100% - 1.5rem), 26rem);
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.shop-login-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shop-login-heading h2 {
  margin: 0;
}

.shop-login-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: .5rem;
  background: #edf3fa;
  color: #17253b;
  font: 1.45rem var(--font);
  cursor: pointer;
}

.shop-login-dialog .account-form {
  max-width: none;
}

.shop-login-dialog button[type="submit"] {
  width: 100%;
}

.shop-login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 1rem;
}

.shop-login-error[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .store-header-actions .account-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .store-header-actions .account-menu-toggle::after,
  .site-header .store-header-actions .nav-link-admin {
    display: none;
  }

  .store-header-actions .account-sign-in > .account-user-icon,
  .account-dropdown-panel > .mobile-account-settings {
    display: block;
  }

  .site-header .store-header-actions :is(.cart-nav-link, .account-menu-toggle, .account-sign-in) {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
  }

  .store-header-actions .cart-nav-count {
    position: absolute;
    top: .1rem;
    inset-inline-end: .05rem;
  }

  .store-header-actions .account-dropdown-panel {
    min-width: min(14rem, calc(100vw - 1.5rem));
  }
}
