/* Stronghold WP – Chater: rozmowa i zwykły formularz (bez skryptu).
   Kolory i zaokrąglenia ze zmiennych — motyw albo strona może je nadpisać, np. .cheater{--cheater-akcent:#7a4b26}.
   Domyślny akcent: kolor główny Stronghold WP (--shwp-kolor), a bez niego niebieski WordPressa. */
.cheater{
	--cheater-akcent:var(--shwp-kolor,#2271b1);
	--cheater-na-akcencie:#fff;
	--cheater-tlo:#fff;
	--cheater-pasek:#f6f7f7;
	--cheater-dymek:#f0f0f1;
	--cheater-tekst:#1d2327;
	--cheater-drugi:#50575e;
	--cheater-linia:#dcdcde;
	--cheater-pole:#8c8f94;
	--cheater-blad:#b32d2e;
	--cheater-ok:#008a20;
	--cheater-cien:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.06);
	--cheater-promien:16px;
	max-width:46rem;margin:1.5rem 0;color:var(--cheater-tekst)}
.cheater *{box-sizing:border-box}

/* Komunikat zwykłego formularza (błąd, wysłano) */
.cheater__komunikat{margin:0 0 1rem!important;padding:.6em 1em;border:2px solid var(--cheater-blad);border-radius:8px}
.cheater__komunikat--ok{border-color:var(--cheater-ok)}
.cheater__pusto{padding:.6em 1em;border:1px dashed var(--cheater-linia)}

