.karoba-chatbot {
  --karoba-blue: #174a7c;
  --karoba-blue-dark: #0f355b;
  --karoba-yellow: #f4b41a;
  --karoba-border: #dbe3ea;
  position: fixed;
  left: 22px;
  right: auto;
  bottom: 22px;
  z-index: 99999;
  font-family: Arial, Helvetica, sans-serif;
}

.karoba-chatbot *, .karoba-chatbot *::before, .karoba-chatbot *::after { box-sizing: border-box; }

.karoba-chatbot__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--karoba-blue);
  box-shadow: 0 8px 28px rgba(15, 53, 91, .28);
  font-weight: 700;
  cursor: pointer;
}

.karoba-chatbot__launcher:hover, .karoba-chatbot__launcher:focus-visible { background: var(--karoba-blue-dark); }

.karoba-chatbot__panel {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 64px;
  width: min(370px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--karoba-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(14, 34, 54, .25);
}

.karoba-chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  color: #fff;
  background: var(--karoba-blue);
}

.karoba-chatbot__header strong, .karoba-chatbot__header small { display: block; color: #fff; }
.karoba-chatbot__header small { margin-top: 2px; opacity: .85; }
.karoba-chatbot__close { border: 0; color: #fff; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }

.karoba-chatbot__messages {
  height: 285px;
  padding: 15px;
  overflow-y: auto;
  background: #f5f7fa;
}

.karoba-chatbot__message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #17212b;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
  font-size: 14px;
  line-height: 1.45;
}

.karoba-chatbot__message a { color: #075eaa; font-weight: 700; }
.karoba-chatbot__message--user { margin-left: auto; color: #fff; background: var(--karoba-blue); }

.karoba-chatbot__suggestions { display: flex; gap: 7px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid var(--karoba-border); }
.karoba-chatbot__suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #b9c9d8; border-radius: 999px; color: var(--karoba-blue-dark); background: #fff; font-size: 12px; cursor: pointer; }

.karoba-chatbot__form { display: flex; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--karoba-border); }
.karoba-chatbot__form input { min-width: 0; flex: 1; height: 42px; padding: 0 11px; border: 1px solid #b9c9d8; border-radius: 9px; }
.karoba-chatbot__form button { padding: 0 14px; border: 0; border-radius: 9px; color: #17212b; background: var(--karoba-yellow); font-weight: 700; cursor: pointer; }
.karoba-chatbot__notice { margin: 0; padding: 0 13px 12px; color: #5f6d78; font-size: 11px; line-height: 1.35; }

@media (max-width: 480px) {
  .karoba-chatbot { left: 14px; right: auto; bottom: 14px; }
  .karoba-chatbot__launcher span:last-child { display: none; }
  .karoba-chatbot__launcher { width: 52px; justify-content: center; padding: 12px; }
  .karoba-chatbot__panel { bottom: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .karoba-chatbot * { scroll-behavior: auto !important; }
}
