/*
 * The forms the backend keeps (components/ShopForms.tsx) : the visit and franchise popups, in the shell of the other
 * popups (.popup, .popup__dialog of site.css), and the warranty and return forms of My Account (account.css's cards).
 */
.popup__dialog.sf {
  width: min(560px, calc(100vw - 2 * var(--gutter, 16px)));
  max-height: min(92vh, 860px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--surface, #fff);
  color: var(--ink, #1d1916);
  border-radius: var(--radius, 18px);
}
.sf .eyebrow {
  margin: 0 0 6px;
}
.sf__title {
  margin: 0 0 18px;
  font-family: var(--font-display, serif);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
}
.sf__title em {
  color: var(--red, #d71a21);
  font-style: italic;
}
.sf__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.sf__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.sf__field input,
.sf__field select,
.sf__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--edge, #ddd3c8);
  border-radius: 10px;
  background: var(--paper, #fff);
  color: inherit;
  font: 400 15px/1.4 var(--font-body, system-ui, sans-serif);
}
.sf__field textarea {
  min-height: 0;
  resize: vertical;
}
.sf__field input:focus-visible,
.sf__field select:focus-visible,
.sf__field textarea:focus-visible {
  outline: 2px solid var(--red, #d71a21);
  outline-offset: 1px;
}
.sf__wide {
  grid-column: 1 / -1;
}
.sf__form .btn[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}
.sf-fail {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #a1141a;
  font-size: 14px;
}
.sf-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 8px 8px;
  text-align: center;
  outline: none;
}
.sf-done[hidden] {
  display: none;
}
.sf-done__tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok-bg, #e7f6ec);
  color: var(--ok, #1b7a3d);
}
.sf-done__tick svg {
  width: 28px;
  height: 28px;
}
.sf-done p {
  margin: 0;
  color: var(--muted, #6d625a);
}
.sf-account {
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .sf__form {
    grid-template-columns: 1fr;
  }
  .popup__dialog.sf {
    padding: 22px 18px 18px;
  }
}
