/* Asystent FAQ iCON Office – kolory łatwo zmienić w zmiennych */
.icofaq {
  --icofaq-accent: #1565C0;      /* niebieski – zmienisz w ustawieniach wtyczki */
  --icofaq-accent-ink: #fff;
  --icofaq-bg: #fff;
  --icofaq-ink: #1d1d1f;
  --icofaq-muted: #6b6b70;
  --icofaq-user: #f1f2f4;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--icofaq-ink);
}
.icofaq *, .icofaq *::before, .icofaq *::after { box-sizing: border-box; }

/* pływający */
.icofaq--floating { position: fixed; right: 20px; bottom: 20px; z-index: 99999; }
.icofaq--left { right: auto; left: 20px; }
.icofaq--left .icofaq-panel { right: auto !important; left: 0; }
/* nad plakietką reCAPTCHA (prawy dolny róg) – klasę ustawia chat.js tylko, gdy plakietka jest widoczna */
.icofaq--floating.icofaq--badge { bottom: 96px; }
/* nad przyciskiem motywu „do góry” w prawym dolnym rogu */
.icofaq--floating.icofaq--stack { bottom: 66px; }
.icofaq--floating.icofaq--badge.icofaq--stack { bottom: 124px; }
.icofaq--floating { transition: bottom .25s ease; }

/* w pasku menu (prawy górny róg) */
.icofaq--floating.icofaq--header { top: var(--icofaq-top, 12px); bottom: auto; right: var(--icofaq-hr, 16px); left: auto; transition: top .2s ease; }
.icofaq.icofaq--header .icofaq-fab { width: 44px !important; height: 44px !important; box-shadow: 0 3px 10px rgba(0,0,0,.2) !important; }
.icofaq.icofaq--header .icofaq-fab svg.icofaq-ico { width: 24px !important; height: 24px !important; }
.icofaq--floating.icofaq--header .icofaq-panel { top: 56px; bottom: auto; height: min(600px, calc(100vh - var(--icofaq-top, 12px) - 76px)); }
/* przycisk – twarde reguły, żeby motyw WP niczego nie nadpisał */
.icofaq .icofaq-fab {
  all: unset; box-sizing: border-box !important;
  width: 60px !important; height: 60px !important; border-radius: 50% !important; cursor: pointer;
  background: var(--icofaq-accent) !important; color: #fff !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.25) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: transform .15s ease;
}
.icofaq .icofaq-fab:hover { transform: scale(1.06); }
.icofaq .icofaq-fab:focus-visible { outline: 3px solid rgba(21,101,192,.4); outline-offset: 3px; }
.icofaq .icofaq-fab svg.icofaq-ico {
  display: block !important; width: 30px !important; height: 30px !important;
  max-width: none !important; fill: none; stroke: #fff !important; overflow: visible;
  /* niektóre motywy (np. Perth: svg { position:absolute }) przesuwały ikonę poza środek kółka */
  position: static !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
  margin: 0 !important; padding: 0 !important; transform: none !important; float: none !important; flex: 0 0 auto !important;
}
.icofaq--floating .icofaq-panel {
  display: none; position: absolute; right: 0; bottom: 72px;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px));
}
.icofaq--floating.icofaq--open .icofaq-panel { display: flex; }

/* osadzony shortcodem */
.icofaq--inline .icofaq-panel { display: flex; height: 620px; max-width: 760px; margin: 0 auto; }

