/* Wolf Attack — Portal Manutenção & Garantia
   DNA tático / EDC: dark #121212 · #1E1E1E, flat, cantos retos, acentos coyote */

:root {
  --bg-page: #121212;
  --bg-panel: #1e1e1e;
  --bg-header: #121212;
  --bg-elevated: #1a1a1a;
  --bg-elevated-hover: #252525;
  --bg-modal: #121212;
  --bg-tooltip: #000000;
  --text-inverse: #ffffff;
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-input-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bottom-idle: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent-tactical: #9a8b6e;
  --accent-tactical-bright: #c4b59a;
  --accent-tactical-dim: rgba(154, 139, 110, 0.35);
  --select-bg: #1e1e1e;
  --select-bg-hover: #252525;
  --select-option-hover: #333333;
  --select-text: #ffffff;
  --header-h: 4.5rem;
  --radius: 2px;
  --font: "Barlow", system-ui, -apple-system, sans-serif;
  --tap: 3rem;

  /* Tokens semânticos (painel) */
  --bg-body: var(--bg-page);
  --bg-card: var(--bg-panel);
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --border-color: var(--border-subtle);
  --card-shadow: none;

  /* Sidebar (menu lateral do admin) */
  --bg-sidebar: var(--bg-panel);
  --text-sidebar: var(--text);
  --text-sidebar-muted: var(--text-muted);
  --text-sidebar-hover: var(--text);
  --text-header: var(--text);

  /* Inputs */
  --input-bg: var(--bg-input);
  --input-border: var(--border-subtle);
  --input-focus-border: var(--accent-tactical-bright);

  /* Botões */
  --btn-primary-bg: var(--text);
  --btn-primary-text: var(--bg-page);
  --btn-success-bg: #198754;
  --btn-success-text: #ffffff;
  --btn-danger-bg: #b02a37;
  --btn-danger-text: #ffffff;

  /* Badges (default: modo escuro mantém estética atual) */
  --badge-warning-bg: rgba(255, 140, 66, 0.14);
  --badge-warning-text: #ffb36b;
  --badge-success-bg: rgba(46, 160, 67, 0.18);
  --badge-success-text: #7dffb3;
  --badge-info-bg: rgba(143, 179, 217, 0.12);
  --badge-info-text: #8fb3d9;
  --badge-danger-bg: rgba(220, 53, 69, 0.22);
  --badge-danger-text: #f8d7da;
}

/* Tema claro (alternativo) — aplicado quando o atributo data-theme="light" existir no root */
[data-theme="light"] {
  --bg-page: #ffffff;
  --bg-panel: #ffffff;
  /* Cabeçalho superior: sempre preto */
  --bg-header: #111827;
  --bg-elevated: #ffffff;
  --bg-elevated-hover: #f3f4f6;
  --bg-modal: #ffffff;
  --bg-tooltip: #111111;
  --text: #111827;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;

  --bg-input: #ffffff;
  --bg-input-hover: #f9fafb;
  --border-subtle: #e5e7eb;
  --border-bottom-idle: rgba(17, 24, 39, 0.12);

  --accent-tactical: #6b5b45;
  --accent-tactical-bright: #5c4d3a;
  --accent-tactical-dim: rgba(107, 91, 69, 0.2);

  --select-bg: #ffffff;
  --select-bg-hover: #f3f4f6;
  --select-option-hover: #e5e7eb;
  --select-text: #111827;

  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);

  /* Sidebar cinza claro */
  --bg-sidebar: #f0f2f5;
  --text-sidebar: #111827;
  --text-sidebar-muted: #4b5563;
  --text-sidebar-hover: #111827;
  --text-header: #ffffff;

  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-focus-border: #111827;

  --btn-primary-bg: #111827;
  --btn-primary-text: #ffffff;
  --btn-success-bg: #16A34A;
  --btn-success-text: #FFFFFF;
  --btn-danger-bg: #DC2626;
  --btn-danger-text: #FFFFFF;

  --badge-warning-bg: #FEF9C3;
  --badge-warning-text: #A16207;
  --badge-success-bg: #DCFCE7;
  --badge-success-text: #15803D;
  --badge-info-bg: #f3f4f6;
  --badge-info-text: #374151;
  --badge-danger-bg: #FEE2E2;
  --badge-danger-text: #B91C1C;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
  background: var(--bg-body);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-body);
}

.d-none {
  display: none !important;
}

.wa-showroom-flag {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(154, 139, 110, 0.14), rgba(255, 255, 255, 0.03));
  border-radius: 8px;
  padding: 0.95rem 0.9rem;
  margin: 0 0 0.9rem 0;
}

.wa-showroom-flag__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 0.55rem 0;
}

.wa-showroom-flag__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-showroom-flag__help {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.wa-switch {
  display: inline-flex;
  align-items: center;
}

.wa-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wa-switch__track {
  width: 3.35rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.wa-switch__track::after {
  content: "";
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  transition: transform 160ms ease, background 160ms ease;
}

.wa-switch input:checked + .wa-switch__track {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.18);
}

.wa-switch input:checked + .wa-switch__track::after {
  transform: translate(1.45rem, -50%);
  background: #fde047;
}

.wa-switch input:focus + .wa-switch__track {
  outline: 2px solid rgba(234, 179, 8, 0.35);
  outline-offset: 2px;
}

.wa-swal-popup {
  background: #111111 !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.wa-swal-confirm {
  background: #eab308 !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

.wa-swal-cancel {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Bootstrap-like helpers (portal) */
.mt-2 {
  margin-top: 0.5rem !important;
}

.alert {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  line-height: 1.35;
}

.alert-warning {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
  color: var(--text);
}

.wa-showroom-routes {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wa-showroom-route {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(0, 0, 0, 0.18);
}

.wa-showroom-route__icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.wa-showroom-route__label {
  font-size: 0.9rem;
  line-height: 1;
}

.wa-showroom-route:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(234, 179, 8, 0.55);
}

/* —— 0. Header fixo —— */
.wa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.wa-header,
.wa-header__title,
.wa-admin-header-user,
.wa-admin-header-user__text,
.wa-admin-header-user__text strong,
.wa-admin-header-user__icon {
  color: var(--text-header);
}

.wa-header .btn.btn--secondary {
  color: var(--text-header);
  border-color: rgba(255, 255, 255, 0.22);
}

.wa-header .btn.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text-header);
}

.wa-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.65rem 1rem;
  gap: 1rem;
}

