/* ePreduzetnik Web — moduli koje generator sam dodaje: lebdeći meni i AI chatbot.
   Boje prate sajt preko --epr-boja / --epr-boja-tekst / --epr-font sa :root. Sve je fiksirano dole desno:
   chat dugme je uvek najniže, ikonice lebdećeg menija idu iznad njega; otvoren chat prozor je iznad svega. */

.epr-lebdeci{position:fixed;right:16px;bottom:16px;z-index:2147482000;display:flex;flex-direction:column;align-items:center;gap:10px;margin:0;padding:0}
.epr-lebdeci-sa-chatom{bottom:86px}
.epr-lm{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--epr-lm-boja,#1f2937);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.22);text-decoration:none;transition:transform .15s,box-shadow .15s}
.epr-lm:hover,.epr-lm:focus-visible{transform:translateY(-2px) scale(1.05);box-shadow:0 10px 24px rgba(0,0,0,.28);outline:none}
.epr-lm svg{width:24px;height:24px;fill:currentColor;display:block}
.epr-lm-viber svg{width:26px;height:26px}
@media (max-width:600px){.epr-lebdeci{right:12px;bottom:12px;gap:8px}.epr-lebdeci-sa-chatom{bottom:80px}.epr-lm{width:44px;height:44px}.epr-lm svg{width:22px;height:22px}}

/* ---- chat ---- */
.epr-chat-dugme{position:fixed;right:16px;bottom:16px;z-index:2147482500;width:58px;height:58px;border:0;border-radius:50%;background:var(--epr-boja,#1f2937);color:var(--epr-boja-tekst,#fff);box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:transform .15s}
.epr-chat-dugme:hover{transform:scale(1.06)}
.epr-chat-dugme svg{width:28px;height:28px;fill:currentColor}
.epr-chat-dugme .epr-chat-x{display:none}
.epr-chat-otvoren .epr-chat-dugme .epr-chat-ikona{display:none}
.epr-chat-otvoren .epr-chat-dugme .epr-chat-x{display:block}
.epr-chat-oznaka{position:fixed;right:84px;bottom:28px;z-index:2147482500;background:#fff;color:#1a1a1a;font:600 13px/1.2 var(--epr-font,system-ui,sans-serif);padding:8px 12px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.18);white-space:nowrap;pointer-events:none;opacity:0;transform:translateX(6px);transition:opacity .3s,transform .3s}
.epr-chat-oznaka.vidljivo{opacity:1;transform:none}
.epr-chat-otvoren .epr-chat-oznaka{display:none}

.epr-chat-prozor{position:fixed;right:16px;bottom:86px;z-index:2147483000;width:380px;max-width:calc(100vw - 32px);height:min(600px,calc(100vh - 110px));display:none;flex-direction:column;background:#fff;color:#1a1a1a;border-radius:18px;box-shadow:0 18px 60px rgba(0,0,0,.28);overflow:hidden;font:15px/1.45 var(--epr-font,system-ui,-apple-system,Segoe UI,Roboto,sans-serif)}
.epr-chat-otvoren .epr-chat-prozor{display:flex}
.epr-chat-zag{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--epr-boja,#1f2937);color:var(--epr-boja-tekst,#fff)}
.epr-chat-zag .epr-chat-avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex:none}
.epr-chat-zag .epr-chat-avatar svg{width:20px;height:20px;fill:currentColor}
.epr-chat-zag strong{display:block;font-size:15px;line-height:1.2}
.epr-chat-zag small{display:block;opacity:.8;font-size:12px}
.epr-chat-zag .epr-chat-zatvori{margin-left:auto;background:transparent;border:0;color:inherit;cursor:pointer;padding:6px;border-radius:8px;display:flex}
.epr-chat-zag .epr-chat-zatvori:hover{background:rgba(255,255,255,.15)}
.epr-chat-zag .epr-chat-zatvori svg{width:20px;height:20px;fill:currentColor}
.epr-chat-poruke{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:#f6f7f9;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.epr-chat-p{max-width:85%;padding:10px 14px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word;font-size:14.5px}
.epr-chat-p.bot{align-self:flex-start;background:#fff;border:1px solid #e6e8ec;border-bottom-left-radius:6px}
.epr-chat-p.ja{align-self:flex-end;background:var(--epr-boja,#1f2937);color:var(--epr-boja-tekst,#fff);border-bottom-right-radius:6px}
.epr-chat-p.greska{align-self:center;background:#fdecec;color:#8a1f1f;font-size:13px;max-width:100%}
.epr-chat-p a{color:inherit;text-decoration:underline}
.epr-chat-kuca{align-self:flex-start;background:#fff;border:1px solid #e6e8ec;border-radius:16px;border-bottom-left-radius:6px;padding:12px 14px;display:flex;gap:5px}
.epr-chat-kuca i{width:7px;height:7px;border-radius:50%;background:#9aa3ad;animation:eprKuca 1.2s infinite}
.epr-chat-kuca i:nth-child(2){animation-delay:.2s}.epr-chat-kuca i:nth-child(3){animation-delay:.4s}
@keyframes eprKuca{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
.epr-chat-unos{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #e6e8ec;background:#fff}
.epr-chat-unos textarea{flex:1;resize:none;border:1px solid #d7dbe0;border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.35;max-height:120px;min-height:42px;outline:none;color:#1a1a1a;background:#fff}
.epr-chat-unos textarea:focus{border-color:var(--epr-boja,#1f2937)}
.epr-chat-unos button{flex:none;width:42px;height:42px;border:0;border-radius:12px;background:var(--epr-boja,#1f2937);color:var(--epr-boja-tekst,#fff);cursor:pointer;display:flex;align-items:center;justify-content:center}
.epr-chat-unos button:disabled{opacity:.5;cursor:default}
.epr-chat-unos button svg{width:20px;height:20px;fill:currentColor}
.epr-chat-dno{font-size:11px;color:#7a838d;text-align:center;padding:0 12px 8px;background:#fff}
@media (max-width:600px){
  .epr-chat-prozor{right:0;bottom:0;left:0;top:0;width:100%;max-width:none;height:100%;height:100dvh;border-radius:0}
  .epr-chat-otvoren .epr-chat-dugme{display:none}
  .epr-chat-otvoren{overflow:hidden!important}
  .epr-chat-otvoren body{overflow:hidden!important;position:fixed;width:100%}
}
@media (prefers-reduced-motion:reduce){.epr-lm,.epr-chat-dugme,.epr-chat-oznaka{transition:none}.epr-chat-kuca i{animation:none}}

/* ---- obaveštenje na vrhu sajta ---- */
.epr-obavestenje{background:var(--epr-obavestenje-boja,#c62828);color:var(--epr-obavestenje-tekst,#fff);font:15px/1.45 var(--epr-font,system-ui,-apple-system,Segoe UI,Roboto,sans-serif);text-align:center;padding:10px 46px;position:relative;z-index:2147481000;margin:0;box-sizing:border-box;width:100%}
.epr-obavestenje p{margin:0}
.epr-obavestenje a{color:inherit;text-decoration:underline}
.epr-obavestenje-x{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:0;color:inherit;font:inherit;font-size:24px;line-height:1;cursor:pointer;padding:6px 10px;opacity:.85}
.epr-obavestenje-x:hover{opacity:1}
@media (max-width:600px){.epr-obavestenje{font-size:14px;padding:9px 40px 9px 12px;text-align:left}}
