:root {
  --customer-ink: var(--editorial-ink, #2f2723);
  --customer-muted: var(--editorial-muted, #71645e);
  --customer-paper: var(--editorial-white, #fffdf9);
  --customer-stone: var(--editorial-stone, #f4eee8);
  --customer-line: var(--editorial-line, #d9cec7);
  --customer-danger: #8d2929;
  --customer-serif: var(--editorial-serif, Georgia, "Times New Roman", serif);
  --customer-sans: var(--editorial-sans, Arial, sans-serif);
}

.customer-account-page,
.customer-auth-dialog,
.customer-toast {
  color: var(--customer-ink);
  font-family: var(--customer-sans);
}

.customer-account-page *,
.customer-auth-dialog *,
.customer-toast {
  box-sizing: border-box;
}

.customer-account-page {
  min-height: 70svh;
  padding: clamp(48px, 7vw, 104px) clamp(18px, 4vw, 64px) clamp(72px, 9vw, 128px);
  background: var(--customer-paper);
}

body.is-editorial .customer-account-page {
  margin-top: var(--editorial-header-height, 72px);
}

.customer-account-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
  margin: calc(-1 * clamp(48px, 7vw, 104px)) calc(-1 * clamp(18px, 4vw, 64px)) clamp(48px, 6vw, 88px);
  padding: clamp(52px, 7vw, 104px) clamp(18px, 4vw, 64px) clamp(42px, 5vw, 72px);
  border-bottom: 1px solid var(--customer-line);
  background: var(--customer-stone);
}

.customer-account-page__intro h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--customer-ink);
  font-family: var(--customer-serif);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .96;
  text-wrap: balance;
}

.customer-account-page__intro p {
  max-width: 48ch;
  margin: 0 0 4px;
  color: var(--customer-muted);
  font-size: 16px;
  line-height: 1.65;
}

.customer-account-root {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.customer-account-root h2,
.customer-account-root h3,
.customer-account-root h4,
.customer-account-root h5,
.customer-auth-copy h2 {
  color: var(--customer-ink);
  font-family: var(--customer-serif);
  font-weight: 500;
  text-wrap: balance;
}

.customer-panel {
  max-width: 680px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--customer-line);
  background: var(--customer-paper);
}

.customer-panel--auth {
  margin: 0 auto;
}

.customer-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
}

.customer-panel > p {
  max-width: 56ch;
  margin: 0 0 28px;
  color: var(--customer-muted);
  line-height: 1.6;
}

.customer-button,
.customer-text-button {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.customer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  color: #fff;
  background: var(--customer-ink);
  text-align: center;
  text-decoration: none;
}

.customer-button:hover,
.customer-button:focus-visible {
  color: #fff;
  background: #000;
}

.customer-button--secondary {
  color: var(--customer-ink);
  background: transparent;
  border: 1px solid var(--customer-ink);
}

.customer-button--secondary:hover,
.customer-button--secondary:focus-visible {
  color: #fff;
  background: var(--customer-ink);
}

.customer-button--danger {
  background: var(--customer-danger);
}

.customer-button:disabled,
.customer-text-button:disabled {
  color: #777771;
  background: #efeee9;
  border-color: var(--customer-line);
  cursor: not-allowed;
}

.customer-text-button {
  padding: 8px 0;
  color: var(--customer-ink);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.customer-text-button--danger {
  color: var(--customer-danger);
}

.customer-account-page :focus-visible,
.customer-auth-dialog :focus-visible {
  outline: 2px solid var(--customer-ink);
  outline-offset: 4px;
}

.customer-status {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--customer-muted);
}

.customer-spinner {
  width: 18px;
  height: 18px;
  border: 1px solid var(--customer-line);
  border-top-color: var(--customer-ink);
  border-radius: 50%;
  animation: customer-spin 800ms linear infinite;
}

@keyframes customer-spin {
  to { transform: rotate(360deg); }
}

.customer-auth-dialog {
  width: min(92vw, 600px);
  max-height: min(90svh, 760px);
  padding: 0;
  border: 1px solid var(--customer-ink);
  background: var(--customer-paper);
  box-shadow: none;
}

.customer-auth-dialog::backdrop {
  background: rgb(25 25 22 / 72%);
}

.customer-auth-dialog__surface,
[data-customer-inline-auth] {
  position: relative;
  padding: clamp(30px, 6vw, 56px);
}

.customer-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--customer-line);
  border-radius: 0;
  color: var(--customer-ink);
  background: var(--customer-paper);
  cursor: pointer;
}