.wa-header__brand,
.wa-header__title-wrap {
  min-width: 0;
}

.wa-header__title-wrap {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.wa-header__title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-header, var(--text-inverse));
  text-align: right;
}

.wa-header__logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 2.75rem;
  max-width: min(320px, 82vw);
  object-fit: contain;
}

.wa-header__support {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(35, 204, 99, 0.12);
  color: #7ee28e;
}

.wa-header__support svg {
  width: 1.25rem;
  height: 1.25rem;
}

.wa-header__inner--admin {
  padding-right: 5.75rem;
}

.wa-header .wa-admin-header-user {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.wa-header .wa-admin-header-user__text strong {
  color: #ffffff;
}

.wa-header .wa-admin-header-user__icon {
  color: rgba(255, 255, 255, 0.82);
}

/* Admin: o header é grid; não usar actions absolutas */
.wa-admin-header-actions {
  position: static;
  right: auto;
  top: auto;
  transform: none;
}

/* —— App shell —— */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

.app__main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1rem 40px 2rem;
}

.app__footer {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.app__footer p {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Views (SPA) —— */
.view {
  display: none;
}

.view.view--active {
  display: block;
}

.view__inner {
  padding-top: 0.5rem;
}

#screen-solicitacao .view__inner {
  max-width: 800px;
  margin: 0 auto;
}

.view__inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(1.5rem, 8vw, 3rem);
  min-height: calc(100dvh - var(--header-h) - 8rem);
  justify-content: center;
}

#screen-consulta .view__inner--consulta {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0 40px;
  text-align: left;
  position: relative;
}

#screen-consulta .wa-consulta-toolbar {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

#screen-consulta .view__inner--consulta .back {
  margin-left: 0;
}

#screen-consulta .wa-consulta-top-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

#screen-consulta .wa-consulta-top {
  width: min(100%, 28rem);
  max-width: 28rem;
  margin: 0 auto 1.75rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#screen-consulta .wa-consulta-top .title--center,
#screen-consulta .wa-consulta-top .subtitle--center {
  text-align: center;
  width: 100%;
}

#screen-consulta .wa-consulta-top .form--consulta {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#screen-consulta .wa-consulta-top .field {
  text-align: left;
}

/* —— Typography —— */
.brand-tag {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-tactical-bright);
}

.title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.title--hero {
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  line-height: 1.25;
  max-width: 22ch;
}

.title--section {
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.title--center {
  text-align: center;
  width: 100%;
}

.lead {
  margin: 1rem 0 0;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.subtitle {
  margin: 0.5rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: left;
}

.subtitle--center {
  text-align: center;
}

/* —— Actions —— */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: min(100%, 22rem);
  margin-top: 2rem;
}

.actions--stack {
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.95rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-tactical-bright);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn--primary:hover {
  background: var(--accent-tactical-bright);
  border-color: var(--accent-tactical-bright);
  color: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
}

.btn--submit {
  min-height: 2.5rem;
  font-size: 0.8125rem;
  box-shadow: inset 0 -2px 0 var(--accent-tactical);
}

.btn--submit:hover {
  box-shadow:
    inset 0 -2px 0 var(--accent-tactical-bright),
    0 0 24px var(--accent-tactical-dim);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-subtle);
}

.btn--secondary:hover {
  background: var(--bg-panel);
  border-color: var(--accent-tactical);
  color: var(--accent-tactical-bright);
}

.btn--wide {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

/* —— Voltar —— */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.15s ease;
}

.back:hover {
  color: var(--accent-tactical-bright);
}

.back:focus-visible {
  outline: 2px solid var(--accent-tactical);
  outline-offset: 4px;
}

.back__icon {
  font-size: 1.125rem;
  line-height: 1;
}

/* —— Form —— */
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1rem;
}

