/* The "Found a translation mistake?" link and form (apps/shared/translation-fix.js). Classes only: every page that loads this has
   `style-src 'self'`. Colours are the browser's own system colours, so the dialog reads on the dark website, the light account
   pages and the customer area alike; the buttons take the page's own .btn look. */
.tf-slot { display: inline; }
.tf-slot[hidden] { display: none; }

.tf-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.tf-link:hover,
.tf-link:focus-visible { text-decoration-thickness: 2px; }
/* In a header's menu the link sits among short nav words: one line, as heavy as they are. */
[data-tf-slot="header"] .tf-link { white-space: nowrap; font-weight: 600; }

.tf-dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 2px solid CanvasText;
  border-radius: 12px;
  background: Canvas;
  color: CanvasText;
}
.tf-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }

.tf-title { margin: 0 0 0.5rem; font-size: 1.25rem; line-height: 1.25; }
.tf-intro { margin: 0 0 1rem; }

.tf-field { margin: 0 0 0.9rem; }
.tf-field label { display: block; margin: 0 0 0.3rem; font-weight: 600; }
.tf-field textarea,
.tf-field input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid CanvasText;
  border-radius: 8px;
  background: Field;
  color: FieldText;
  font: inherit;
}
.tf-field textarea { resize: vertical; min-height: 4.5rem; }
.tf-hint { margin: -0.5rem 0 0.9rem; }
.tf-auto { margin: 0 0 0.9rem; }

.tf-error {
  margin: 0 0 0.9rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-weight: 600;
}
.tf-done { margin: 0 0 1rem; font-weight: 600; }
.tf-error[hidden],
.tf-done[hidden],
.tf-close[hidden],
.tf-form[hidden] { display: none; }

.tf-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
