/* Shared by the membership window and the direct checkout page. */
.pass-window .pass-account-fields :is(.checkout-account, .checkout-payment) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--pass-edge);
}
.pass-window .pass-account-fields .checkout-step { display: none; }
.pass-window .pass-account-fields .checkout-account { container-type: inline-size; }
.pass-window .pass-account-fields #account-description { margin: 4px 0 0; }
.pass-window #checkout-auth:not([hidden]) { margin-top: 14px; }
.pass-window #auth-email-fields label { margin: 0 0 5px; font-weight: 500; }
.pass-window .pass-account-fields #checkout-email,
.pass-window .pass-account-fields #auth-submit { min-height: 44px; }
.pass-window #auth-email-fields #checkout-eligibility { margin: 6px 0 10px; }
.pass-window .pass-account-fields #auth-submit { width: 100%; }
.pass-window .pass-account-fields #auth-message:not(:empty) { margin: 10px 0 0; }

@container (min-width: 28rem) {
  .pass-window #checkout-auth:has(#auth-email-fields:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: center;
  }
  .pass-window #checkout-auth #auth-email-fields:not([hidden]) { display: contents; }
  .pass-window #auth-email-fields label,
  .pass-window #auth-email-fields #checkout-eligibility { grid-column: 1 / -1; }
  .pass-window #auth-email-fields #checkout-eligibility { grid-row: 3; margin: 6px 0 0; }
  .pass-window #checkout-auth:has(#auth-email-fields:not([hidden])) #auth-submit {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .pass-window .pass-account-fields #auth-submit { width: auto; }
}
.halo-code-entry {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 8px);
  width: min(100%, 20rem);
  margin: 6px 0;
  direction: ltr;
}
.halo-code-entry .halo-code-slot {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid #98a9be;
  border-radius: var(--halo-corner-control, 6px);
  background: #fcfdff;
  color: #162c45;
  font: 600 19px/1 var(--font-halo);
  font-variant-numeric: tabular-nums;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.halo-code-entry:focus-within [data-active] {
  outline: 2px solid #326bd2;
  outline-offset: 1px;
  border-color: #326bd2;
}
.halo-code-entry:focus-within [data-selected] { background: #dceaff; }
.halo-code-entry input[autocomplete="one-time-code"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: text;
}
@media (prefers-reduced-motion: reduce) {
  .halo-code-entry .halo-code-slot { transition: none; }
}
