/* Doradca INNVIGO */
.innv-doradca {
  --innv-green: #00953b;
  --innv-green-d: #007a30;
  --innv-green-l: #e8f5ed;
  --innv-ink: #1f2a24;
  --innv-muted: #5f6b64;
  --innv-line: #e2e8e4;
  --innv-bg: #f6f8f7;
  --innv-radius: 14px;
  font-family: inherit;
  color: var(--innv-ink);
  line-height: 1.45;
  box-sizing: border-box;
}
.innv-doradca *, .innv-doradca *::before, .innv-doradca *::after { box-sizing: border-box; }
.innv-doradca svg { width: 20px; height: 20px; display: block; }
.innv-doradca button { font: inherit; cursor: pointer; }

/* ---------- czat ---------- */
.innv-chat {
  display: flex; flex-direction: column;
  height: var(--innv-h, 520px); max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--innv-line); border-radius: var(--innv-radius);
  overflow: hidden; box-shadow: 0 6px 24px rgba(16, 40, 24, .08);
}
.innv-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--innv-green); color: #fff;
}
.innv-logo { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.innv-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.innv-head-t strong { font-size: 16px; font-weight: 600; }
.innv-head-t span { font-size: 12.5px; opacity: .85; }
.innv-icon-btn { background: transparent; border: 0; color: #fff; padding: 6px; border-radius: 8px; opacity: .9; }
.innv-icon-btn:hover, .innv-icon-btn:focus-visible { background: rgba(255,255,255,.15); opacity: 1; outline: none; }

.innv-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--innv-bg); scroll-behavior: smooth; }
.innv-msg { display: flex; margin: 0 0 10px; }
.innv-user { justify-content: flex-end; }
.innv-bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; word-wrap: break-word; }
.innv-bot .innv-bubble { background: #fff; border: 1px solid var(--innv-line); border-top-left-radius: 4px; }
.innv-user .innv-bubble { background: var(--innv-green); color: #fff; border-top-right-radius: 4px; white-space: pre-wrap; }
.innv-bubble p { margin: 0 0 6px; }
.innv-bubble p:last-child { margin-bottom: 0; }
.innv-bubble ul { margin: 4px 0 6px 18px; padding: 0; }
.innv-bubble li { margin: 2px 0; }

.innv-typing .innv-bubble { display: flex; gap: 4px; padding: 13px 14px; }
.innv-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa8a0; animation: innv-dot 1.2s infinite ease-in-out; }
.innv-typing span:nth-child(2) { animation-delay: .15s; }
.innv-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes innv-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.innv-cards { display: grid; gap: 10px; margin: 2px 0 12px; }
.innv-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.innv-card { background: #fff; border: 1px solid var(--innv-line); border-left: 4px solid var(--innv-green); border-radius: 10px; padding: 11px 13px; }
.innv-card-top { margin-bottom: 4px; }
.innv-pill { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--innv-green-d); background: var(--innv-green-l); padding: 2px 8px; border-radius: 99px; }
.innv-card-name { display: block; font-size: 16px; font-weight: 700; color: var(--innv-ink) !important; text-decoration: none !important; margin: 2px 0 6px; }
.innv-card-name:hover { color: var(--innv-green) !important; }
.innv-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 6px; font-size: 13px; }
.innv-meta dt { color: var(--innv-muted); margin: 0; }
.innv-meta dd { margin: 0; }
.innv-matched { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0 8px; font-size: 12.5px; }
.innv-matched-l { color: var(--innv-muted); }
.innv-chip { background: var(--innv-bg); border: 1px solid var(--innv-line); border-radius: 99px; padding: 1px 8px; }
.innv-cta { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--innv-green) !important; text-decoration: none !important; }
.innv-cta:hover { text-decoration: underline !important; }
.innv-contact { display: inline-block; margin: 0 0 12px; font-weight: 600; color: var(--innv-green) !important; }

