#gallats-chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f5a623;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-size: 26px;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
#gallats-chat-launcher:hover { transform: scale(1.1); }

/* Pulzující efekt pro upoutání pozornosti */
@keyframes gallats-pulse-anim {
  0% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(245,166,35,0.7); }
  70% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 20px rgba(245,166,35,0); }
  100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(245,166,35,0); }
}
#gallats-chat-launcher.gallats-pulse {
  animation: gallats-pulse-anim 1.5s infinite;
}

#gallats-chat-window {
  position: fixed;
  bottom: 92px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#gallats-chat-window.gallats-open {
  display: flex;
}

#gallats-chat-header {
  background: #1c2b39;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#gallats-chat-header strong {
  font-size: 15px;
}

#gallats-chat-header span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
}

#gallats-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

#gallats-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f7f8fa;
}

.gallats-msg {
  max-width: 85%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.gallats-msg.user {
  background: #f5a623;
  color: #1c2b39;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.gallats-msg.assistant {
  background: #fff;
  border: 1px solid #e4e6ea;
  color: #1c2b39;
  margin-right: auto;
  border-bottom-left-radius: 2px;
}

.gallats-msg.typing {
  color: #888;
  font-style: italic;
}

#gallats-chat-form {
  display: flex;
  border-top: 1px solid #e4e6ea;
  padding: 8px;
  gap: 8px;
}

#gallats-chat-input {
  flex: 1;
  border: 1px solid #d7dade;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  resize: none;
}

#gallats-chat-send {
  background: #1c2b39;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
}

#gallats-chat-send:disabled {
  opacity: 0.5;
  cursor: default;
}
