/* FoodCourt Forms — acabamento único para campos de todos os portais. */
:root {
  --field-bg: #ffffff;
  --field-border: #d5e0d9;
  --field-border-hover: #9fcab0;
  --field-text: #17251d;
  --field-placeholder: #8a9690;
  --field-focus: #07883f;
  --field-ring: rgba(7, 136, 63, 0.12);
}

:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
      [type="file"]
    ):not([type="color"]):not([type="hidden"]):not([type="button"]):not(
      [type="submit"]
    ):not([type="reset"]),
  select,
  textarea,
  .input,
  .textarea
) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--field-border) !important;
  border-radius: 13px !important;
  outline: 0;
  background: var(--field-bg);
  color: var(--field-text);
  font:
    500 0.9rem/1.4 Inter,
    system-ui,
    sans-serif;
  box-shadow:
    0 1px 2px rgba(10, 45, 26, 0.025),
    inset 0 1px rgba(255, 255, 255, 0.7);
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    transform 180ms ease;
}

:where(textarea, .textarea) {
  min-height: 104px;
  padding-block: 13px;
  resize: vertical;
}

:where(select) {
  padding-right: 40px;
  cursor: pointer;
}

:where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
        [type="file"]
      ):not([type="color"]):not([type="hidden"]),
    select,
    textarea,
    .input,
    .textarea
  ):hover:not(:disabled) {
  border-color: var(--field-border-hover) !important;
}

:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
      [type="file"]
    ):not([type="color"]):not([type="hidden"]),
  select,
  textarea,
  .input,
  .textarea
):focus {
  border-color: var(--field-focus) !important;
  background: #fff;
  box-shadow:
    0 0 0 4px var(--field-ring),
    0 7px 18px rgba(7, 75, 37, 0.07) !important;
}

:where(input, textarea)::placeholder {
  color: var(--field-placeholder);
  opacity: 1;
  font-weight: 450;
}

:where(input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: #f0f3f1;
}

/* Caixas compostas desenham a borda no contêiner, não no input interno. */
:where(
    .input-wrap,
    .fcv2-login form > label,
    .partner-login-card label > div,
    .address-input,
    .searchbar-lg,
    .menu-toolbar
  )
  > input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 0;
  padding-inline: 12px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
}

:where(
  .input-wrap,
  .fcv2-login form > label,
  .partner-login-card label > div,
  .address-input,
  .searchbar-lg,
  .menu-toolbar
):focus-within {
  border-color: var(--field-focus) !important;
  box-shadow: 0 0 0 4px var(--field-ring) !important;
}

/* O formulário de endereço deve permanecer legível, sem esticar pela tela. */
body.app-mode .profile-detail-page {
  width: 100%;
  max-width: 800px !important;
  margin-inline: auto;
}

.profile-form {
  gap: 16px !important;
}

.profile-form label,
.partner-store-form label,
.partner-form-step label,
.promotion-editor-fields label {
  color: var(--field-text);
  font-weight: 750;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] {
  --field-bg: #18211c;
  --field-border: #304039;
  --field-border-hover: #4a6657;
  --field-text: #f1f6f3;
  --field-placeholder: #839189;
  --field-focus: #43cd7a;
  --field-ring: rgba(46, 205, 105, 0.14);
}

html[data-theme="dark"]
  :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
        [type="file"]
      ):not([type="color"]):not([type="hidden"]),
    select,
    textarea,
    .input,
    .textarea
  ):focus {
  background: #1b2720;
}

html[data-theme="dark"] :where(input, select, textarea):disabled {
  background: #111713;
}

@media (max-width: 700px) {
  :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
        [type="file"]
      ):not([type="color"]):not([type="hidden"]):not([type="button"]):not(
        [type="submit"]
      ),
    select,
    textarea,
    .input,
    .textarea
  ) {
    min-height: 52px;
    padding-inline: 14px;
    border-radius: 12px !important;
    font-size: 16px;
  }

  :where(textarea, .textarea) {
    min-height: 110px;
    padding-block: 13px;
  }

  body.app-mode .profile-detail-page {
    max-width: 100% !important;
  }
}
