/* CZAT e-CEGŁA – wygląd okienka czatu (plik dla modułu czatu w stopce). Wersja 14 */
#ec-czat { --cz-dol: 0px; position: fixed; right: 22px; bottom: calc(22px + var(--cz-dol)); z-index: 2147480000; font-family: inherit; color: #141210; transition: bottom .25s ease; -webkit-font-smoothing: antialiased; }
#ec-czat[hidden] { display: none; }
#ec-czat * { box-sizing: border-box; }
#ec-czat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#ec-czat button { font: inherit; }

/* przycisk */
.ec-cz-btn { position: relative; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, #3a3127 0%, #141210 70%); color: #e2c285; box-shadow: 0 0 0 1px rgba(226,194,133,.35) inset, 0 14px 34px -8px rgba(20,18,16,.55); cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.ec-cz-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 1px rgba(226,194,133,.6) inset, 0 18px 40px -8px rgba(20,18,16,.6); }
.ec-cz-btn svg { width: 27px; height: 27px; stroke-width: 1.8; transition: transform .3s, opacity .2s; }
.ec-cz-btn .ec-cz-x { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
#ec-czat.ec-cz-otwarty .ec-cz-btn .ec-cz-ikona { opacity: 0; transform: rotate(90deg) scale(.6); }
#ec-czat.ec-cz-otwarty .ec-cz-btn .ec-cz-x { opacity: 1; transform: none; }
.ec-cz-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(201,163,90,.55); opacity: 0; pointer-events: none; }
#ec-czat.ec-cz-puls .ec-cz-btn::before { animation: eccz-puls 2.2s ease-out 3; }
@keyframes eccz-puls { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.35); } }
.ec-cz-licznik { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #d64535; color: #fff; font-size: 12px; font-weight: 800; line-height: 21px; text-align: center; box-shadow: 0 0 0 2.5px #fff; }
.ec-cz-licznik[hidden] { display: none; }
.ec-cz-kropka { position: absolute; bottom: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #34c46e; box-shadow: 0 0 0 2.5px #141210; }
#ec-czat.ec-cz-poza .ec-cz-kropka { background: #9a9289; }
#ec-czat.ec-cz-dyzur .ec-cz-kropka { background: #e8963a; }

/* awatary */
.ec-cz-av { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, #f1d9a6 0%, #c9a35a 100%); color: #3b2c12; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.ec-cz-avy { display: flex; flex: 0 0 auto; }
.ec-cz-avy .ec-cz-av { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2.5px #1c1813; }
.ec-cz-avy .ec-cz-av + .ec-cz-av { margin-left: -10px; }
.ec-cz-av.ec-cz-online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #34c46e; box-shadow: 0 0 0 2px #fff; }
#ec-czat.ec-cz-poza .ec-cz-av.ec-cz-online::after { background: #9a9289; }
#ec-czat.ec-cz-dyzur .ec-cz-av.ec-cz-online::after { background: #e8963a; }

/* powitanie */
.ec-cz-dymek { position: absolute; right: 0; bottom: 78px; width: 300px; padding: 16px; border-radius: 20px 20px 6px 20px; background: #fff; border: 1px solid #efe7d8; box-shadow: 0 22px 50px -12px rgba(20,18,16,.3); opacity: 0; transform: translateY(12px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
.ec-cz-dymek.ec-cz-on { opacity: 1; transform: none; pointer-events: auto; }
.ec-cz-dymek-glowa { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.ec-cz-imie { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.ec-cz-rola { display: block; font-size: 12px; color: #8a8273; }
.ec-cz-dymek-tekst { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: #3d3a35; cursor: pointer; }
.ec-cz-dymek-szybkie { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-cz-dymek-zamknij { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f5efe3; color: #6b6458; cursor: pointer; }
.ec-cz-dymek-zamknij svg { width: 14px; height: 14px; }

/* chipy szybkich pytań */
.ec-cz-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border: 1px solid #e3d8c4; border-radius: 999px; background: #fff; color: #141210; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.ec-cz-chip:hover { border-color: #c9a35a; background: #fffaf0; transform: translateY(-1px); }

/* okno */
.ec-cz-okno { position: absolute; right: 0; bottom: 78px; width: 384px; height: min(640px, calc(100vh - 130px)); display: flex; flex-direction: column; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -14px rgba(20,18,16,.45), 0 0 0 1px rgba(20,18,16,.06); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
#ec-czat.ec-cz-otwarty .ec-cz-okno { opacity: 1; transform: none; pointer-events: auto; }
.ec-cz-naglowek { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 20px; background: radial-gradient(140% 160% at 0% 0%, #3a3127 0%, #141210 60%); color: #fff; }
.ec-cz-naglowek::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,194,133,.55), transparent); }
.ec-cz-nagl-txt { flex: 1; min-width: 0; }
.ec-cz-nagl-txt strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.ec-cz-status { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; color: #cfc6b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-cz-status i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #34c46e; box-shadow: 0 0 0 3px rgba(52,196,110,.2); }
#ec-czat.ec-cz-poza .ec-cz-status i { background: #9a9289; box-shadow: 0 0 0 3px rgba(154,146,137,.22); }
#ec-czat.ec-cz-dyzur .ec-cz-status i { background: #e8963a; box-shadow: 0 0 0 3px rgba(232,150,58,.22); }
.ec-cz-av.ec-cz-av-logo { background: #fff; }
.ec-cz-av.ec-cz-av-logo img { object-fit: contain; padding: 1px; }
.ec-cz-faq-chipy .ec-cz-faq-tyt { flex: 0 0 100%; margin: 8px 2px 2px; }
/* zakończenie rozmowy */
.ec-cz-koniec { display: none; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: 13px; color: #3d3830; }
#ec-czat.ec-cz-rozm .ec-cz-koniec { display: flex; }
.ec-cz-koniec button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 1px solid #e3d8c4; border-radius: 999px; background: #fff; color: #6b6458; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ec-cz-koniec button:hover { border-color: #c9a35a; color: #141210; }
.ec-cz-koniec button.ec-cz-tak { border-color: #141210; background: #141210; color: #e2c285; }
.ec-cz-koniec svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ec-cz-koniec b { font-weight: 700; }
/* lista rozmów */
.ec-cz-lista { display: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 16px; background: #faf7f1; }
#ec-czat.ec-cz-w-lista .ec-cz-lista { display: block; }
#ec-czat.ec-cz-w-lista .ec-cz-tresc, #ec-czat.ec-cz-w-lista .ec-cz-stopka { display: none; }
.ec-cz-l-info { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #eef7f0; color: #24563a; font-size: 13.5px; line-height: 1.45; }
.ec-cz-l-info:empty { display: none; }
.ec-cz-l-nowa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin: 0 0 18px; border: 0; border-radius: 999px; background: linear-gradient(140deg, #2b241c, #141210); color: #e2c285; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(20,18,16,.6); }
.ec-cz-l-nowa svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ec-cz-l-tyt { margin: 0 2px 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a8853f; }
.ec-cz-l-poz { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 8px; padding: 12px; border: 1px solid #efe7d8; border-radius: 16px; background: #fff; text-align: left; font: inherit; color: #3d3830; cursor: pointer; transition: border-color .2s, transform .2s; }
.ec-cz-l-poz:hover { border-color: #d9c49a; transform: translateY(-1px); }
.ec-cz-l-poz .ec-cz-av { flex: 0 0 auto; }
.ec-cz-l-txt { flex: 1; min-width: 0; }
.ec-cz-l-txt strong { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #141210; }
.ec-cz-l-txt strong small { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #a49a88; }
.ec-cz-l-txt span { display: block; overflow: hidden; margin-top: 2px; font-size: 13px; color: #7a7266; white-space: nowrap; text-overflow: ellipsis; }
.ec-cz-l-pusto { margin: 6px 2px; font-size: 13.5px; color: #8a8273; }
.ec-cz-l-wroc { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; background: none; color: #8f6b24; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ec-cz-l-archiwum .ec-cz-wiad { animation: none; }
.ec-cz-l-dalej { position: sticky; bottom: 0; display: block; width: 100%; height: 44px; margin-top: 10px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #e2c285, #c9a35a); color: #141210; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px -12px rgba(20,18,16,.5); }
.ec-cz-hist-btn { display: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .2s; }
.ec-cz-hist-btn:hover { background: rgba(255,255,255,.16); }
.ec-cz-hist-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ec-czat.ec-cz-ma-arch .ec-cz-hist-btn { display: grid; }
.ec-cz-zamknij { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .2s; }
.ec-cz-zamknij:hover { background: rgba(255,255,255,.16); }
.ec-cz-tresc { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; background: #faf7f1; scroll-behavior: smooth; }
.ec-cz-dzien { margin: 0 0 14px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a49a88; }
.ec-cz-wiad { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; animation: eccz-wej .3s cubic-bezier(.2,.8,.2,1); }
@keyframes eccz-wej { from { opacity: 0; transform: translateY(6px); } }
.ec-cz-wiad .ec-cz-av { width: 28px; height: 28px; font-size: 11px; }
.ec-cz-babel { max-width: 84%; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 1px 2px rgba(20,18,16,.06), 0 0 0 1px #efe7d8; font-size: 14px; line-height: 1.5; color: #3d3a35; overflow-wrap: anywhere; }
.ec-cz-babel p { margin: 0 0 7px; } .ec-cz-babel p:last-child { margin: 0; }
.ec-cz-babel b { color: #141210; font-weight: 700; }
.ec-cz-ja { justify-content: flex-end; }
.ec-cz-ja .ec-cz-babel { background: #141210; color: #fff; border-radius: 18px 18px 6px 18px; box-shadow: none; }
.ec-cz-linki { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ec-cz-linki a { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: #faf3e3; color: #6d5119 !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; }
.ec-cz-linki a::after { content: "→"; }
.ec-cz-linki a:hover { background: #f3e5c4; }
.ec-cz-pisze { display: inline-flex; gap: 4px; padding: 4px 2px; }
.ec-cz-pisze i { width: 7px; height: 7px; border-radius: 50%; background: #c9a35a; animation: eccz-kr 1s infinite ease-in-out; }
.ec-cz-pisze i:nth-child(2) { animation-delay: .15s; } .ec-cz-pisze i:nth-child(3) { animation-delay: .3s; }
@keyframes eccz-kr { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ec-cz-doradca { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1eadc; }
.ec-cz-doradca small { display: block; margin-bottom: 7px; font-size: 12px; color: #8a8273; }
.ec-cz-kanaly { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ec-cz-kanal { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 8px; border: 1px solid #e3d8c4; border-radius: 12px; background: #fff; color: #141210; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.ec-cz-kanal:hover { border-color: #c9a35a; background: #fffaf0; }
.ec-cz-kanal svg { width: 18px; height: 18px; }
.ec-cz-kanal[data-k="wa"] svg { color: #25d366; } .ec-cz-kanal[data-k="ms"] svg { color: #0a7cff; } .ec-cz-kanal[data-k="sms"] svg { color: #8f6b24; }
.ec-cz-szybkie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 4px 0 10px; }
.ec-cz-szybkie[hidden] { display: none; }

/* stopka */
.ec-cz-stopka { padding: 10px 12px 12px; background: #fff; border-top: 1px solid #f1eadc; }
.ec-cz-pole { display: flex; align-items: flex-end; gap: 2px; padding: 5px 5px 5px 14px; border: 1px solid #e3d8c4; border-radius: 26px; background: #faf7f1; transition: border-color .2s, background .2s, box-shadow .2s; }
.ec-cz-pole:focus-within { border-color: #c9a35a; background: #fff; box-shadow: 0 0 0 4px rgba(201,163,90,.15); }
.ec-cz-pole textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 110px; padding: 9px 4px; border: 0; background: transparent; color: #141210; font: inherit; font-size: 16px; line-height: 1.35; resize: none; outline: none; }
.ec-cz-pole textarea::placeholder { color: #a49a88; }
#ec-czat.ec-cz-api .ec-cz-pole { padding-left: 4px; }
.ec-cz-pole-ik { flex: 0 0 auto; display: none; place-items: center; width: 36px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a8273; cursor: pointer; transition: color .15s, background .15s; }
.ec-cz-pole-ik:hover { color: #141210; background: #f3ecdf; }
.ec-cz-pole-ik svg { width: 21px; height: 21px; }
.ec-cz-faq-btn { width: auto; height: 32px; margin: 0 2px 4px 4px; padding: 0 10px; border: 1.5px solid #d9c49a; border-radius: 999px; color: #8f6b24; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ec-cz-pole-ik.ec-cz-on { color: #8f6b24; background: #f8ecd2; }
#ec-czat.ec-cz-api .ec-cz-zal-btn, #ec-czat .ec-cz-faq-btn { display: grid; }
#ec-czat .ec-cz-pole { padding-left: 4px; }
.ec-cz-faq { margin: 0 0 8px; padding: 10px 10px 12px; border: 1px solid #efe7d8; border-radius: 16px; background: #fffaf0; animation: eccz-wej .2s ease; }
.ec-cz-faq[hidden], .ec-cz-zal-menu[hidden] { display: none; }
.ec-cz-zal-menu { display: flex; gap: 6px; margin: 0 0 8px; animation: eccz-wej .2s ease; }
.ec-cz-zal-menu button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px; border: 1px solid #e3d8c4; border-radius: 14px; background: #fffaf0; color: #141210; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.ec-cz-zal-menu button:hover { border-color: #c9a35a; background: #fff3dc; }
.ec-cz-zal-menu svg { width: 24px; height: 24px; color: #8f6b24; }
@media (hover: hover) and (pointer: fine) { .ec-cz-zal-menu .ec-cz-tylko-tel { display: none; } }
.ec-cz-faq-tyt { margin: 0 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a8853f; }
.ec-cz-faq-chipy { display: flex; flex-wrap: wrap; gap: 6px; max-height: min(34vh, 300px); overflow-y: auto; }
.ec-cz-faq { position: relative; }
.ec-cz-faq > .ec-cz-faq-tyt, .ec-cz-faq-art > .ec-cz-faq-tyt:first-child { padding-right: 34px; }
.ec-cz-faq-x { position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #f1e7d3; color: #6b6458; cursor: pointer; transition: background .2s, color .2s; }
.ec-cz-faq-x:hover { background: #e6d6b6; color: #141210; }
.ec-cz-faq-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ec-cz-img { display: block; max-width: min(220px, 100%); max-height: 260px; border-radius: 12px; object-fit: cover; }
.ec-cz-doc { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: #fff !important; font-weight: 700; text-decoration: none !important; overflow-wrap: anywhere; }
.ec-cz-doc svg { width: 26px; height: 26px; color: #e2c285; }
.ec-cz-doc-dor { padding: 10px 12px; border: 1px solid #ecdfc5; border-radius: 12px; background: #fffaf0; color: #141210 !important; }
.ec-cz-doc-dor svg { color: #a8853f; }
.ec-cz-doc-dor small { display: block; font-size: 11.5px; font-weight: 600; color: #8f6b24; }
.ec-cz-wyslij { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(140deg, #e2c285, #c9a35a); color: #141210; cursor: pointer; flex: 0 0 auto; transition: transform .15s, opacity .2s; }
.ec-cz-wyslij:hover { transform: scale(1.06); }
.ec-cz-wyslij svg { width: 19px; height: 19px; stroke-width: 2.2; }
.ec-cz-info { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: #a49a88; }
.ec-cz-info a { color: #6b6458 !important; font-weight: 700; text-decoration: none !important; }
.ec-cz-info a:hover { color: #141210 !important; }

.ec-cz-tag { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #a8853f; }
.ec-cz-kto { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 800; color: #8f6b24; }
.ec-cz-wysl { display: block; margin-top: 3px; text-align: right; font-size: 10.5px; color: rgba(255,255,255,.55); }
.ec-cz-kontakt { display: flex; gap: 6px; margin-top: 10px; }
.ec-cz-kontakt input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #e3d8c4; border-radius: 12px; background: #faf7f1; font: inherit; font-size: 16px; color: #141210; outline: none; }
.ec-cz-kontakt input:focus { border-color: #c9a35a; background: #fff; }
.ec-cz-kontakt button { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #141210; color: #e2c285; font-size: 13px; font-weight: 800; cursor: pointer; }
.ec-cz-info .ec-cz-wa { color: #1d9e50 !important; }

.ec-cz-info { justify-content: space-between; gap: 8px; margin-top: 9px; padding: 0 2px; }
.ec-cz-iki { display: flex; gap: 6px; }
.ec-cz-ik { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #ece3d2; border-radius: 10px; background: #fff; color: #6b6458; cursor: pointer; text-decoration: none !important; transition: border-color .15s, transform .15s, background .15s; }
.ec-cz-ik:hover { border-color: #c9a35a; background: #fffaf0; transform: translateY(-1px); }
.ec-cz-ik svg { width: 18px; height: 18px; }
.ec-cz-ik[data-k="wa"] { color: #1fae56; } .ec-cz-ik[data-k="ms"] { color: #0a7cff; } .ec-cz-ik[data-k="sms"], .ec-cz-ik[data-k="tel"] { color: #8f6b24; }
#ec-czat .ec-cz-btn .ec-cz-ikona { width: 34px; height: 34px; } #ec-czat .ec-cz-btn .ec-cz-x { width: 26px; height: 26px; }
.ec-cz-btn-avy, .ec-cz-btn-txt { display: none; }
@media (min-width: 992px) {
  #ec-czat:not(.ec-cz-otwarty) .ec-cz-btn { width: auto; height: 60px; padding: 0 22px 0 12px; border-radius: 999px; gap: 12px; display: flex; align-items: center; }
  #ec-czat:not(.ec-cz-otwarty) .ec-cz-btn .ec-cz-ikona { display: none; }
  #ec-czat:not(.ec-cz-otwarty) .ec-cz-btn-avy { display: flex; }
  #ec-czat:not(.ec-cz-otwarty) .ec-cz-btn-txt { display: block; font-size: 15px; font-weight: 800; letter-spacing: .01em; color: #f3dcaa; white-space: nowrap; }
  .ec-cz-btn-avy .ec-cz-av { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2.5px #1f1a14; }
  .ec-cz-btn-avy .ec-cz-av + .ec-cz-av { margin-left: -11px; }
  #ec-czat:not(.ec-cz-otwarty) .ec-cz-kropka { display: none; }
  .ec-cz-btn-avy .ec-cz-av:last-child::after { content: ""; position: absolute; right: -2px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #34c46e; box-shadow: 0 0 0 2px #1f1a14; }
  #ec-czat.ec-cz-poza .ec-cz-btn-avy .ec-cz-av:last-child::after { background: #9a9289; }
  #ec-czat.ec-cz-dyzur .ec-cz-btn-avy .ec-cz-av:last-child::after { background: #e8963a; }
  #ec-czat:not(.ec-cz-otwarty) .ec-cz-btn::before { border-radius: 999px; }
}

/* animacje nowej odpowiedzi doradcy */
.ec-cz-wiad.ec-cz-nowa { animation: eccz-nowa .6s cubic-bezier(.2,.9,.25,1.25) both; }
.ec-cz-wiad.ec-cz-nowa .ec-cz-babel { animation: eccz-blask 2.4s ease-out .15s both; }
@keyframes eccz-nowa { 0% { opacity: 0; transform: translateY(16px) scale(.9); transform-origin: left bottom; } 100% { opacity: 1; transform: none; } }
@keyframes eccz-blask { 0% { box-shadow: 0 0 0 0 rgba(201,163,90,.6), 0 0 0 1.5px #c9a35a; background: #fffaf0; } 100% { box-shadow: 0 1px 2px rgba(20,18,16,.06), 0 0 0 1px #efe7d8; background: #fff; } }
#ec-czat.ec-cz-dzwoni .ec-cz-btn { animation: eccz-skok .7s cubic-bezier(.3,1.6,.5,1); }
#ec-czat.ec-cz-dzwoni .ec-cz-btn .ec-cz-ikona, #ec-czat.ec-cz-dzwoni .ec-cz-btn-avy { animation: eccz-dzwonek 1s ease-in-out .15s; }
#ec-czat.ec-cz-dzwoni .ec-cz-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(226,194,133,.7); animation: eccz-fala 1.4s ease-out 2; pointer-events: none; }
#ec-czat.ec-cz-dzwoni .ec-cz-licznik { animation: eccz-pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes eccz-skok { 0% { transform: scale(1); } 35% { transform: scale(1.14) translateY(-4px); } 65% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes eccz-dzwonek { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
@keyframes eccz-fala { 0% { box-shadow: 0 0 0 0 rgba(226,194,133,.7); } 100% { box-shadow: 0 0 0 18px rgba(226,194,133,0); } }
@keyframes eccz-pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.ec-cz-dymek.ec-cz-dymek-dor { border-color: #e2c285; box-shadow: 0 22px 50px -12px rgba(20,18,16,.35), 0 0 0 3px rgba(226,194,133,.25); }
.ec-cz-dymek.ec-cz-on.ec-cz-dymek-dor { animation: eccz-dymek .65s cubic-bezier(.2,.9,.25,1.3); }
.ec-cz-dymek-dor .ec-cz-dymek-tekst { color: #141210; font-weight: 500; }
.ec-cz-dymek-dor .ec-cz-dymek-tekst::before { content: "Nowa wiadomość"; display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a8853f; }
@keyframes eccz-dymek { 0% { opacity: 0; transform: translateY(18px) scale(.82); } 100% { opacity: 1; transform: none; } }

/* zdjęcia doradców, doradca przypisany do rozmowy, dymek „od człowieka”, artykuły z bloga */
.ec-cz-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ec-cz-av.ec-cz-av-foto { background: #f3e6cf; padding: 0; overflow: visible; box-shadow: 0 0 0 1.5px #d6b066, 0 3px 10px -3px rgba(20,18,16,.4); }
.ec-cz-naglowek .ec-cz-av-duzy.ec-cz-av-foto { box-shadow: 0 0 0 2.5px #e2c285, 0 6px 18px -6px rgba(0,0,0,.6); }
.ec-cz-avy .ec-cz-av.ec-cz-av-foto + .ec-cz-av, .ec-cz-btn-avy .ec-cz-av.ec-cz-av-foto + .ec-cz-av { box-shadow: 0 0 0 2px #1c1813, 0 0 0 3px #d6b066; }
.ec-cz-av.ec-cz-av-mono { background: none; padding: 0; box-shadow: 0 3px 10px -3px rgba(20,18,16,.45); }
#ec-czat .ec-cz-av.ec-cz-av-mono svg { width: 100%; height: 100%; display: block; stroke: none; fill: none; }
.ec-cz-avy .ec-cz-av.ec-cz-av-mono, .ec-cz-btn-avy .ec-cz-av.ec-cz-av-mono { box-shadow: 0 0 0 2px #1c1813; }
.ec-cz-naglowek .ec-cz-av-duzy.ec-cz-av-mono { box-shadow: 0 0 0 3px rgba(214,176,102,.25), 0 6px 18px -6px rgba(0,0,0,.6); }
.ec-cz-av.ec-cz-av-marka { background: radial-gradient(120% 120% at 30% 20%, #3a3127 0%, #141210 75%); color: #e2c285; }
.ec-cz-av.ec-cz-av-marka svg { width: 64%; height: 64%; stroke-width: 2.4; }
.ec-cz-naglowek .ec-cz-av-duzy { width: 46px; height: 46px; font-size: 17px; box-shadow: 0 0 0 2.5px #e2c285; }
.ec-cz-naglowek .ec-cz-av-duzy.ec-cz-online::after { width: 12px; height: 12px; box-shadow: 0 0 0 2.5px #1c1813; }
#ec-czat.ec-cz-ma-dor .ec-cz-naglowek .ec-cz-avy, #ec-czat.ec-cz-ma-dor .ec-cz-nagl-txt { animation: eccz-dor .5s cubic-bezier(.2,.9,.25,1.2); }
@keyframes eccz-dor { 0% { opacity: 0; transform: translateX(-8px) scale(.94); } 100% { opacity: 1; transform: none; } }
.ec-cz-dymek-szybkie:empty { display: none; }
.ec-cz-dymek-napisz { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: #141210; color: #f3dcaa; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: transform .15s; }
.ec-cz-dymek-napisz:hover { transform: translateY(-1px); }
.ec-cz-dymek-napisz::after { content: "→"; }
.ec-cz-dymek-dor .ec-cz-dymek-napisz { display: none; }
.ec-cz-dymek .ec-cz-dymek-av { width: 42px; height: 42px; font-size: 15px; }
.ec-cz-arty { display: grid; gap: 6px; margin-top: 8px; }
.ec-cz-art { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1px solid #ecdfc5; border-radius: 12px; background: #fffaf0; color: #141210 !important; font-size: 13px; font-weight: 700; line-height: 1.35; text-decoration: none !important; transition: border-color .15s, background .15s; }
.ec-cz-art:hover { border-color: #c9a35a; background: #fff3dc; }
.ec-cz-art svg { width: 18px; height: 18px; margin-top: 1px; color: #a8853f; flex: 0 0 auto; }
.ec-cz-faq-art:not(:empty) { margin-bottom: 12px; }
.ec-cz-faq-art .ec-cz-arty { margin-top: 0; max-height: 34vh; overflow-y: auto; }

@media (max-width: 575px) {
  #ec-czat { right: 14px; bottom: calc(14px + var(--cz-dol)); }
  .ec-cz-btn { width: 58px; height: 58px; }
  .ec-cz-dymek { width: min(300px, calc(100vw - 28px)); bottom: 72px; }
  .ec-cz-okno { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 88vh; height: 88dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  #ec-czat.ec-cz-otwarty .ec-cz-btn { opacity: 0; pointer-events: none; }
  .ec-cz-naglowek { padding-top: 22px; }
  .ec-cz-naglowek::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: rgba(255,255,255,.22); }
  .ec-cz-stopka { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
html.ecg-blokada #ec-czat, body.menu-mobile-otwarte #ec-czat, body.menu-tablet-otwarte #ec-czat { display: none; }
@media print { #ec-czat { display: none; } }
@media (prefers-reduced-motion: reduce) { #ec-czat * { animation: none !important; transition: none !important; } }