.innv-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--innv-bg); border-top: 1px solid var(--innv-line); }
.innv-quick:empty { display: none; }
.innv-q { background: #fff; color: var(--innv-green-d); border: 1px solid var(--innv-green); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; line-height: 1.2; transition: background .15s, color .15s; }
.innv-q:hover, .innv-q:focus-visible { background: var(--innv-green); color: #fff; outline: none; }

.innv-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--innv-line); background: #fff; }
.innv-input { flex: 1; resize: none; border: 1px solid var(--innv-line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--innv-ink); background: #fff; min-height: 42px; max-height: 120px; }
.innv-input:focus { outline: 2px solid var(--innv-green-l); border-color: var(--innv-green); }
.innv-send { flex: none; width: 44px; height: 42px; border: 0; border-radius: 12px; background: var(--innv-green); color: #fff; display: grid; place-items: center; }
.innv-send:hover { background: var(--innv-green-d); }
.innv-foot { padding: 6px 14px 10px; font-size: 11.5px; color: var(--innv-muted); background: #fff; }
.innv-foot a { color: var(--innv-green-d); }

/* ---------- pływający ---------- */
.innv-floating .innv-chat { display: none; }
.innv-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 99998;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  border: 0; border-radius: 99px; background: var(--innv-green); color: #fff; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 80, 32, .3);
}
.innv-fab:hover { background: var(--innv-green-d); }
.innv-open .innv-fab { display: none; }
.innv-open .innv-chat {
  display: flex; position: fixed; right: 20px; bottom: 20px; z-index: 99999;
  width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 40px)); margin: 0;
}
@media (max-width: 520px) {
  .innv-open .innv-chat { inset: 0; width: 100%; max-width: 100%; height: 100%; border-radius: 0; }
  .innv-fab span { display: none; }
  .innv-fab { padding: 14px; }
  .innv-bubble { max-width: 92%; }
}

/* ---------- wyszukiwarka ---------- */
.innv-search { max-width: 1000px; margin: 0 auto; }
.innv-sform { display: flex; gap: 8px; }
.innv-sinput { flex: 1; border: 1px solid var(--innv-line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; }
.innv-sinput:focus { outline: 2px solid var(--innv-green-l); border-color: var(--innv-green); }
.innv-sbtn { border: 0; border-radius: 12px; padding: 0 22px; background: var(--innv-green); color: #fff; font-weight: 600; }
.innv-sex { background: transparent; border: 0; padding: 10px 0; }
.innv-hint { font-size: 13px; color: var(--innv-muted); margin: 4px 0 10px; min-height: 18px; }
.innv-search .innv-foot { background: transparent; padding: 8px 0; }

/* ---------- odporność na style motywu (Elementor / motywy nadpisują button, input) ---------- */
.innv-doradca button.innv-q {
  font-size: 13.5px; line-height: 1.2; padding: 6px 12px; min-height: 0; height: auto; width: auto;
  font-weight: 500; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0;
  background: #fff; color: var(--innv-green-d); border: 1px solid var(--innv-green); border-radius: 99px;
}
.innv-doradca button.innv-q:hover, .innv-doradca button.innv-q:focus-visible { background: var(--innv-green); color: #fff; }
.innv-doradca button.innv-send, .innv-doradca button.innv-icon-btn, .innv-doradca button.innv-fab, .innv-doradca button.innv-sbtn {
  min-height: 0; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; line-height: 1;
}
.innv-doradca button.innv-send { padding: 0; width: 44px; height: 42px; border-radius: 12px; background: var(--innv-green); color: #fff; border: 0; }
.innv-doradca button.innv-icon-btn { padding: 6px; background: transparent; border: 0; color: #fff; }
.innv-doradca button.innv-sbtn { padding: 0 22px; border-radius: 12px; background: var(--innv-green); color: #fff; border: 0; font-size: 15px; }
.innv-doradca button.innv-fab { padding: 12px 18px 12px 14px; border-radius: 99px; background: var(--innv-green); color: #fff; border: 0; font-size: 15px; }
.innv-doradca textarea.innv-input, .innv-doradca input.innv-sinput { box-shadow: none; margin: 0; width: auto; letter-spacing: normal; }
.innv-chat .innv-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 520px) { .innv-doradca button.innv-fab { padding: 14px; } }
