/* ============================================================================
 * Rastreio público das encomendas (vendra.clarus.ao/rastreio)
 * ============================================================================ */
.rs { padding: 32px 0 56px; }
.rs-largura { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.rs-topo h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.rs-topo p { margin: 0; color: var(--tinta-2); line-height: 1.55; }

.rs-procurar { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 16px; }
.rs-rotulo { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.rs-linha { display: flex; gap: 8px; }
.rs-linha input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid #CFCCC1; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--branco); color: var(--tinta);
}
.rs-linha input:focus { outline: 3px solid var(--menta); outline-offset: 1px; border-color: var(--esmeralda); }
.rs-linha .botao { flex: 0 0 auto; min-height: 48px; }
.rs-erro { margin: 10px 0 0; color: #A12A2A; font-weight: 600; font-size: 14px; }

.rs-cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 20px; }
.rs-cartao h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }

.rs-loja { display: flex; gap: 12px; align-items: center; }
.rs-loja small { display: block; font-size: 12px; color: var(--tinta-2); }
.rs-loja a { color: var(--tinta); text-decoration: none; }
.rs-loja a:hover strong { text-decoration: underline; }
.rs-loja-logo {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #E3F1EA; color: var(--esmeralda); font-weight: 800;
}
.rs-loja-logo img { width: 100%; height: 100%; object-fit: cover; }

.rs-estado { display: inline-block; margin: 16px 0 4px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.rs-estado.is-verde { background: #E3F1EA; color: #0B6B4B; }
.rs-estado.is-azul { background: #E1ECF8; color: #1D4F8C; }
.rs-estado.is-ambar { background: #FBEBD2; color: #8A4B08; }
.rs-estado.is-vermelho { background: #F8E1E1; color: #A12A2A; }

.rs-passos { list-style: none; margin: 16px 0 0; padding: 0; }
.rs-passos li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.rs-passos li:last-child { padding-bottom: 0; }
.rs-passos li:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--linha);
}
.rs-passos li.is-feito:not(:last-child)::before { background: var(--esmeralda); }
.rs-ponto { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid #CFCCC1; background: var(--branco); }
.rs-passos li.is-feito .rs-ponto { border-color: var(--esmeralda); background: var(--esmeralda); }
.rs-passos li.is-atual .rs-ponto { border-color: #B45309; box-shadow: 0 0 0 4px #F5D9B3; }
.rs-passos strong { display: block; font-size: 15px; }
.rs-passos li:not(.is-feito):not(.is-atual) strong { color: var(--tinta-2); font-weight: 600; }
.rs-passos small { color: var(--tinta-2); font-size: 13px; }

.rs-dados { margin: 0; display: grid; gap: 10px; }
.rs-dados div { display: grid; gap: 2px; }
.rs-dados dt { font-size: 12px; color: var(--tinta-2); font-weight: 600; }
.rs-dados dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.rs-dados a { color: var(--esmeralda); }

.rs-itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.rs-itens li { display: flex; justify-content: space-between; gap: 12px; }
.rs-itens li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rs-itens li span:last-child { flex: 0 0 auto; font-weight: 700; }
.rs-total { padding-top: 8px; border-top: 1px solid var(--linha); font-weight: 800; }

.rs-nota { margin: 12px 0 0; color: var(--tinta-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rs-botao { margin-top: 14px; width: 100%; justify-content: center; }
.rs-privado { margin: 0; padding: 14px 16px; border-radius: 12px; background: #EEF4F0; color: var(--tinta-2); font-size: 14px; line-height: 1.5; }
.rs-rodape { margin: 8px 0 0; color: var(--tinta-2); font-size: 14px; }
.rs-rodape a { color: var(--esmeralda); font-weight: 700; }

@media (max-width: 420px) {
  .rs-linha { flex-direction: column; }
  .rs-cartao { padding: 16px; }
}

/* ---------------------------------------------------------------- Denunciar uma loja */
.rs-form { display: flex; flex-direction: column; gap: 8px; }
.rs-form .rs-rotulo { margin-top: 8px; margin-bottom: 0; }
.rs-input {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1px solid #CFCCC1; border-radius: 12px;
  font: inherit; font-size: 16px; background: var(--branco); color: var(--tinta);
}
textarea.rs-input { min-height: 140px; resize: vertical; line-height: 1.5; }
.rs-input:focus { outline: 3px solid var(--menta); outline-offset: 1px; border-color: var(--esmeralda); }
.rs-grupo { margin: 12px 0 0; padding: 12px 14px 14px; border: 1px solid var(--linha); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.rs-grupo legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--tinta-2); }
.rs-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.45; }
.rs-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.rs-isca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rs-form .rs-erro { margin: 0 0 4px; }

/* Avaliar os produtos (encomenda entregue) */
.rs-avaliar { display: grid; gap: 12px; }
.rs-aval-item { margin: 0; padding: 12px 14px; border: 1px solid #E4E2DA; border-radius: 14px; display: grid; gap: 8px; }
.rs-aval-item legend { padding: 0 4px; font-weight: 700; }
.rs-estrelas { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rs-estrelas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rs-estrelas label { cursor: pointer; font-size: 30px; line-height: 1; color: #D6D3C8; padding: 2px; }
.rs-estrelas input:checked ~ label, .rs-estrelas label:hover, .rs-estrelas label:hover ~ label { color: #E0A100; }
.rs-estrelas input:focus-visible + label { outline: 2px solid #0B6B4B; border-radius: 6px; }
.rs-avaliar textarea, .rs-avaliar input[type="text"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #D6D3C8; border-radius: 10px; font: inherit; }
.rs-so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-ok { margin: 0; padding: 10px 12px; border-radius: 10px; background: #E3F1EA; color: #0B6B4B; font-weight: 600; }
