/* PCE Store, user information screen.
   Styles for the components in app_pce_store_user_info. Loaded by the PCEStore
   Layout when one of them is on the page. Bump ASSET_REV in
   pceStoreLayout.isml after editing. */

/* This screen has 19px side margins (352px of content in a 390px frame). */
:root { --ps-gutter: 19px; }
html.pce-app {
  --ps-gutter: max(19px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

/* ---------- Section heading ---------- */

.ps-section-heading {
  /* The heading names the records under it, so it pulls them 4px closer. */
  margin: 20px 0 -4px;
  font-family: var(--ps-sans);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 22px;
  color: var(--ps-ink);
}


/* ---------- Form ---------- */

.ps-form { margin-top: 18px; }

.ps-field + .ps-field { margin-top: 15px; }

/* Same text style as the screen description above the form. */
.ps-field__label {
  display: block;
  font-family: var(--ps-sans);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--ps-text);
}

.ps-field__input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 6px 0 0;
  padding: 0 14px;
  border: 1px solid var(--ps-outline);
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--ps-sans);
  font-weight: 500;
  /* 16px stops iOS Safari zooming in on focus. The app cannot zoom, so it
     can use the design's own size. */
  font-size: 16px;
  line-height: 20px;
  color: var(--ps-ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

html.pce-app .ps-field__input { font-size: 14px; }

.ps-field__input::placeholder {
  font-weight: 500;
  color: #6B7C8C;
  opacity: 1;
}

.ps-field__input:focus {
  border-color: var(--ps-blue);
  box-shadow: 0 0 0 3px rgba(9, 77, 176, 0.14);
}

.ps-field--invalid .ps-field__input {
  border-color: #B3261E;
  box-shadow: none;
}

.ps-field__error {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #B3261E;
}

.ps-field__error:empty { display: none; }

/* ---------- Notice ---------- */

.ps-notice {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  margin-top: 13px;
  padding: 12px 22px 12px 24px;
  border: 1px solid var(--ps-blue);
  border-radius: 5px;
  background: var(--ps-tile-blue);
}

.ps-notice__icon {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--ps-blue);
}

.ps-notice__text {
  margin: 0;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 18px;
  color: var(--ps-text);
}

.ps-form__submit {
  margin-top: 13px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.ps-form__status {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  text-align: center;
  color: var(--ps-text);
}

.ps-form__status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ps-field__input { transition: none; }
}
