/* WhatsApp 24h Window UX — Fase W1 (2026-09-27), pulido visual W1.5
   (2026-09-27). Loaded from
   overrides/app/views/layouts/vueapp.procexx-ux.html.erb, same pattern as
   procexx-inbox-client-ux.css. */

.procexx-ww {
  margin: 0 16px 8px;
  font-size: 12px;
  line-height: 1.4;
}

/* PROCEXX FIX (W1.5) — OPEN validated live as "funciona pero queda
   demasiado escondido": a transparent full-width block with plain gray
   text has almost no visual anchor next to the composer. Redesigned as
   a small, self-width chip/pill (inline-flex, not a full block) with a
   colored status dot — visible at a glance on desktop and mobile,
   still never alarm-colored, never a big card. */
.procexx-ww--open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6f0;
  border: 1px solid #d3e8d8;
  color: #2f6b45;
  font-weight: 500;
}

.procexx-ww-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
}

/* CLOSING_SOON must read as clearly more urgent than OPEN at a glance —
   amber, a touch larger, but still a compact pill, never a full card,
   never framed as an error (§3 of the brief). */
.procexx-ww--closing-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fdf3e0;
  border: 1px solid #f2d49b;
  color: #92610f;
  font-weight: 600;
}

.procexx-ww--closing-soon .procexx-ww-dot {
  background: #d99a1b;
}

.procexx-ww--closed {
  padding: 10px 12px;
  border-radius: 8px;
  color: #7a2323;
  background: #fdecec;
  border: 1px solid #f2c1c1;
}

.procexx-ww-title {
  margin: 0 0 2px;
  font-weight: 600;
}

.procexx-ww-body,
.procexx-ww-hint {
  margin: 0 0 8px;
  opacity: 0.9;
}

.procexx-ww-cta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #1f93ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.procexx-ww-cta:hover {
  background: #0f7ae0;
}

.procexx-ww-cta:disabled {
  opacity: 0.5;
  cursor: default;
}

.procexx-ww-meta-link {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #8a8a8a;
  text-decoration: underline;
}

.procexx-ww-picker {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.procexx-ww-picker-item {
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.procexx-ww-picker-item:hover {
  background: #f5f5f5;
}

.procexx-ww-picker-item:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Template review pane (W1.5) — preview + variable inputs + Enviar/
   Cancelar. Opens in place of the picker list, never both at once. */
.procexx-ww-review {
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
}

.procexx-ww-review-preview {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7f7f8;
  color: #444;
  font-size: 12px;
  white-space: pre-wrap;
}

.procexx-ww-review-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.procexx-ww-review-field label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
}

.procexx-ww-review-field input {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
}

.procexx-ww-review-field input:invalid,
.procexx-ww-review-field.procexx-ww-field-missing input {
  border-color: #d64545;
}

.procexx-ww-review-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.procexx-ww-review-cancel {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #444;
  font-size: 12px;
  cursor: pointer;
}

.procexx-ww-review-cancel:hover {
  background: #f5f5f5;
}

.procexx-ww-review-unsupported {
  margin: 0;
  font-size: 12px;
  color: #92610f;
}