.form--consulta {
  width: 100%;
  text-align: left;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.form__footer {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: flex-start;
}

.form__footer--with-turnstile {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.wa-turnstile-wrap {
  margin-bottom: 0.25rem;
}

.wa-turnstile-wrap .field__label {
  display: block;
  margin-bottom: 0.25rem;
}

.wa-turnstile-mount {
  min-height: 65px;
}

.wa-info-card {
  margin: 0;
}

.wa-info-card .tech-section__head {
  margin-bottom: 1rem;
}

.wa-info-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wa-field--cep {
  grid-column: 1 / -1;
  min-width: 0;
}

.wa-cep-inline {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.wa-cep-inline .field__input {
  flex: 1 1 auto;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__label--with-help {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.field__label small {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.wa-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--accent-tactical-bright);
  cursor: help;
}

.wa-help__icon {
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
}

.wa-help__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(16rem, 75vw);
  padding: 0.5rem 0.6rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-inverse);
  background: var(--bg-tooltip);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 2000;
}

/* Consulta (portal): cabeçalho em linha única + badge à direita */
.wa-consulta-hero__headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.wa-consulta-hero__headline-item {
  min-width: 10rem;
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wa-consulta-hero__headline-item--last {
  flex: 1 1 14rem;
}

.wa-consulta-hero__headline-last-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Desktop: forçar Protocolo | Produto | Última atualização | Status em 1 linha */
@media (min-width: 720px) {
  .wa-consulta-hero__headline {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .wa-consulta-hero__headline-item {
    min-width: 0;
  }

  .wa-consulta-hero__headline-item:nth-child(1) {
    flex: 0 0 11rem; /* Protocolo */
  }

  .wa-consulta-hero__headline-item:nth-child(2) {
    flex: 1 1 auto; /* Produto (cresce) */
  }

  .wa-consulta-hero__headline-item--last {
    flex: 0 0 22rem; /* Última atualização + status */
  }

  .wa-consulta-hero__headline-k {
    margin-bottom: 0.15rem;
  }

  .wa-consulta-hero__headline-v {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wa-consulta-hero__headline-last-row {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .wa-consulta-hero__headline-last-row .wa-consulta-hero__headline-v {
    margin-top: 0.25rem;
  }

  #screen-consulta .wa-consulta-hero__headline-last-row .wa-admin-badge {
    flex: 0 0 auto;
    margin-left: auto;
    margin-top: 0.25rem;
  }
}

.wa-consulta-hero__headline-k {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wa-consulta-hero__headline-v {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.wa-consulta-hero__headline-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Logística dentro do hero */
.wa-consulta-hero__logistics {
  width: 100%;
  min-width: 0;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-consulta-hero__logistics--destaque {
  border: 1px solid rgba(154, 139, 110, 0.35);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  background: rgba(154, 139, 110, 0.06);
  margin-top: 0.5rem;
}

.wa-consulta-hero__logistics-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 238, 255, 0.9);
  margin: 0 0 0.6rem;
}

.wa-consulta-logistics-cta {
  background: rgba(212, 168, 67, 0.15);
  border-left: 4px solid #d4a843;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #f0e0b0;
  line-height: 1.5;
}
.wa-consulta-logistics-cta strong {
  color: #d4a843;
}

/* Compactar boxes de código (reverso / rastreio) para ganhar espaço */
.wa-consulta-track-row {
  padding: 0.55rem 0.65rem;
  gap: 0.45rem 0.55rem;
}

.wa-consulta-track-row__code {
  font-size: 0.84rem;
}

.wa-consulta-copy-btn {
  padding: 0.3rem 0.5rem;
  font-size: 0.65rem;
}

.wa-consulta-correios-search-btn {
  width: 2.1rem;
  height: 2.1rem;
}

.wa-help:hover .wa-help__tooltip,
.wa-help:focus .wa-help__tooltip,
.wa-help:focus-within .wa-help__tooltip {
  opacity: 1;
  visibility: visible;
}

.field__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--input-bg);
  border: none;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--input-border);
  transition:
    background 0.15s ease,
    border-bottom-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field__textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--input-bg);
  border: none;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--input-border);
  resize: vertical;
  min-height: 5rem;
  transition:
    background 0.15s ease,
    border-bottom-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field__input:hover,
.field__textarea:hover {
  background: var(--bg-input-hover);
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  background: var(--bg-input-hover);
  border-bottom-color: var(--input-focus-border);
  box-shadow: 0 1px 0 0 var(--input-focus-border);
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: rgba(163, 163, 163, 0.45);
}

.field__input--date {
  color-scheme: dark;
}

.field__input[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 245, 245, 0.9);
}

.field__input--invalid {
  border-color: #d26c6c !important;
  box-shadow: 0 0 0 1px rgba(210, 108, 108, 0.18);
}

/* Selects: fundo chumbo + texto claro (inclui opções geradas via JS) */
.field__select {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--select-text);
  background-color: var(--select-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23c4b59a' stroke-width='1.5' d='M1 1.5 6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border-bottom-color: var(--border-bottom-idle);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.field__select:hover:not(:disabled) {
  background-color: var(--select-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.field__select:focus {
  outline: none;
  background-color: var(--select-bg-hover);
  border-color: var(--accent-tactical-bright);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
}

.field__select:focus-visible {
  outline: 2px solid var(--accent-tactical-bright);
  outline-offset: 2px;
  border-color: var(--accent-tactical-bright);
}

.field__select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.65);
}

/* Opções da lista nativa (suporte varia por SO/navegador; color-scheme ajuda no menu) */
.field__select option {
  background-color: var(--select-bg);
  color: var(--select-text);
  padding: 0.5rem 0.75rem;
}

.field__select option:hover,
.field__select option:focus {
  background-color: var(--select-option-hover);
  color: var(--select-text);
}

.field__select option:checked,
.field__select option:active {
  background-color: var(--select-option-hover);
  color: var(--select-text);
}

/* —— Seção técnica: identificação do defeito —— */
.tech-section {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tech-section__head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-section__title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.tech-section__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.tech-section__code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-tactical-bright);
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--accent-tactical-dim);
  border-radius: var(--radius);
}

.tech-section__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 12rem;
}

.tech-section__load-msg {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #e8a598;
  letter-spacing: 0.03em;
}

