@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
body:has(.customer-auth) {
  margin: 0;
  background: #f7f7f7;
  color: #171717;
  font-family: Arial, sans-serif;
}
.customer-auth,
.customer-auth * {
  box-sizing: border-box;
}
.customer-auth {
  width: min(calc(100% - 32px), 500px);
  margin: 40px auto;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 0;
}
.customer-auth-brand {
  display: block;
  width: 170px;
  margin: 0 auto 32px;
}
.customer-auth .brand-logo {
  width: 100%;
  height: auto;
  display: block;
}
.customer-auth h1 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  margin: 0 0 36px;
}
.customer-auth fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.customer-auth label {
  display: block;
  font-size: 15px;
  margin: 18px 0 8px;
}
.customer-auth input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  height: 52px;
  padding: 14px 18px;
  font: inherit;
  border: 1px solid #dedede;
  border-radius: 0;
  background: white;
  color: inherit;
}
.customer-auth button {
  font: inherit;
  cursor: pointer;
}
.customer-auth button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.customer-auth a,
.customer-text-button {
  color: #171717;
}
.customer-auth :focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}
.customer-auth h1:focus {
  outline: none;
}
.customer-password {
  display: flex;
  position: relative;
}
.customer-auth .customer-password input {
  padding-right: 54px;
}
.customer-password button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #171717;
}
.customer-auth-note {
  color: #697180;
  font-size: 14px;
  line-height: 1.5;
}
.customer-auth > .customer-auth-note {
  text-align: center;
}
.customer-auth-help {
  text-align: right;
  margin-top: 12px;
}
.customer-text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.customer-primary,
.customer-google {
  width: 100%;
  min-height: 52px;
  padding: 12px;
  border-radius: 0;
}
.customer-primary {
  margin-top: 22px;
  background: #171717;
  color: white;
  border: 1px solid #171717;
}
.customer-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: white;
  color: #171717;
  border: 1px solid #dedede;
  border-radius: 28px;
}
.customer-google img {
  flex: none;
}
.customer-auth .customer-consent {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.customer-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #171717;
}
.customer-auth-divider {
  text-align: center;
  margin: 22px 0;
}
.customer-auth-switch {
  margin-top: 32px;
  text-align: center;
  line-height: 1.5;
}
.customer-auth-status {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.customer-auth-status:empty {
  display: none;
}
@media (max-width: 480px) {
  .customer-auth {
    margin: 16px auto;
    padding: 28px 20px;
  }
}

.customer-auth .customer-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.customer-password {
  margin-top: 12px;
}
.customer-auth input::placeholder {
  color: #737373;
  opacity: 1;
}
.customer-auth .customer-auth-help .customer-text-button {
  color: #697180;
  text-decoration: none;
}
.customer-auth .customer-sandbox-note {
  margin: 24px 0 0;
  font-size: 12px;
}

.customer-auth-error {
  color: #a52222;
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0;
}

/* Keep the account flow within ordinary phone and laptop viewports without clipping. */
@media (max-height: 950px) {
  .customer-auth {
    margin: 16px auto;
    padding: 24px 28px;
  }
  .customer-auth-brand {
    width: 130px;
    margin-bottom: 18px;
  }
  .customer-auth h1 {
    font-size: 28px;
    margin-bottom: 22px;
  }
  .customer-auth-switch {
    margin-top: 18px;
  }
  .customer-auth-divider {
    margin: 16px 0;
  }
  .customer-auth .customer-sandbox-note {
    margin-top: 12px;
  }
}
@media (max-height: 800px), (max-width: 480px) {
  .customer-auth {
    margin: 8px auto;
    padding: 18px 20px;
  }
  .customer-auth-brand {
    width: 104px;
    margin-bottom: 12px;
  }
  .customer-auth h1 {
    font-size: 25px;
    margin-bottom: 18px;
  }
  .customer-auth input:not([type="checkbox"]):not([type="hidden"]) {
    height: 44px;
    padding: 10px 12px;
  }
  .customer-password button {
    top: 0;
    right: 0;
  }
  .customer-auth .customer-password input {
    padding-right: 48px;
  }
  .customer-auth-help {
    margin-top: 2px;
  }
  .customer-primary,
  .customer-google {
    min-height: 44px;
    padding: 9px 12px;
  }
  .customer-primary {
    margin-top: 12px;
  }
  .customer-auth .customer-consent {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.4;
    gap: 10px;
  }
  .customer-auth-note {
    font-size: 12px;
    line-height: 1.4;
    margin: 10px 0;
  }
  .customer-auth-divider {
    margin: 10px 0;
  }
  .customer-auth-switch {
    margin-top: 10px;
    font-size: 14px;
  }
  .customer-auth .customer-sandbox-note {
    margin-top: 6px;
    font-size: 11px;
  }
  .customer-auth-error {
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0;
  }
  .customer-auth-status {
    font-size: 13px;
    margin: 8px 0;
  }
}

.customer-password {
  height: 52px;
  border: 1px solid #dedede;
  align-items: stretch;
}
.customer-auth
  .customer-password
  input:not([type="checkbox"]):not([type="hidden"]) {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 100%;
  border: 0;
  padding-right: 12px;
}
.customer-password button {
  position: static;
  flex: 0 0 44px;
  height: 100%;
}
.customer-password:focus-within {
  outline: 2px solid #171717;
  outline-offset: 2px;
}
.customer-password input:focus-visible {
  outline: none;
}
.customer-password input::-ms-reveal,
.customer-password input::-ms-clear {
  display: none;
}
@media (max-height: 800px), (max-width: 480px) {
  .customer-password {
    height: 44px;
  }
}

.customer-password-match {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #237044;
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0 0;
}
.customer-password-match:empty {
  display: none;
}

@media (max-width: 480px) {
  body:has(.customer-auth) {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: 8px 0;
  }
  .customer-auth {
    margin: auto;
    flex-shrink: 0;
  }
}

.staff-auth form {
  display: grid;
  gap: 16px;
}

.staff-auth-qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.staff-auth-manual {
  font-size: 13px;
}
.staff-auth-manual summary {
  cursor: pointer;
}
.staff-auth-manual code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  user-select: all;
}

.authenticator-code {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.authenticator-code-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 12px);
}
.authenticator-code-slots > span {
  display: grid;
  place-items: center;
  height: clamp(52px, 8vw, 68px);
  border: 1px solid #dfe2e8;
  background: #fafafa;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
}
.authenticator-code-slots > span.is-active {
  border-color: #2439ee;
  box-shadow: 0 0 0 1px #2439ee;
  background: #fff;
}
.customer-auth
  .authenticator-code
  input:not([type="checkbox"]):not([type="hidden"]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: text;
}
.authenticator-code:has(input:disabled) {
  opacity: 0.6;
}
