#ogniwo-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

#ogniwo-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ff9d4d, #ff6a1a);
  box-shadow: 0 6px 20px rgba(255, 106, 26, 0.4);
  font-size: 22px;
  line-height: 1;
}

#ogniwo-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: 420px;
  max-height: 70vh;
  background: #0a0a0b;
  border: 1px solid #2a2620;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
#ogniwo-chat-panel.ogniwo-chat-panel--hidden {
  display: none;
}

.ogniwo-chat-header {
  padding: 14px 16px;
  font-weight: 700;
  color: #f5f1ea;
  border-bottom: 1px solid #2a2620;
  background: #161519;
}

.ogniwo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ogniwo-chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.ogniwo-chat-bubble--user {
  align-self: flex-end;
  background: #ff6a1a;
  color: #1a0d00;
}
.ogniwo-chat-bubble--assistant {
  align-self: flex-start;
  background: #161519;
  color: #f5f1ea;
  border: 1px solid #2a2620;
}
.ogniwo-chat-bubble--error {
  align-self: center;
  background: transparent;
  color: #f85149;
  font-size: 13px;
}

.ogniwo-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #2a2620;
  background: #0a0a0b;
}
.ogniwo-chat-form input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a2620;
  background: #161519;
  color: #f5f1ea;
  font-family: inherit;
  font-size: 14px;
}
.ogniwo-chat-form button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #25e0bf;
  color: #06231d;
  font-weight: 700;
  font-family: inherit;
}
.ogniwo-chat-form input:disabled,
.ogniwo-chat-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