.wa-produtos-root[data-wa-root-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* —— Identificação do produto: blocos, linhas de defeito, ações —— */
.wa-produtos-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wa-produto-bloco {
  padding: 1.2rem 1.05rem 1.25rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.wa-produto-bloco__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.wa-produto-bloco__titulo {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-tactical-bright);
}

/* Linha 1: categoria + produto (input + datalist largo) */
.wa-row-cat-prod {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  min-width: 0;
}

/* Cor e tamanho (logo abaixo do produto) */
.wa-row-cor-tam {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 520px) {
  .wa-row-cor-tam {
    grid-template-columns: 1fr;
  }
}

.wa-field--cat {
  flex: 0 0 auto;
  max-width: 100%;
}

.wa-field--prod-wide {
  flex: 1 1 auto;
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

/* Shell: input ocupa 100% do espaço flex sem “vazar” do bloco */
.wa-produto-input-shell {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.wa-produto-input-shell--open {
  z-index: 25;
}

/* Lista custom: quebra de linha nos nomes longos (carteiras etc.); input permanece uma linha */
.wa-produto-sugestoes {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: min(40vh, 16rem);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--select-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

.wa-produto-sugestoes__item {
  margin: 0;
  padding: 0;
}

.wa-produto-sugestoes__opt {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
  color: var(--select-text);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.wa-produto-sugestoes__opt:hover,
.wa-produto-sugestoes__opt:focus-visible {
  outline: none;
  background: var(--select-option-hover);
  color: var(--text);
}

.wa-produto-sugestoes__opt--active,
.wa-produto-sugestoes__opt--active:hover {
  background: rgba(196, 181, 154, 0.18);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent-tactical-bright);
}

.wa-produto-sugestoes__empty {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
  font-style: italic;
}

/* Categoria alinhada ao campo produto (altura e tipografia da mesma linha) */
.wa-row-cat-prod .wa-field--cat .field__select {
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 0.55rem 2.4rem 0.55rem 0.65rem;
  min-height: 2.5rem;
  background-position: right 0.65rem center;
}

.field__input--prod-datalist {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.35;
  min-height: 2.5rem;
  color: var(--select-text);
  background-color: var(--select-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--border-bottom-idle);
  border-radius: var(--radius);
  color-scheme: dark;
  text-overflow: clip;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.field__input--prod-datalist:hover:not(:disabled) {
  background-color: var(--select-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.field__input--prod-datalist:focus {
  background-color: var(--select-bg-hover);
  border-color: var(--accent-tactical-bright);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
}

.field__input--prod-datalist:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* <datalist> mantido vazio no DOM (sem atributo list no input): lista visível é .wa-produto-sugestoes */
datalist.js-wa-produto-datalist {
  display: none;
}

@media (min-width: 640px) {
  .wa-row-cat-prod {
    flex-direction: row;
    align-items: flex-end;
    gap: 1rem 1.25rem;
  }

  .wa-field--cat {
    flex: 0 0 12.5rem;
    max-width: 14rem;
  }

  .wa-field--prod-wide {
    flex: 1 1 0;
    min-width: 0;
  }

  .wa-produto-input-shell {
    min-width: 0;
  }
}

.wa-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.field__label--fieldset {
  padding: 0;
  margin: 0 0 0.4rem;
}

.wa-local-fieldset {
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.wa-local-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wa-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.wa-radio-pill:hover {
  border-color: var(--accent-tactical);
  color: var(--text);
}

.wa-radio-pill input {
  margin: 0;
  width: 0.85rem;
  height: 0.85rem;
  accent-color: var(--accent-tactical-bright);
  cursor: pointer;
}

.wa-radio-pill:has(input:checked) {
  border-color: var(--accent-tactical-bright);
  background: rgba(154, 139, 110, 0.12);
  color: var(--text);
}

/* Linha 2+: parte + localização + toolbar (obs + lixeira à direita) */
.wa-defeito-linha {
  padding: 0.95rem 0.95rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

/* Coluna: campos em cima, toolbar em baixo — evita empurrar localização para fora da área visível */
.wa-defeito-linha__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.wa-defeito-linha__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.wa-field--inline-parte {
  flex: 1 1 12rem;
  min-width: 0;
}

.wa-field--inline-loc {
  flex: 1 1 10rem;
  min-width: 0;
  margin: 0;
}

.wa-field--defeito-fotos {
  width: 100%;
}

.wa-foto-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.wa-foto-slot {
  position: relative;
  min-height: 7rem;
  padding: 0.8rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.18));
  border: 1px dashed rgba(196, 181, 154, 0.28);
  border-radius: var(--radius);
  cursor: default;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.wa-foto-slot:hover,
.wa-foto-slot:focus-within {
  border-color: var(--accent-tactical);
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
  transform: translateY(-1px);
}

.wa-foto-slot > .file-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.wa-foto-slot--required {
  border-color: rgba(196, 181, 154, 0.42);
}

.wa-foto-slot__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 154, 0.32);
  color: var(--accent-tactical-bright);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.wa-foto-slot__text {
  font-size: 0.78rem;
  color: var(--text);
}

.wa-foto-slot__hint {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wa-foto-slot__actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.wa-foto-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.1rem;
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(196, 181, 154, 0.28);
  background: rgba(0, 0, 0, 0.14);
  color: var(--accent-tactical-bright);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.wa-foto-act:hover,
.wa-foto-act:focus-visible {
  outline: none;
  border-color: var(--accent-tactical);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
  transform: translateY(-1px);
}

.wa-foto-act .wa-foto-slot__icon {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.35rem;
}

.wa-foto-act--camera {
  font-size: 1.35rem;
}

.wa-foto-slot__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem 0.1rem;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.wa-camera-stage {
  margin-top: 0.75rem;
}

.wa-camera-video {
  width: 100%;
  max-height: min(60dvh, 26rem);
  border-radius: calc(var(--radius) - 4px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wa-camera-modal .wa-modal__actions {
  margin-top: 0.85rem;
}

.wa-preview-stage {
  margin-top: 0.75rem;
}

.wa-preview-img,
.wa-preview-frame {
  width: 100%;
  max-height: min(65dvh, 32rem);
  border-radius: calc(var(--radius) - 4px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wa-preview-frame {
  height: min(65dvh, 32rem);
}

.wa-foto-slot__info {
  cursor: pointer;
}

.wa-foto-slot__info:hover,
.wa-foto-slot__info:focus-visible {
  outline: none;
  border-color: var(--accent-tactical);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
}

.wa-defeito-linha__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
  width: 100%;
  margin-top: 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-link-obs {
  margin: 0;
  padding: 0.25rem 0;
  max-width: 100%;
  text-align: right;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-tactical-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.wa-link-obs:hover {
  color: var(--text);
}

.wa-link-obs:focus-visible {
  outline: 2px solid var(--accent-tactical-bright);
  outline-offset: 2px;
}

.wa-defeito-obs-wrap {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
}

.wa-obs-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__textarea--obs-defeito {
  min-height: 3.5rem;
  font-size: 0.875rem;
  resize: vertical;
}

@media (min-width: 640px) {
  .wa-defeito-linha__fields {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
  }

  .wa-defeito-linha__toolbar {
    justify-content: flex-end;
  }
}

.wa-defeitos {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
}

.wa-defeitos__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.wa-defeitos__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wa-defeitos__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wa-defeitos__list .wa-defeito-linha {
  margin-bottom: 0;
}

.wa-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.wa-icon-btn:hover:not([hidden]) {
  color: var(--accent-tactical-bright);
  border-color: var(--accent-tactical);
  background: rgba(154, 139, 110, 0.08);
}

.wa-icon-btn:focus-visible {
  outline: 2px solid var(--accent-tactical-bright);
  outline-offset: 2px;
}

.wa-icon-btn[hidden] {
  display: none !important;
}

.wa-icon-svg {
  width: 1.125rem;
  height: 1.125rem;
}

.wa-icon-svg--sm {
  width: 0.875rem;
  height: 0.875rem;
}

.wa-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-tactical-bright);
  background: rgba(154, 139, 110, 0.1);
  border: 1px solid var(--accent-tactical-dim);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.wa-chip-btn:hover {
  background: rgba(154, 139, 110, 0.18);
  border-color: var(--accent-tactical);
  color: var(--text);
}

.wa-chip-btn:focus-visible {
  outline: 2px solid var(--accent-tactical-bright);
  outline-offset: 2px;
}

.wa-chip-btn--outline {
  margin-top: 1rem;
  width: 100%;
  background: transparent;
}

.wa-chip-btn--outline:hover {
  background: rgba(154, 139, 110, 0.08);
}

.field__error {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #e8a598;
  letter-spacing: 0.04em;
}

/* File */
.field--file .field__label {
  margin-bottom: 0.1rem;
}

.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--accent-tactical);
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 0 0 1px var(--accent-tactical-dim);
}

.file-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop__text {
  font-size: 0.8125rem;
  color: var(--text);
  text-align: center;
}

.file-drop__hint {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wa-destino-box {
  margin: 0;
  padding: 0;
  border: none;
}

#wa-destinatario-wrap {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#wa-destinatario-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#wa-local-compra-outros-wrap {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

#wa-local-compra-outros-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.wa-modal-overlay[hidden] {
  display: none !important;
}

.wa-modal {
  width: min(32rem, 100%);
  max-height: min(90dvh, 42rem);
  overflow: auto;
  padding: 1.25rem 1.1rem;
  background: var(--bg-modal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  position: relative;
}

.wa-modal--avaliacao {
  width: min(44rem, 100%);
}

.wa-modal__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.wa-modal__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.wa-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wa-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.wa-modal__close:hover,
.wa-modal__close:focus-visible {
  outline: none;
  border-color: var(--accent-tactical-bright);
  color: var(--accent-tactical-bright);
}

.wa-avaliacao-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.wa-avaliacao-criterio {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.wa-avaliacao-criterio__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.wa-avaliacao-criterio__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.wa-avaliacao-stars {
  display: inline-flex;
  gap: 0.2rem;
}

.wa-avaliacao-star {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.22);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.wa-avaliacao-star.is-active {
  color: #d4af37;
}

.wa-avaliacao-error {
  margin: 0;
  font-size: 0.78rem;
  color: #ff8c8c;
}

.wa-modal__actions--split {
  justify-content: space-between;
  gap: 0.75rem;
}

.wa-recognized-address-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wa-recognized-address-option {
  width: 100%;
  text-align: left;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.wa-recognized-address-option.is-active {
  border-color: rgba(196, 181, 154, 0.34);
  background: rgba(196, 181, 154, 0.08);
}

.wa-recognized-address-option__meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Desktop: duas colunas */
@media (min-width: 640px) {
  .wa-header__logo {
    max-height: 3rem;
    max-width: min(340px, 70vw);
  }

  .wa-header__title {
    font-size: 0.98rem;
  }

  .form__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field--full {
    grid-column: 1 / -1;
  }

  .field--address-street {
    grid-column: 1 / -1;
  }

  .wa-info-card__grid--solicitante {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-info-card__grid--compra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-info-card__grid--endereco {
    grid-template-columns: repeat(20, minmax(0, 1fr));
    align-items: end;
  }

  .wa-info-card__grid--endereco .wa-field--cep {
    grid-column: span 4;
    min-width: 0;
  }

  .wa-info-card__grid--endereco .field--address-street {
    grid-column: span 13;
  }

  .wa-info-card__grid--endereco .wa-field--address-numero {
    grid-column: span 3;
  }

  .wa-info-card__grid--endereco .wa-field--address-complemento {
    grid-column: span 10;
  }

  /* Bairro e cidade em colunas próprias (linha dedicada após complemento) */
  .wa-info-card__grid--endereco .wa-field--address-bairro {
    grid-column: span 10;
  }

  .wa-info-card__grid--endereco .wa-field--address-cidade {
    grid-column: span 14;
  }

  .wa-info-card__grid--endereco .wa-field--address-uf {
    grid-column: span 6;
  }

  .actions {
    max-width: 24rem;
  }

  #screen-consulta .view__inner--consulta {
    max-width: none;
  }
}

/* —— Consulta do cliente (status) —— */
.wa-consulta-result {
  margin-top: 1rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 20px;
  width: 95vw;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wa-consulta-result__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.wa-consulta-result__title {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.wa-consulta-result__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Abas horizontais (mobile, múltiplos chamados) — desktop permanece com lista lateral */
.wa-consulta-mobile-tabs {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.65), rgba(10, 10, 12, 0.2));
}

.wa-consulta-mobile-tabs:focus-within {
  outline: none;
}

.wa-consulta-mobile-tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(230, 230, 235, 0.72);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.wa-consulta-mobile-tab:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(245, 245, 250, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

.wa-consulta-mobile-tab.is-active {
  border-color: rgba(143, 179, 217, 0.55);
  background: rgba(143, 179, 217, 0.14);
  color: #e8f0ff;
  box-shadow: 0 0 0 1px rgba(143, 179, 217, 0.12);
}

.wa-consulta-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  min-height: 28rem;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.wa-consulta-sidebar {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  min-height: 0;
  min-width: 0;
}

.wa-consulta-sidebar__list {
  max-height: 42rem;
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.wa-consulta-list-card {
  width: 100%;
  text-align: left;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  min-height: 140px;
  margin-bottom: 15px;
}

.wa-consulta-list-card.is-selected {
  background: var(--bg-elevated-hover);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wa-consulta-list-card--attention {
  border-left-color: #d7b84c;
}

.wa-consulta-list-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.wa-consulta-list-card__top > div:first-child {
  min-width: 0;
  width: 100%;
}

.wa-consulta-list-card__text {
  min-width: 0;
  flex: 1;
}

.wa-consulta-list-card__id {
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.wa-consulta-list-card__produto {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.9);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.45;
}

.wa-consulta-list-card__flag {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f0d27a;
  font-size: 0.72rem;
  font-weight: 700;
  padding-left: 0;
}

.wa-consulta-detail {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
  padding: 25px;
  width: 100%;
  min-width: 0;
}

.wa-consulta-detail__empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Pilha de cards — consulta do cliente (mobile first) */
.wa-consulta-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* Hero card — identificação + mensagem (consulta CX) */
#screen-consulta .card-hero {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.22));
  border-left: 3px solid rgba(215, 184, 76, 0.45);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Mensagem da equipe (Campo 1) — destaque no topo da consulta */
#screen-consulta .wa-consulta-equipa-destaque {
  flex: 1 1 100%;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.65));
  box-sizing: border-box;
}

#screen-consulta .wa-consulta-equipa-destaque__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: 0.35rem;
}

#screen-consulta .wa-consulta-equipa-destaque__text {
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.96);
  overflow-wrap: break-word;
  word-break: break-word;
}

#screen-consulta .wa-consulta-hero__row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

#screen-consulta .wa-consulta-hero__col--meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(245, 245, 245, 0.55);
  min-width: 0;
}

#screen-consulta .wa-consulta-hero__meta-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.42);
  margin-top: 0.35rem;
}

#screen-consulta .wa-consulta-hero__meta-label:first-child {
  margin-top: 0;
}

#screen-consulta .wa-consulta-hero__meta-protocol {
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  color: rgba(245, 245, 245, 0.72);
  word-break: break-word;
  margin-top: -0.15rem;
}

#screen-consulta .wa-consulta-hero__meta-product {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.68);
  line-height: 1.45;
  word-break: break-word;
  margin-top: -0.15rem;
}

#screen-consulta .wa-consulta-hero__meta-upd {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.52);
  margin-top: -0.15rem;
}

#screen-consulta .wa-consulta-hero__badge {
  margin-top: 0.35rem;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.6rem !important;
  align-self: flex-start;
}

/* Destaque — cliente deve postar nos Correios (status aguardando envio) */
#screen-consulta .wa-consulta-aguardando-destaque {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(30, 28, 24, 0.95));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

#screen-consulta .wa-consulta-aguardando-destaque__title {
  font-size: 1rem;
  font-weight: 750;
  color: #f5f0e6;
  line-height: 1.35;
}

#screen-consulta .wa-consulta-aguardando-destaque__sub {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.72);
}

#screen-consulta .wa-consulta-aguardando-destaque__codebox {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#screen-consulta .wa-consulta-aguardando-destaque__codelab {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.35rem;
}