.icofaq-panel {
  flex-direction: column; background: var(--icofaq-bg); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 36px rgba(0,0,0,.18); border: 1px solid rgba(0,0,0,.06);
}
.icofaq-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--icofaq-accent); color: var(--icofaq-accent-ink); font-weight: 600;
}
.icofaq-close { background: none; border: 0; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.icofaq-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.icofaq-msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; word-wrap: break-word; }
.icofaq-msg p { margin: 0 0 .5em; } .icofaq-msg p:last-child { margin: 0; }
.icofaq-msg ul, .icofaq-msg ol { margin: .2em 0 .5em 1.2em; padding: 0; }
.icofaq-msg a { color: var(--icofaq-accent); }
.icofaq-msg code { background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 4px; font-size: .92em; }
.icofaq-assistant { align-self: flex-start; background: #fafafa; border: 1px solid #ececec; }
.icofaq-user { align-self: flex-end; background: var(--icofaq-user); }
.icofaq-error { align-self: flex-start; background: #fff4f4; border: 1px solid #f2c4c4; color: #8a1c1c; }
.icofaq-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; }
.icofaq-form textarea {
  flex: 1; resize: none; border: 1px solid #d6d6da; border-radius: 10px; padding: 8px 10px; font: inherit; color: inherit;
}
.icofaq-form button {
  border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer;
  background: var(--icofaq-accent); color: var(--icofaq-accent-ink); font-weight: 600;
}
.icofaq-foot { font-size: 11.5px; color: var(--icofaq-muted); padding: 0 12px 10px; line-height: 1.4; }
.icofaq-foot a { color: inherit; }
.icofaq--open .icofaq-fab svg.icofaq-ico { opacity: .9; }
.icofaq-dots i {
  display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%;
  background: var(--icofaq-muted); animation: icofaq-b 1s infinite ease-in-out;
}
.icofaq-dots i:nth-child(2) { animation-delay: .15s; } .icofaq-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes icofaq-b { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (max-width: 480px) { .icofaq--floating { right: 12px; bottom: 12px; } }
.icofaq .icofaq-more { align-self: flex-start; background: #fff; color: var(--icofaq-accent); border: 1px solid var(--icofaq-accent); border-radius: 16px; padding: 5px 12px; font: inherit; font-size: .9em; cursor: pointer; }
.icofaq .icofaq-more:hover { background: var(--icofaq-accent); color: #fff; }

/* logo w nagłówku okna (biała plakietka) */
.icofaq-head { gap: 10px; }
.icofaq-head .icofaq-title { flex: 1 1 auto; min-width: 0; }
.icofaq .icofaq-logo { flex: 0 0 auto; display: inline-flex !important; align-items: center; background: #fff; border-radius: 8px; padding: 3px 7px; line-height: 0; text-decoration: none !important; border: 0 !important; box-shadow: none !important; }
.icofaq .icofaq-logo img { display: block !important; height: 28px !important; width: auto !important; max-width: 130px !important; max-height: 28px !important; position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }

/* przyciski rozmiaru okna w nagłówku */
.icofaq .icofaq-size { all: unset; box-sizing: border-box; width: 28px; height: 28px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; color: inherit; opacity: .85; flex: 0 0 auto; }
.icofaq .icofaq-size:hover { opacity: 1; background: rgba(255,255,255,.18); }
.icofaq .icofaq-size:focus-visible { outline: 2px solid rgba(255,255,255,.7); }
.icofaq .icofaq-size svg { width: 18px !important; height: 18px !important; display: block !important; position: static !important; }
.icofaq .icofaq-size .i-min { display: none; }
.icofaq--tall .icofaq-size-tall .i-max, .icofaq--full .icofaq-size-full .i-max { display: none; }
.icofaq--tall .icofaq-size-tall .i-min, .icofaq--full .icofaq-size-full .i-min { display: inline; }
.icofaq-close { margin-left: 2px; }

/* powiększone okno: od dolnej krawędzi nagłówka strony (--icofaq-hh) do dołu okna przeglądarki */
.icofaq--floating.icofaq--open.icofaq--tall .icofaq-panel,
.icofaq--floating.icofaq--open.icofaq--full .icofaq-panel {
  position: fixed !important; top: calc(var(--icofaq-hh, 0px) + 8px) !important; bottom: 12px !important; height: auto !important;
  right: 12px !important; max-height: none;
}
.icofaq--floating.icofaq--open.icofaq--tall .icofaq-panel { left: auto !important; width: min(480px, calc(100vw - 24px)) !important; }
.icofaq--floating.icofaq--left.icofaq--open.icofaq--tall .icofaq-panel { left: 12px !important; right: auto !important; }
.icofaq--floating.icofaq--open.icofaq--full .icofaq-panel { left: 12px !important; width: auto !important; }
.icofaq--full .icofaq-msg { max-width: 92%; }
.icofaq--full .icofaq-log, .icofaq--tall .icofaq-log { padding: 16px 20px; }
/* przycisk asystenta nie zasłania powiększonego okna */
.icofaq--open.icofaq--full .icofaq-fab, .icofaq--open.icofaq--tall .icofaq-fab { opacity: 0; pointer-events: none; }
/* na telefonie okno i tak zajmuje prawie cały ekran */
@media (max-width: 600px) { .icofaq .icofaq-size { display: none !important; } }