.customer-auth-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.editorial-booking-dialog-close-label {
  display: none;
}

.customer-auth-copy {
  padding-right: 42px;
}

.customer-auth-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -.025em;
  line-height: 1.02;
}

.customer-auth-copy p {
  max-width: 52ch;
  margin: 0 0 28px;
  color: var(--customer-muted);
  line-height: 1.6;
}

.customer-auth-form,
.customer-profile-form,
.customer-reschedule {
  display: grid;
  gap: 18px;
}

.customer-auth-form label:not(.customer-auth-check),
.customer-profile-form label,
.customer-reschedule label {
  display: grid;
  gap: 8px;
}

.customer-auth-form label > span,
.customer-profile-form label > span,
.customer-reschedule label > span,
.customer-reschedule legend {
  color: var(--customer-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.customer-auth-form input,
.customer-profile-form input,
.customer-reschedule input,
.customer-reschedule select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--customer-line);
  border-radius: 0;
  color: var(--customer-ink);
  background: var(--customer-paper);
  box-shadow: none;
  font: inherit;
}

.customer-auth-form input[name="code"] {
  max-width: 11ch;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
}

.customer-profile-form input[readonly] {
  color: var(--customer-muted);
  background: var(--customer-stone);
}

.customer-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--customer-muted);
  line-height: 1.45;
}

.customer-auth-check input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
}

.customer-auth-help,
.customer-auth-message,
.customer-form-message,
.customer-reschedule output,
.customer-confirm-panel output {
  min-height: 1.45em;
  margin: -8px 0 0;
  color: var(--customer-muted);
  font-size: 14px;
  line-height: 1.45;
}

[data-state="error"],
.customer-auth-message:not(:empty) {
  color: var(--customer-danger);
}

.customer-auth-alternatives {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--customer-line);
  padding-top: 10px;
}

.customer-account-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--customer-line);
}

.customer-account-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -.025em;
  line-height: 1;
}

.customer-account-heading p {
  margin: 0;
  color: var(--customer-muted);
}

.customer-account-sections {
  display: grid;
  gap: 0;
}

.customer-account-section {
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--customer-line);
}

.customer-account-section > h3,
.customer-section-heading h3 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.customer-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.customer-section-heading a {
  color: var(--customer-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .045em;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.customer-inline-status,
.customer-empty,
.customer-recovery {
  padding: 28px;
  color: var(--customer-muted);
  background: var(--customer-stone);
  line-height: 1.6;
}

.customer-empty p,
.customer-recovery p {
  margin: 0 0 18px;
}

.customer-booking-list {
  display: grid;
  gap: 18px;
}

.customer-waitlist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-waitlist-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--customer-line);
  background: var(--customer-paper);
}

.customer-waitlist-card__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.customer-waitlist-card__heading h4 {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.08;
}

.customer-waitlist-card__heading time {
  color: var(--customer-muted);
  line-height: 1.45;
  text-align: right;
}

.customer-status-label[data-status="closed"] {
  color: var(--customer-muted);
}

.customer-waitlist-note {
  margin: 18px 0 0;
  color: var(--customer-muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.customer-waitlist-card > .customer-text-button {
  margin-top: 16px;
}

.customer-booking {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--customer-line);
  background: var(--customer-paper);
}

.customer-booking__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.customer-booking__summary h4 {
  margin: 9px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.customer-booking__summary time {
  color: var(--customer-muted);
  line-height: 1.5;
  text-align: right;
}

.customer-booking__summary time strong {
  color: var(--customer-ink);
}

.customer-status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.customer-status-label[data-status="cancelled"],
.customer-status-label[data-status="past"] {
  color: var(--customer-muted);
}

.customer-booking__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  background: var(--customer-line);
  border: 1px solid var(--customer-line);
}

.customer-booking__facts div {
  padding: 16px;
  background: var(--customer-paper);
}

.customer-booking__facts dt {
  margin-bottom: 5px;
  color: var(--customer-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.customer-booking__facts dd {
  margin: 0;
  line-height: 1.45;
}

.customer-policy-copy {
  max-width: 72ch;
  margin: 20px 0 0;
  color: var(--customer-muted);
  line-height: 1.55;
}

.customer-booking__actions,
.customer-reschedule__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}

.customer-booking__manage {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--customer-line);
}

.customer-confirm-panel h5,
.customer-reschedule h5,
.customer-booking-dresses h5 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.customer-confirm-panel p,
.customer-reschedule > p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--customer-muted);
  line-height: 1.55;
}