#screen-consulta .wa-consulta-aguardando-destaque__codeval {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  word-break: break-all;
}

#screen-consulta .wa-consulta-aguardando-destaque__prazo {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #e8c547;
}

/* Parecer técnico — fases finais com laudo */
#screen-consulta .wa-consulta-parecer-tecnico {
  margin-bottom: 1rem;
  border: 1px solid rgba(154, 139, 110, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

#screen-consulta .wa-consulta-parecer-tecnico__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #d4af37;
  letter-spacing: 0.02em;
}

#screen-consulta .wa-consulta-parecer-tecnico__body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(248, 248, 248, 0.92);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

#screen-consulta .wa-consulta-hero__col--msg {
  display: flex;
  align-items: center;
  justify-content: stretch;
  min-width: 0;
  flex: 1;
}

#screen-consulta .card-hero .mensagem-box {
  width: 100%;
  box-sizing: border-box;
  padding: 1.35rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#screen-consulta .wa-consulta-hero__msg-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.55rem;
}

#screen-consulta .wa-consulta-hero__msg-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 550;
  line-height: 1.58;
  color: rgba(248, 248, 248, 0.96);
  overflow-wrap: break-word;
  word-break: break-word;
}

#screen-consulta .wa-consulta-hero__msg-text--placeholder {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.58);
}

