/* The alert settings form (app/components/alertform.js), prefix af-: two of Duolingo's switches and two of their
   text fields with the fire coin in front. No box of its own: the page puts it where it fits (Alerts' polar panel,
   the item page's popover). Colours only from tokens.css. */

.af { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.af-sw { align-items: flex-start; min-height: 44px; }
.af-sw .u-switch__track { margin-top: 2px; }
.af-sw .u-switch__text { display: flex; flex-direction: column; color: var(--color-eel); font-weight: 700; line-height: 24px; }
.af-sw .u-switch__text small { color: var(--color-wolf); font: 400 15px/20px var(--font); }

/* the two marks side by side, one under the other when there isn't room */
.af-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 4px; }
.af-mark { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af-mark__label { color: var(--color-eel); font: 700 15px/20px var(--font); }
.af-field { background: var(--color-snow); }
.af-field__coin { width: 18px; height: 22px; margin-left: 14px; flex-shrink: 0; }
.af-field > input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 8px; border: 0; background: none; outline: none;
  color: var(--color-eel); font: 700 19px/25px var(--font); font-variant-numeric: tabular-nums;
}
.af-field > input::placeholder { color: var(--color-placeholder); font-weight: 400; }
.af-err { margin: 0; color: var(--color-fire-ant); font: 700 15px/20px var(--font); }
.af-err[hidden] { display: none; }
.af-btn { margin-top: 4px; }

/* phones: the price fields one under the other (the words and fields keep the computer's sizes) */
@media (max-width: 699px) {
  .af-marks { grid-template-columns: minmax(0, 1fr); }
}
