/* «Agregar queja» (Jace #3125): its steps, its pills of «Medio de contacto»
   and «Categoría» with the palette of «Nuevo recordatorio», and the
   customer's messages of Crisp to copy. Every text wraps: none is cut. */
.complaint-window .modal__head h2,
.complaint-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.complaint-window .modal__head > button { flex-shrink: 0; }
.complaint-form { display: grid; gap: 18px; }
.complaint-step { display: grid; gap: 10px; min-width: 0; }
.complaint-step[hidden] { display: none; }
.complaint-step__title,
.complaint-step__label { margin: 0; font-size: 14px; font-weight: 700; }
.complaint-step__switch { justify-self: start; }
fieldset.complaint-step { border: 0; margin: 0; padding: 0; }
fieldset.complaint-step legend { font-weight: 600; margin-bottom: 6px; padding: 0; }

.complaint-found { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.complaint-found__who { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.complaint-new { display: grid; gap: 10px; }
.complaint-new[hidden] { display: none; }
.complaint-new p { margin: 0; }

.complaint-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.complaint-pills[hidden] { display: none; }
.complaint-pill {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 40px;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--surface-stone);
  padding: 8px 16px;
  color: var(--creation-ink);
  font-weight: 400;
  line-height: 18px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.complaint-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: inherit; background: none; padding: 0; appearance: none; cursor: pointer; }
.complaint-pill:has(input:checked) { background: var(--surface-mint); color: var(--ink-teal); font-weight: 700; }
.complaint-pill:has(input:focus-visible) { outline: 2px solid var(--ink-teal); outline-offset: 2px; }
.complaint-tag {
  border-radius: 999px;
  background: var(--card);
  padding: 1px 8px;
  color: var(--ink-teal);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}
.complaint-tag[hidden] { display: none; }
.complaint-channel-fixed { margin: 0; }
.complaint-channel-fixed[hidden] { display: none; }
.complaint-other { max-width: 420px; }

.complaint-messages__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.complaint-message {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line-sand-dim);
  border-radius: 10px;
  background: var(--card);
  padding: 8px 12px;
  color: var(--foreground);
  font: inherit;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.complaint-message:hover { border-color: var(--ink-teal); }
.complaint-message:focus-visible { outline: 2px solid var(--ink-teal); outline-offset: 1px; }
.complaint-message__time { color: var(--muted-foreground); font-size: 12px; }

.complaint-recurring { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.complaint-recurring__check { flex-wrap: wrap; font-weight: 600; cursor: pointer; }
.complaint-recurring__hint { color: var(--ink-muted); overflow-wrap: anywhere; }

.complaint-window .field :is(input:not([type="radio"], [type="checkbox"]), select, textarea) { border: 1px solid var(--line-sand-dim); border-radius: 10px; }
.complaint-window .field :is(input:not([type="radio"], [type="checkbox"]), select, textarea):focus { border-color: var(--ink-teal); outline: none; }
.complaint-window .actions .button--ghost { border: 0; background: none; color: var(--creation-ink); box-shadow: none; }

.complaint-heading { overflow-wrap: anywhere; }
.complaint-comment p { margin: 0 0 6px; }

/* «¿Se quejó de algo?» after the semáforo of a call of Customer Success. */
.traffic-light-window__complaint { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.traffic-light-window__complaint legend { margin-bottom: 6px; padding: 0; font-weight: 600; }
.traffic-light-window__answers { display: flex; flex-wrap: wrap; gap: 8px; }
.traffic-light-window__answer {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--surface-stone);
  padding: 0 18px;
  color: var(--creation-ink);
  cursor: pointer;
}
.traffic-light-window__answer input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: inherit; background: none; padding: 0; appearance: none; cursor: pointer; }
.traffic-light-window__answer:has(input:checked) { background: var(--surface-mint); color: var(--ink-teal); font-weight: 700; }
.traffic-light-window__answer:has(input:focus-visible) { outline: 2px solid var(--ink-teal); outline-offset: 2px; }
.complaint-found__company { font-size: 13px; font-weight: 600; }
.complaint-found__company:empty { display: none; }
.complaint-company { margin: 0; overflow-wrap: anywhere; }
.complaint-company[hidden] { display: none; }