@media (max-width: 768px) {
  #screen-consulta .card-hero {
    flex-direction: column;
  }

  #screen-consulta .wa-consulta-hero__col--msg {
    order: -1;
    align-items: stretch;
  }

  #screen-consulta .wa-consulta-hero__col--meta {
    order: 1;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  #screen-consulta .card-hero .mensagem-box {
    padding: 1.15rem 1.2rem;
  }
}

/* Consulta — mobile: evita rolagem horizontal e reduz tipografia */
@media (max-width: 768px) {
  #screen-consulta.view {
    overflow-x: hidden;
  }

  #screen-consulta .view__inner--consulta {
    overflow-x: hidden;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .wa-consulta-result {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }

  #screen-consulta .wa-consulta-hero__msg-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #screen-consulta .wa-consulta-hero__msg-text--placeholder {
    font-size: 0.88rem;
  }

  .wa-consulta-timeline__label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .wa-consulta-timeline__text {
    font-size: 0.72rem;
  }

  .wa-consulta-timeline__icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.72rem;
  }

  .wa-consulta-correios-card__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .wa-consulta-correios-card {
    padding: 0.8rem 0.75rem;
  }

  .wa-consulta-list-card__top .wa-admin-badge {
    font-size: 0.58rem !important;
    padding: 0.2rem 0.35rem !important;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
  }

  .wa-consulta-track-row {
    padding: 0.55rem 0.6rem;
  }

  .wa-consulta-track-row__code {
    font-size: 0.78rem;
  }

  .wa-consulta-logistics-intro {
    font-size: 0.76rem;
  }
}

@media (min-width: 769px) {
  #screen-consulta .card-hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.35rem;
    padding: 1.15rem 1.35rem;
  }

  #screen-consulta .wa-consulta-hero__row {
    flex-direction: row;
    flex: 1 1 auto;
    gap: 1.35rem;
    align-items: stretch;
    min-width: 0;
  }

  #screen-consulta .wa-consulta-hero__col--meta {
    flex: 0 0 30%;
    max-width: 32%;
    padding-right: 0.5rem;
  }

  #screen-consulta .wa-consulta-hero__col--msg {
    flex: 1;
    min-width: 0;
  }
}

/* Logística: texto intro + par reverso | rastreio (lado a lado no desktop) */
.wa-consulta-logistics-intro {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(223, 238, 255, 0.92);
  word-break: break-word;
  overflow-wrap: break-word;
}

.wa-consulta-logistics-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .wa-consulta-logistics-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    align-items: start;
  }
}

.wa-consulta-logistics-pair__col {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wa-consulta-logistics-instructions {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 179, 217, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

.wa-consulta-logistics-instructions__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.88);
  white-space: normal;
  word-break: break-word;
}

.wa-consulta-logistics-instructions__img {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-top: 0.65rem;
  object-fit: contain;
  border-radius: calc(var(--radius) * 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.wa-consulta-rastreio-field {
  min-width: 0;
}

.wa-consulta-rastreio-sub {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
  word-break: break-word;
}

.wa-consulta-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 480px) {
  .wa-consulta-input-group {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }

  .wa-consulta-input-group__input {
    flex: 1;
    min-width: 0;
  }

  .wa-consulta-input-group__btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.wa-consulta-rastreio-hint {
  margin: 0.5rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #7dffb3;
  word-break: break-word;
}

.wa-consulta-logistics-placeholder {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

/* Badges alinhados ao painel admin (mesmas cores) */
#screen-consulta .wa-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

#screen-consulta .wa-admin-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

#screen-consulta .wa-admin-badge--triagem {
  color: #ffb36b;
  background: rgba(255, 140, 66, 0.14);
  border-color: rgba(255, 140, 66, 0.28);
}

#screen-consulta .wa-admin-badge--analise {
  color: #d7b84c;
  background: rgba(215, 184, 76, 0.12);
}

#screen-consulta .wa-admin-badge--manutencao {
  color: #b58a3f;
  background: rgba(181, 138, 63, 0.12);
}

#screen-consulta .wa-admin-badge--expedicao {
  color: #8fb3d9;
  background: rgba(143, 179, 217, 0.12);
}

#screen-consulta .wa-admin-badge--resolvido {
  color: #7dffb3;
  background: rgba(46, 160, 67, 0.18);
  border-color: rgba(46, 160, 67, 0.35);
}