/* Zwykły formularz */
.cheater__akapit{margin:0 0 1rem!important}
.cheater__formularz label{display:block;margin-bottom:.35em;font-weight:600}
.cheater__formularz input,.cheater__formularz textarea,.cheater__formularz select{display:block;width:100%;max-width:100%;padding:.6em .75em;border:1px solid var(--cheater-pole);border-radius:6px;background:var(--cheater-tlo);color:var(--cheater-tekst);font:inherit}
.cheater__formularz [aria-invalid="true"]{border-color:var(--cheater-blad)}
.cheater__wiersz{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 1.25rem}
.cheater__blad{display:block;margin-top:.25em;color:var(--cheater-blad);font-size:.9em}
.cheater__pulapka{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.cheater__rodo{margin:.5rem 0 1rem!important;font-size:.85em;line-height:1.5;color:var(--cheater-drugi)}
.cheater__rodo a{color:inherit;text-decoration:underline}
.cheater__wyslij{display:inline-block;min-height:44px;padding:.6em 2em;border:0;border-radius:10px;background:var(--cheater-akcent);color:var(--cheater-na-akcencie);font:inherit;font-weight:600;cursor:pointer}

/* Rozmowa (ze skryptem): okno komunikatora — nagłówek, przewijana historia z szybkimi odpowiedziami, pasek pisania, stopka */
.cheater .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cheater__rozmowa{border:1px solid var(--cheater-linia);border-radius:var(--cheater-promien);background:var(--cheater-tlo);box-shadow:var(--cheater-cien);overflow:hidden}
.cheater__glowa{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--cheater-linia);background:var(--cheater-pasek)}
.cheater__kto{min-width:0}
.cheater__nazwa{margin:0!important;font-size:1.05rem;font-weight:700;line-height:1.3}
.cheater__opis{margin:0!important;font-size:.875rem;line-height:1.4;color:var(--cheater-drugi)}
.cheater__awatar{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;overflow:hidden;background:var(--cheater-akcent);color:var(--cheater-na-akcencie);font-size:.8rem;font-weight:700;line-height:1}
.cheater__awatar--duzy{width:40px;height:40px;font-size:1.1rem}
.cheater__awatar img{display:block;width:100%;height:100%;object-fit:cover}
.cheater__okno{max-height:440px;overflow-y:auto;padding:18px 20px 10px}
.cheater__okno:focus-visible{outline:2px solid var(--cheater-akcent);outline-offset:-4px}
.cheater__log{display:flex;flex-direction:column;gap:10px}
.cheater__dymek{max-width:85%;margin:0!important;padding:10px 14px;border-radius:14px;line-height:1.5;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere;text-wrap:wrap}
.cheater__od-nas{display:flex;align-items:flex-end;gap:8px;max-width:88%}
.cheater__od-nas--dalej{padding-left:36px}
.cheater__od-nas .cheater__dymek{max-width:100%}
.cheater__dymek--my{align-self:flex-start;background:var(--cheater-dymek);color:var(--cheater-tekst);border-bottom-left-radius:4px}
.cheater__dymek--ty{align-self:flex-end;background:var(--cheater-akcent);color:var(--cheater-na-akcencie);border-bottom-right-radius:4px}
.cheater__czeka{opacity:.75}
.cheater__szybkie{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px 36px}
.cheater__szybkie:empty{display:none}
.cheater__temat{min-height:40px;padding:6px 14px;border:1px solid var(--cheater-akcent);border-radius:999px;background:var(--cheater-tlo);color:var(--cheater-akcent);font:inherit;font-size:.95rem;font-weight:600;text-align:left;cursor:pointer}
.cheater__temat:hover{background:var(--cheater-akcent);color:var(--cheater-na-akcencie)}
.cheater__temat:focus-visible{outline:2px solid var(--cheater-akcent);outline-offset:2px}
.cheater__temat--wiecej,.cheater__temat--zmien{border-style:dashed}
.cheater__pisz{padding:10px 16px 12px;border-top:1px solid var(--cheater-linia);background:var(--cheater-pasek)}
.cheater__etykieta{display:block;margin:0 0 4px 4px;font-size:.85rem;font-weight:600;color:var(--cheater-drugi)}
.cheater__etykieta:empty{display:none}
.cheater__wiersz-pisz{display:flex;gap:8px;align-items:flex-end}
.cheater__pole{flex:1;min-width:0;min-height:44px;padding:10px 14px;border:1px solid var(--cheater-pole);border-radius:22px;font:inherit;font-size:1rem;background:var(--cheater-tlo);color:var(--cheater-tekst);resize:vertical}
textarea.cheater__pole{border-radius:16px}
.cheater__pole::placeholder{color:var(--cheater-drugi);opacity:1}
.cheater__pole:disabled{cursor:not-allowed}
.cheater__pole[aria-invalid="true"]{border-color:var(--cheater-blad)}
.cheater__pole:focus-visible,.cheater__formularz :focus-visible{outline:2px solid var(--cheater-akcent);outline-offset:1px}
.cheater__dalej{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 12px;border:0;border-radius:22px;font:inherit;font-size:1rem;font-weight:600;cursor:pointer;background:var(--cheater-akcent);color:var(--cheater-na-akcencie)}
.cheater__dalej svg{width:20px;height:20px}
.cheater__napis-przycisku{padding-right:4px}
.cheater__dalej[disabled]{opacity:.45;cursor:not-allowed}
.cheater__dalej:focus-visible{outline:2px solid var(--cheater-akcent);outline-offset:2px}
.cheater__blad-rozmowy{margin:6px 0 0 4px!important;font-size:.9rem;color:var(--cheater-blad)}
.cheater__blad-rozmowy:empty{display:none}
.cheater__rodo--rozmowa{margin:0!important;padding:0 20px 12px;background:var(--cheater-pasek);font-size:.8rem;line-height:1.45}

/* „Pisanie” — trzy kropki przed naszą wiadomością (bez animacji, gdy system ogranicza ruch; wtedy skrypt i tak go pomija) */
.cheater__pisze{display:inline-flex;gap:4px;align-items:center;min-height:42px}
.cheater__pisze span{width:7px;height:7px;border-radius:50%;background:var(--cheater-drugi);opacity:.4}
@media (prefers-reduced-motion:no-preference){
	.cheater__dymek{animation:cheater-dymek .25s ease-out}
	.cheater__pisze span{animation:cheater-kropka 1s infinite ease-in-out}
	.cheater__pisze span:nth-child(2){animation-delay:.15s}
	.cheater__pisze span:nth-child(3){animation-delay:.3s}
	@keyframes cheater-dymek{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
	@keyframes cheater-kropka{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
}
@media (max-width:480px){.cheater__glowa{padding:10px 12px}.cheater__okno{padding:14px 12px 8px}.cheater__pisz{padding:10px 12px 12px}.cheater__rodo--rozmowa{padding:0 12px 12px}.cheater__od-nas,.cheater__dymek{max-width:92%}.cheater__szybkie{margin-left:0}}
