#cagri-chat-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#cagri-chat-toggle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: none;
  background: #c8102e;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#cagri-chat-panel {
  position: absolute;
  right: 0;
  bottom: 4rem;
  width: min(22rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#cagri-chat-panel[hidden] {
  display: none !important;
}

#cagri-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: #fff;
}

#cagri-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

#cagri-chat-messages {
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cagri-chat-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 92%;
}

.cagri-chat-msg--user {
  align-self: flex-end;
  background: #f0f0f0;
}

.cagri-chat-msg--assistant {
  align-self: flex-start;
  background: #fde8eb;
}

#cagri-chat-form {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem;
  border-top: 1px solid #eee;
}

#cagri-chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

#cagri-chat-form button[type="submit"] {
  border: none;
  border-radius: 8px;
  background: #c8102e;
  color: #fff;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
