/* Widget czatu „Nina” (assets/czat.js). Kolory z tokenów frontu, gdy istnieją. */
.czat { position: fixed; right: 1rem; bottom: 1rem; z-index: 900; font: 15px/1.45 inherit; }
.czat__guzik {
  font: inherit; font-weight: 600; padding: .8rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--kolor-akcent, #8a3b1f); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.czat__guzik:focus-visible, .czat button:focus-visible, .czat input:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
.czat__panel {
  position: absolute; right: 0; bottom: calc(100% + .6rem); width: min(380px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 6rem)); display: flex; flex-direction: column;
  background: #fff; color: #2b2622; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.3); overflow: hidden;
}
.czat__panel[hidden] { display: none; }
.czat__glowa { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; background: var(--kolor-ciemny, #2b2622); color: #fff; }
.czat__glowa h2 { margin: 0; font-size: 1rem; }
.czat__zamknij { font-size: 1.5rem; line-height: 1; background: none; border: 0; color: inherit; cursor: pointer; padding: 0 .3rem; }
.czat__log { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.czat__dymek { margin: 0; padding: .55rem .8rem; border-radius: 10px; max-width: 88%; white-space: pre-wrap; }
.czat__dymek--bot { background: #f3ede4; align-self: flex-start; }
.czat__dymek--ja { background: var(--kolor-akcent, #8a3b1f); color: #fff; align-self: flex-end; }
.czat__dymek--blad { background: #fbe9e7; color: #8a1c12; align-self: flex-start; }
.czat__forma { display: flex; border-top: 1px solid #e5ddd0; }
.czat__forma input { flex: 1; font: inherit; padding: .7rem; border: 0; min-width: 0; }
.czat__forma button { font: inherit; font-size: 1.2rem; padding: 0 1rem; border: 0; cursor: pointer; background: var(--kolor-akcent, #8a3b1f); color: #fff; }
.czat__forma button:disabled { opacity: .5; }
.czat__stopka { margin: 0; padding: .4rem .8rem .6rem; font-size: .75rem; color: #6c6459; }
.czat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .czat__guzik { transition: transform .15s; } .czat__guzik:hover { transform: translateY(-2px); } }
