/* Local Request — janela "Localizar uma peça" criada por js/local-request.js (modo data-janela="criar").
   Visual igual ao modelo aprovado da LD (29/11/2026): cartão branco no lado direito da tela, centralizado na vertical.
   Cores: ajuste as variáveis abaixo para cada site. */
:root {
  --lm-lr-destaque: #0891b2;     /* barra de progresso e campo em foco */
  --lm-lr-sub: #0e7490;          /* linha abaixo do nome */
}
/* O menu do celular do site fica escondido fora da tela e deixava a página mais larga que o celular
   (o site inteiro "encolhia" e a janela saía pela direita). "clip" corta essa sobra sem criar rolagem. */
html, body { overflow-x: clip; }
.lm-lr-fundo { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: flex-end;
  padding: 12px; background: rgba(5, 6, 8, 0.72); box-sizing: border-box; }
.lm-lr-fundo[hidden] { display: none; }
.lm-lr-janela { position: relative; box-sizing: border-box; width: 100%; max-height: calc(100dvh - 24px);
  overflow-x: hidden; overflow-y: auto; padding: 18px 18px 16px; border-radius: 20px; background: #fff; color: #14161c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); font-family: 'Inter', system-ui, sans-serif; text-align: left; }
.lm-lr-janela * { box-sizing: border-box; }

.lm-lr-fechar { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #eef0f3; color: #3f4651; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.lm-lr-fechar:hover { background: #e2e5ea; }

.lm-lr-cabeca { display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.lm-lr-cabeca img { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; flex: 0 0 auto; }
.lm-lr-cabeca strong { display: block; font-family: 'Outfit', 'Inter', sans-serif; font-weight: 800; font-size: 1rem; line-height: 1.15;
  text-transform: uppercase; color: #14161c; }
.lm-lr-cabeca span { display: block; font-size: 0.72rem; font-weight: 800; color: var(--lm-lr-sub); text-transform: uppercase; letter-spacing: 0.02em; }

.lm-lr-progresso { margin: 14px 0 12px; }
.lm-lr-progresso-texto { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: #5f6b7a; margin-bottom: 6px; }
.lm-lr-barra { height: 4px; border-radius: 4px; background: #e6e9ee; overflow: hidden; }
.lm-lr-barra i { display: block; width: 25%; height: 100%; background: var(--lm-lr-destaque); border-radius: 4px; }

.lm-lr-janela h2 { margin: 0; font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.3rem; font-weight: 800; color: #14161c; }
.lm-lr-sub { margin: 2px 0 14px; color: #5f6b7a; font-size: 0.85rem; }

.lm-lr-campos { display: grid; gap: 12px; margin-bottom: 14px; }
.lm-lr-campo { display: grid; gap: 6px; margin: 0; }
.lm-lr-campo span { font-family: 'Outfit', 'Inter', sans-serif; font-size: 0.88rem; font-weight: 700; color: #1d222b; }
/* 16px nos campos do celular: abaixo disso o iPhone dá zoom ao tocar. */
.lm-lr-campo input { display: block; width: 100%; min-height: 44px; margin: 0; padding: 9px 14px; font: 400 1rem 'Inter', system-ui, sans-serif;
  color: #14161c; background: #f6f7f9; border: 1.5px solid #cfd5dd; border-radius: 9px; transition: border-color 0.15s, background 0.15s; }
.lm-lr-campo input::placeholder { color: #8a93a0; }
.lm-lr-campo input:focus { outline: none; border-color: var(--lm-lr-destaque); background: #fff; }
/* Campo pendente: vermelho na hora, mesmo selecionado. */
.lm-lr-campo input.lm-lr-erro, .lm-lr-campo input.lm-lr-erro:focus { border-color: #e53935; background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15); transition: none; }

.lm-lr-enviar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 0; border-radius: 11px; cursor: pointer; background: linear-gradient(135deg, #22c55e 0%, #16b350 100%); color: #fff;
  font: 800 0.95rem 'Outfit', 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.lm-lr-enviar:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 197, 94, 0.45); }
.lm-lr-enviar svg { width: 20px; height: 20px; flex: 0 0 auto; }
.lm-lr-enviar:focus-visible, .lm-lr-fechar:focus-visible { outline: 3px solid #14161c; outline-offset: 2px; }
.lm-lr-valor { margin: 12px 0 0; text-align: center; font-size: 0.8rem; color: #5f6b7a; line-height: 1.45; }
.lm-lr-lgpd { margin: 6px 0 0; text-align: center; font-size: 0.7rem; color: #8a93a0; line-height: 1.4; }

.lr-isca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lr-aviso { margin: 0 0 12px; padding: 9px 12px; border-radius: 9px; background: #fdecea; border: 1.5px solid #e53935; color: #b71c1c;
  font-size: 0.8rem; font-weight: 700; line-height: 1.4; }
.lr-aviso[hidden] { display: none; }

/* Celulares baixos: mais compacto para caber inteiro sem rolar. */
@media (max-height: 640px) {
  .lm-lr-janela { padding: 12px 16px 10px; }
  .lm-lr-progresso { margin: 10px 0 8px; }
  .lm-lr-janela h2 { font-size: 1.15rem; }
  .lm-lr-sub { margin-bottom: 8px; }
  .lm-lr-campos { gap: 6px; margin-bottom: 10px; }
  .lm-lr-campo { gap: 4px; }
  .lm-lr-campo span { font-size: 0.8rem; }
  .lm-lr-campo input { min-height: 40px; padding: 7px 12px; }
  .lm-lr-enviar { min-height: 44px; }
  .lm-lr-valor { margin-top: 6px; font-size: 0.74rem; }
}

/* Computador e tablet: tamanho do modelo da LD (~325px), 24px da borda direita e fundo desfocado. */
@media (min-width: 601px) {
  .lm-lr-fundo { padding: 12px 24px 12px 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .lm-lr-janela { width: 325px; padding: 14px 16px 13px; }
  .lm-lr-fechar { top: 12px; right: 12px; width: 26px; height: 26px; font-size: 1.05rem; }
  .lm-lr-cabeca { gap: 8px; padding-right: 32px; }
  .lm-lr-cabeca img { width: 28px; height: 28px; border-radius: 6px; }
  .lm-lr-cabeca strong { font-size: 0.86rem; }
  .lm-lr-cabeca span { font-size: 0.66rem; }
  .lm-lr-progresso { margin: 10px 0 8px; }
  .lm-lr-progresso-texto { font-size: 0.7rem; margin-bottom: 5px; }
  .lm-lr-barra { height: 3px; }
  .lm-lr-janela h2 { font-size: 1.05rem; }
  .lm-lr-sub { margin: 1px 0 10px; font-size: 0.74rem; }
  .lm-lr-campos { gap: 8px; margin-bottom: 11px; }
  .lm-lr-campo { gap: 4px; }
  .lm-lr-campo span { font-size: 0.74rem; }
  .lm-lr-campo input { font-size: 0.8rem; min-height: 32px; padding: 5px 12px; border-radius: 7px; }
  .lm-lr-enviar { min-height: 38px; padding: 8px 10px; gap: 6px; border-radius: 9px; font-size: 0.82rem; }
  .lm-lr-enviar svg { width: 16px; height: 16px; }
  .lm-lr-valor { margin-top: 8px; font-size: 0.7rem; }
  .lm-lr-lgpd { margin-top: 4px; font-size: 0.62rem; }
}
