/* Sol — chat da 2P Carregadores (base: Sol do site 2P Energia Solar, nas cores azuis da 2P Carregadores).
   Também: aviso de cookies e estados do formulário de proposta. */
.sol, .cookies {
  --orange: #1b12c9; --orange-dark: #130d96; --ink: #0d0a52; --line: #dfe1e6; --line-soft: #e3e5ea;
  --muted: #5c6070; --text: #0e0f14; --font-body: "Outfit", system-ui, sans-serif; --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@keyframes solDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes solIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sol { position: fixed; z-index: 1200; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font-body); }
.sol__launcher {
  position: relative; width: 70px; height: 70px; border: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #5b54ff, var(--orange) 72%);
  color: #FFFFFF; font-size: 26px; cursor: pointer;
  box-shadow: 0 14px 36px rgba(27,18,201,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sol__launcher img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #FFFFFF; }
.sol__launcher .dot { z-index: 1; }
.sol__launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 44px rgba(27,18,201,0.55); }
.sol__launcher:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sol__launcher .dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #4ADE80; border: 2.5px solid #FFFFFF; }

.sol__hint { display: flex; align-items: flex-start; gap: 8px; max-width: 300px; animation: solIn .3s ease; }
.sol__hint-close {
  order: 2; width: 26px; height: 26px; border: none; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(12,18,32,0.18); color: var(--muted); font-size: 11px; cursor: pointer; flex-shrink: 0;
}
.sol__hint-bubble {
  order: 1; text-align: left; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px; box-shadow: 0 14px 40px rgba(12,18,32,0.2);
  padding: 14px 16px; cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: flex-start; gap: 10px;
}
.sol__hint-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(27,18,201,0.35); }
.sol__hint-bubble span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.sol__hint-bubble strong { color: var(--orange); }

.sol__panel {
  width: min(392px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 110px));
  background: #FFFFFF; border: 1px solid var(--line-soft); border-radius: 18px;
  box-shadow: 0 28px 72px rgba(12,18,32,0.3); display: flex; flex-direction: column; overflow: hidden;
  animation: solIn .25s ease;
}
.sol__head { background: var(--ink); padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.sol__avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #5b54ff, var(--orange) 70%);
  display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 18px; flex-shrink: 0;
}
.sol__avatar img { width: 100%; height: 100%; object-fit: cover;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,0.2);
}
.sol__id { flex: 1; min-width: 0; }
.sol__name { margin: 0; color: #FFFFFF; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.sol__name .st { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.sol__name .on { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: #86EFAC; letter-spacing: 0.06em; }
.sol__role { margin: 1px 0 0; color: rgba(255,255,255,0.62); font-size: 11.5px; }
.sol__hbtn { width: 34px; height: 34px; border: none; border-radius: 8px; background: rgba(255,255,255,0.08); color: #FFFFFF; cursor: pointer; line-height: 1; }
.sol__hbtn:hover { background: rgba(255,255,255,0.18); }
.sol__hbtn--min { font-size: 16px; }
.sol__hbtn--close { font-size: 14px; }

.sol__msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: #F4F6FA; }
.sol__msg { max-width: 86%; }
.sol__msg--sol { align-self: flex-start; }
.sol__msg--user { align-self: flex-end; }
.sol__bubble { padding: 11px 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.sol__msg--sol .sol__bubble { background: #FFFFFF; border: 1px solid var(--line); color: #1C2430; border-radius: 14px 14px 14px 4px; }
.sol__msg--user .sol__bubble { background: var(--orange); color: #FFFFFF; border-radius: 14px 14px 4px 14px; font-weight: 600; }
.sol__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.sol__link {
  font-size: 13px; font-weight: 700; color: var(--orange-dark); background: #FFFFFF;
  border: 1.5px solid #c9c6f3; padding: 8px 13px; border-radius: 999px; text-decoration: none;
}
.sol__link:hover { background: var(--orange); color: #FFFFFF; border-color: var(--orange); }
.sol__typing {
  align-self: flex-start; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 12px 14px; display: flex; gap: 5px; align-items: center;
}
.sol__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: solDot 1.1s infinite; }
.sol__typing span:nth-child(2) { animation-delay: .15s; }
.sol__typing span:nth-child(3) { animation-delay: .3s; }

.sol__quicks { padding: 10px 12px 4px; display: flex; flex-wrap: wrap; gap: 7px; background: #F4F6FA; border-top: 1px solid #EBEDF3; }
.sol__quick {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--orange-dark);
  background: #FFFFFF; border: 1.5px solid #c9c6f3; padding: 9px 14px; border-radius: 999px;
  cursor: pointer; transition: all .15s ease;
}
.sol__quick:hover { background: var(--orange); color: #FFFFFF; border-color: var(--orange); }
.sol__quick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sol__quick { display: inline-flex; align-items: center; gap: 7px; }
.sol__qi { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex-shrink: 0; }
.sol__qi svg { width: 17px; height: 17px; }
.sol__qi img { width: 17px; height: 17px; object-fit: contain; display: block; }

.sol__inputbar { display: flex; align-items: center; gap: 8px; padding: 8px; background: #F4F6FA; }
.sol__input {
  flex: 1; border: 1px solid #DFE3EA; border-radius: 12px; padding: 13px 14px;
  font-family: var(--font-body); font-size: 14px; outline: none; background: #FFFFFF; color: var(--text); min-width: 0;
}
.sol__input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(27,18,201,0.15); }
.sol__send {
  width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: 12px;
  background: var(--orange); color: #FFFFFF; font-size: 18px; cursor: pointer; transition: background .15s ease;
}
.sol__send:hover { background: var(--orange-dark); }
.sol__lgpd { margin: 0; padding: 0 12px 9px; background: #F4F6FA; font-size: 10.5px; color: #9AA1AB; text-align: center; }
.sol__lgpd a { color: #8A92A0; text-decoration: underline; }
.sol__panel[hidden], .sol__hint[hidden], .sol__quicks[hidden] { display: none; }
.sol__msg--sol .sol__bubble { color: var(--text); }
@media (max-width: 720px) {
  .sol { right: 14px; bottom: 14px; }
  .sol__input { font-size: 16px; }
  .sol__quick, .sol__link { font-size: 14px; padding: 10px 15px; }
  .sol__launcher { width: 62px; height: 62px; }
}

/* Aviso de cookies */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 1100; max-width: min(440px, calc(100vw - 112px));
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 14px 40px rgba(13,10,82,.18); padding: 14px 16px; display: flex; gap: 14px; align-items: center;
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; animation: solIn .3s ease;
}
.cookies a { text-decoration: underline; text-underline-offset: 2px; }
.cookies button {
  flex-shrink: 0; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font: 600 14px var(--font-body);
  padding: 10px 16px; cursor: pointer;
}
.cookies button:hover { background: var(--orange-dark); }
body.sol-aberta .cookies { display: none; }

/* Formulário de proposta: estados de validação e envio (assets/js/mask.js) */
.formulario .invalidCnpj, .formulario .invalidPattern { border-color: #ff8a8a !important; }
.formulario .checar { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.formulario .checar input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #fff; }
.formulario .naoexibir { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.formulario button.is-loading { opacity: .7; cursor: wait; }
.formulario .submit-spinner { display: none; }
.botao-sol { cursor: pointer; font: inherit; }