#screen-consulta .wa-admin-badge--cancelado {
  color: var(--badge-danger-text, #fecaca);
  background: var(--badge-danger-bg, rgba(220, 53, 69, 0.22));
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.wa-consulta-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.05rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.wa-consulta-card--logistics {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(143, 179, 217, 0.2);
}

.wa-consulta-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(191, 214, 240, 0.95);
}

.wa-consulta-card__alert {
  margin-bottom: 0.75rem;
}

.wa-consulta-card__alert:last-of-type {
  margin-bottom: 0;
}

.wa-consulta-card__cta {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.wa-consulta-card__subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.wa-consulta-card__subsection-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
  margin-bottom: 0.65rem;
}

.wa-consulta-card__subsection .wa-consulta-timeline {
  margin-top: 0;
}

.wa-consulta-card__subsection--correios .wa-consulta-correios-card {
  margin-top: 0;
}

.wa-consulta-reverse-note {
  font-size: 0.76rem;
  color: rgba(223, 238, 255, 0.85);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.4;
}

.wa-consulta-track-block {
  margin-bottom: 0.75rem;
}

.wa-consulta-track-block:last-of-type {
  margin-bottom: 0;
}

.wa-consulta-track-block__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(191, 214, 240, 0.88);
}

.wa-consulta-track-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 179, 217, 0.28);
  background: rgba(143, 179, 217, 0.1);
}

.wa-consulta-track-row__code {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dfeeff;
  word-break: break-all;
}

.wa-consulta-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 179, 217, 0.45);
  background: rgba(143, 179, 217, 0.12);
  color: #b8d4f0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

.wa-consulta-copy-btn:hover {
  background: rgba(143, 179, 217, 0.22);
}

.wa-consulta-copy-btn__icon {
  display: block;
  opacity: 0.95;
}

.wa-consulta-correios-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(143, 179, 217, 0.45);
  background: rgba(143, 179, 217, 0.14);
  color: #b8d4f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wa-consulta-correios-search-btn:hover:not([disabled]) {
  background: rgba(143, 179, 217, 0.24);
  border-color: rgba(143, 179, 217, 0.65);
}

.wa-consulta-correios-search-btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.wa-consulta-correios-search-btn--input {
  align-self: stretch;
}

.wa-consulta-correios-inline-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(200, 220, 245, 0.92);
  word-break: break-word;
}

.wa-consulta-card--accordion {
  padding: 0;
  overflow: hidden;
}

.wa-consulta-card--accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  user-select: none;
}

.wa-consulta-card--accordion > summary::-webkit-details-marker {
  display: none;
}

.wa-consulta-card--accordion > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(245, 245, 245, 0.55);
  border-bottom: 2px solid rgba(245, 245, 245, 0.55);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.wa-consulta-card--accordion[open] > summary::after {
  transform: rotate(-135deg);
}

.wa-consulta-accordion__body {
  padding: 0 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wa-consulta-detail-field__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
  margin-bottom: 0.35rem;
}

.wa-consulta-detail-field__value {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.92);
  word-break: break-word;
}

.wa-consulta-detail-field__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.88);
}

.wa-consulta-detail-field__list--compact {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wa-consulta-detail-fotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.wa-consulta-detail-fotos__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.wa-consulta-accordion__avaliacao .wa-consulta-feedback-card {
  margin-top: 0;
}

.wa-consulta-item {
  padding: 0;
  border: 0;
  background: transparent;
  margin-bottom: 0;
}

.wa-consulta-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.wa-consulta-item__top > div:first-child {
  min-width: 0;
  width: auto;
  flex: 1;
}

.wa-consulta-item__id {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  white-space: normal;
}

.wa-consulta-item__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.wa-consulta-item__name {
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 0.65rem;
  width: 100%;
  max-width: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.wa-consulta-item__produto {
  font-size: 0.8125rem;
  color: rgba(245, 245, 245, 0.9);
  width: 100%;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin-bottom: 0.35rem;
}

.wa-consulta-timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.wa-consulta-timeline__item {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.7rem;
  align-items: start;
  opacity: 0.72;
}

.wa-consulta-timeline__item.is-done,
.wa-consulta-timeline__item.is-current {
  opacity: 1;
}

.wa-consulta-timeline__item.is-pending {
  opacity: 0.55;
}

.wa-consulta-hero__badge--dynamic {
  font-weight: 700;
}

.wa-consulta-timeline__icon {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
}

.wa-consulta-timeline__content {
  min-width: 0;
}

.wa-consulta-timeline__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.wa-consulta-timeline__text {
  margin-top: 0.2rem;
  font-size: 0.77rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.8);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.wa-consulta-timeline__when {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.95);
  letter-spacing: 0.02em;
}

.wa-consulta-ultima-atualizacao {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.88);
}

.wa-consulta-team-bubble {
  margin: 0.65rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(38, 42, 48, 0.98), rgba(28, 30, 34, 0.99));
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wa-consulta-team-bubble__kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.4rem;
}

.wa-consulta-team-bubble__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.92);
  overflow-wrap: break-word;
  word-break: break-word;
}

.wa-consulta-item__tracking--retorno {
  margin-top: 0.5rem;
  border-color: rgba(212, 175, 55, 0.25);
}

/* Timeline: laranja pendente, azul transporte, âmbar manutenção, verde concluído (alinhado ao admin) */
.wa-consulta-timeline__item--pending .wa-consulta-timeline__icon {
  color: #ffb36b;
  background: rgba(255, 140, 66, 0.14);
}

.wa-consulta-timeline__item--transport .wa-consulta-timeline__icon {
  color: #8fb3d9;
  background: rgba(143, 179, 217, 0.14);
}

.wa-consulta-timeline__item--wolf .wa-consulta-timeline__icon {
  color: #8fb3d9;
  background: rgba(143, 179, 217, 0.12);
}

.wa-consulta-timeline__item--manutencao .wa-consulta-timeline__icon {
  color: #b58a3f;
  background: rgba(181, 138, 63, 0.14);
}

.wa-consulta-timeline__item--done .wa-consulta-timeline__icon {
  color: #7dffb3;
  background: rgba(46, 160, 67, 0.18);
}

.wa-consulta-timeline__item--cancelled .wa-consulta-timeline__icon {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.55);
}

