/* Elite Blagajna AI chat widget */
.eb-chat-root { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: 'Segoe UI', Roboto, Arial, sans-serif; }
.eb-chat-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #ECC97A, #D8AE55); color: #201603;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center;
}
.eb-chat-btn:hover { filter: brightness(1.05); }
.eb-chat-btn svg { width: 26px; height: 26px; }
.eb-chat-panel {
  display: none; position: absolute; right: 0; bottom: 68px; width: min(360px, calc(100vw - 28px));
  height: min(480px, calc(100vh - 120px)); background: #0E121B; border: 1px solid #232B39;
  border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  flex-direction: column;
}
.eb-chat-root.open .eb-chat-panel { display: flex; }
.eb-chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px; border-bottom: 1px solid #232B39; background: #131826;
}
.eb-chat-head strong { color: #EDEFF3; font-size: 14px; }
.eb-chat-close {
  border: 1px solid #232B39; background: transparent; color: #EDEFF3; border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer;
}
.eb-chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.eb-msg {
  max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.eb-msg.bot { align-self: flex-start; background: #131826; color: #EDEFF3; border: 1px solid #232B39; }
.eb-msg.user { align-self: flex-end; background: rgba(216,174,85,0.16); color: #F3E7C7; border: 1px solid rgba(216,174,85,0.35); }
.eb-msg.err { align-self: flex-start; background: rgba(229,115,115,0.1); color: #F0B0B0; border: 1px solid rgba(229,115,115,0.35); }
.eb-chat-form {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid #232B39; background: #131826;
}
.eb-chat-form input {
  flex: 1; border: 1px solid #232B39; background: #0A0D14; color: #EDEFF3;
  border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 14px; outline: none;
}
.eb-chat-form input:focus { border-color: rgba(216,174,85,0.5); }
.eb-chat-form button {
  border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, #ECC97A, #D8AE55); color: #201603;
}
.eb-chat-form button:disabled { opacity: 0.55; cursor: wait; }
@media (max-width: 480px) {
  .eb-chat-root { right: 12px; bottom: 12px; }
  .eb-chat-panel { bottom: 64px; height: min(70vh, 520px); }
}