.customer-confirm-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.customer-reschedule__search {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.customer-reschedule fieldset {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}

.customer-reschedule fieldset > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.customer-time {
  position: relative;
}

.customer-time input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.customer-time span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--customer-line);
  color: var(--customer-ink);
  background: var(--customer-paper);
  cursor: pointer;
}

.customer-time input:focus-visible + span {
  outline: 2px solid var(--customer-ink);
  outline-offset: 3px;
}

.customer-time input:checked + span {
  color: #fff;
  background: var(--customer-ink);
  border-color: var(--customer-ink);
}

.customer-booking-dresses {
  margin-top: 26px;
}

.customer-booking-dresses > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.customer-dress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 10px;
}

.customer-dress-card {
  min-width: 0;
}

.customer-dress-card > a {
  display: grid;
  color: var(--customer-ink);
  text-decoration: none;
}

.customer-dress-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--customer-stone);
}

.customer-dress-card a > span {
  display: grid;
  gap: 2px;
  padding-top: 10px;
}

.customer-dress-card strong {
  font-family: var(--customer-serif);
  font-size: 18px;
  font-weight: 500;
}

.customer-dress-card small {
  color: var(--customer-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.customer-dress-card > .customer-text-button {
  min-height: 40px;
  justify-self: start;
  font-size: 10px;
}

.customer-booking-dresses .customer-dress-card {
  padding: 10px;
  border: 1px solid var(--customer-line);
}

.customer-booking-dresses .customer-dress-card > a {
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.customer-booking-dresses .customer-dress-card img {
  aspect-ratio: 2 / 3;
}

.customer-profile-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.customer-profile-form .customer-form-message,
.customer-profile-form .customer-button {
  grid-column: 1 / -1;
}

.customer-profile-form .customer-button {
  justify-self: start;
}

.customer-toast {
  position: fixed;
  z-index: 10020;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  padding: 16px 18px;
  color: #fff;
  background: var(--customer-ink);
  border: 1px solid var(--customer-ink);
  line-height: 1.5;
}

.customer-toast[data-state="error"] {
  background: var(--customer-danger);
}

body.customer-auth-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .customer-account-page__intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .customer-dress-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-profile-form {
    grid-template-columns: 1fr 1fr;
  }

  .customer-waitlist-list {
    grid-template-columns: 1fr;
  }

  .customer-profile-form label:last-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .customer-account-page {
    padding: 36px 12px 72px;
  }

  .customer-account-page__intro {
    margin: -36px -12px 40px;
    padding: 44px 20px 38px;
  }

  .customer-account-page__intro h1 {
    font-size: clamp(40px, 13vw, 54px);
  }

  .customer-auth-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
  }

  .customer-auth-dialog__surface,
  [data-customer-inline-auth] {
    padding: 30px 22px;
  }

  .customer-auth-alternatives,
  .customer-account-heading,
  .customer-section-heading,
  .customer-booking__actions,
  .customer-reschedule__actions,
  .customer-confirm-panel > div {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-account-heading {
    align-items: flex-start;
  }

  .customer-section-heading {
    display: flex;
    align-items: flex-start;
  }

  .customer-section-heading a {
    margin-top: 4px;
  }

  .customer-booking__summary,
  .customer-waitlist-card__heading,
  .customer-booking__facts,
  .customer-profile-form,
  .customer-reschedule__search {
    grid-template-columns: 1fr;
  }

  .customer-booking__summary time {
    text-align: left;
  }


  .customer-waitlist-card__heading time {
    text-align: left;
  }

  .customer-dress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 8px;
  }

  .customer-button,
  .customer-booking__actions .customer-text-button,
  .customer-reschedule__actions .customer-text-button,
  .customer-confirm-panel > div > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-spinner { animation-duration: .01ms; animation-iteration-count: 1; }
}