.wa-consulta-item__hist {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.wa-consulta-item__hist-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.wa-consulta-item__hist-list {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: disc;
}

.wa-consulta-item__hist-li {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.82);
  margin-bottom: 0.3rem;
}

.wa-consulta-item__hist-li:last-child {
  margin-bottom: 0;
}

.wa-consulta-detail__cta {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.wa-consulta-detail__cta .btn {
  box-shadow: 0 0 0 1px rgba(215, 184, 76, 0.2), 0 0 18px rgba(215, 184, 76, 0.12);
}

.wa-consulta-item__alerta {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(215, 184, 76, 0.35);
  background: rgba(215, 184, 76, 0.1);
  border-radius: var(--radius);
}

.wa-consulta-item__alerta--expired {
  border-color: rgba(224, 75, 75, 0.35);
  background: rgba(224, 75, 75, 0.12);
}

.wa-consulta-item__alerta-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: transparent;
  border: 0;
  color: #f0d27a;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.wa-consulta-item__alerta-icon {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.wa-consulta-item__alerta-texto {
  font-size: 0.78rem;
  font-weight: 700;
}

.wa-consulta-item__tracking {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(143, 179, 217, 0.28);
  border-radius: var(--radius);
  background: rgba(143, 179, 217, 0.12);
}

.wa-consulta-item__tracking-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(191, 214, 240, 0.92);
}

.wa-consulta-item__tracking-code {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dfeeff;
}

.wa-consulta-correios-card {
  margin-top: 0.9rem;
  padding: 0.95rem;
  border: 1px solid rgba(143, 179, 217, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(143, 179, 217, 0.1), rgba(0, 0, 0, 0.2));
}

.wa-consulta-correios-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wa-consulta-correios-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #8fb3d9;
}

.wa-consulta-correios-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.wa-consulta-correios-card__title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8d4f0;
  word-break: break-word;
  white-space: normal;
}

.wa-consulta-correios-card__subtitle {
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.72);
  word-break: break-word;
  white-space: normal;
}

.wa-consulta-correios-card__status {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f5f5f5;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
}

.wa-consulta-correios-card__meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(223, 238, 255, 0.9);
  word-break: break-word;
  white-space: normal;
}

.wa-consulta-feedback-card {
  margin-top: 0.9rem;
  padding: 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.wa-consulta-feedback-card__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d27a;
  margin-bottom: 0.55rem;
}

.wa-consulta-feedback-card__text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .app__main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wa-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wa-header__title-wrap {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .wa-header__title {
    text-align: left;
    font-size: 0.76rem;
  }

  .wa-consulta-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  /* Com vários protocolos: abas no topo; lista lateral oculta para reduzir rolagem */
  .wa-consulta-result--multi .wa-consulta-mobile-tabs:not([hidden]) {
    display: flex;
  }

  .wa-consulta-result--multi .wa-consulta-sidebar {
    display: none;
  }

  .wa-consulta-sidebar {
    min-width: 0;
  }

  .wa-consulta-sidebar__list {
    max-height: none;
  }

  #screen-consulta .view__inner--consulta {
    padding: 0;
  }

  .wa-consulta-result {
    width: 100%;
    padding: 16px;
  }

  .wa-consulta-result__head,
  .wa-consulta-list-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-avaliacao-criterio__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-consulta-list-card,
  .wa-consulta-detail {
    padding: 14px;
  }

  .wa-consulta-card {
    padding: 0.85rem 0.9rem;
  }

  .wa-consulta-list-card__top .wa-admin-badge {
    max-width: 100%;
    justify-content: flex-start;
  }

  .wa-modal {
    width: 100%;
    max-height: min(92dvh, 100%);
    padding: 1rem 0.9rem;
  }

  .wa-modal__actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  #screen-consulta .view__inner--consulta {
    padding: 0 12px;
  }

  .wa-consulta-result {
    width: 100%;
    padding: 14px;
  }

  .wa-consulta-layout {
    gap: 0.85rem;
    min-height: 0;
  }

  .wa-consulta-sidebar__list {
    padding: 0.75rem;
  }

  .wa-consulta-list-card {
    min-height: 0;
    margin-bottom: 0;
    padding: 12px;
  }

  .wa-consulta-card {
    padding: 0.75rem 0.8rem;
  }

  #screen-consulta .card-hero {
    padding: 0.85rem 0.85rem;
  }

  .wa-foto-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .app__main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wa-header__support {
    width: 2.5rem;
    height: 2.5rem;
  }

  .wa-consulta-detail-fotos {
    grid-template-columns: 1fr;
  }

  .wa-foto-slots {
    grid-template-columns: 1fr;
  }

  .wa-modal__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

.wa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.wa-status-pill--nova {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
}
.wa-status-pill--analise {
  color: #d7b84c;
  background: rgba(215, 184, 76, 0.12);
}
.wa-status-pill--iniciada {
  color: #b58a3f;
  background: rgba(181, 138, 63, 0.12);
}
.wa-status-pill--aguardando_envio {
  color: #e04b4b;
  background: rgba(224, 75, 75, 0.12);
}
.wa-status-pill--concluido {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
}

/* Toasts do portal público (app.js) */
.wa-portal-toast-root {
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(92vw, 28rem);
  pointer-events: none;
}

.wa-portal-toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: wa-toast-in 0.22s ease-out;
}

.wa-portal-toast--info {
  background: #1e3a2f;
  color: #e8f5e9;
  border-color: rgba(76, 175, 80, 0.35);
}

.wa-portal-toast--error {
  background: #3a1e1e;
  color: #ffcdd2;
  border-color: rgba(244, 67, 54, 0.35);
}

@keyframes wa-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-modal__alert {
  margin-top: 0.75rem;
  text-align: left;
}

.alert-success {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(76, 175, 80, 0.14);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #c8e6c9;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wa-nav-busy {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.35rem;
  vertical-align: -0.1em;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: wa-spin 0.7s linear infinite;
}

@keyframes wa-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Barra de progresso do formulário público */
.wa-progress-bar {
  margin-bottom: 1.2rem;
}

.wa-progress-bar__track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.wa-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #c4b59a, #d4af37);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.wa-progress-bar__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.wa-progress-step {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}

.wa-progress-step.is-active {
  color: #d4af37;
}

.wa-progress-step.is-done {
  color: rgba(255,255,255,0.7);
}

/* Validação inline */
.field__input.is-invalid {
  border-color: #ef4444 !important;
}

.field__input.is-valid {
  border-color: rgba(34,197,94,0.5) !important;
}
