.infobos-chatbot {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

.infobos-chatbot__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 72px;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 45, 105, 0.22);
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.infobos-chatbot__toggle:hover {
  transform: translateY(-1px);
}

.infobos-chatbot__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  border-radius: 14px;
}

.infobos-chatbot__toggle-text {
  font-weight: 700;
  color: #002d69;
}

.infobos-chatbot__panel {
  position: absolute;
  left: 0;
  bottom: 100px;
  width: min(380px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 132px));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d7dfec;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transform-origin: left bottom;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.infobos-chatbot__panel[hidden] {
  display: flex;
}

.infobos-chatbot[data-open="true"] .infobos-chatbot__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.infobos-chatbot__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 18px 12px;
  background: linear-gradient(135deg, #002d69 0%, #0b4b95 100%);
  color: #ffffff;
  align-items: flex-start;
}

.infobos-chatbot__header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.infobos-chatbot__header-logo {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 12px;
}

.infobos-chatbot__header p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.88;
}

.infobos-chatbot__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.infobos-chatbot__close:hover {
  transform: scale(1.06);
}

.infobos-chatbot[data-open="true"] .infobos-chatbot__toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.94);
}

.infobos-chatbot__messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f7f9fc;
}

.infobos-chatbot__message {
  max-width: 92%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 14px;
  word-break: break-word;
}

.infobos-chatbot__message--assistant {
  margin-right: auto;
  background: #ffffff;
  border: 1px solid #d7dfec;
}

.infobos-chatbot__message--user {
  margin-left: auto;
  background: #dfeeff;
  color: #0f172a;
}

.infobos-chatbot__message-label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #335985;
}

.infobos-chatbot__message-body a {
  color: #0b4b95;
}

.infobos-chatbot__footer {
  border-top: 1px solid #d7dfec;
  background: #ffffff;
  padding: 12px 14px 14px;
}

.infobos-chatbot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.infobos-chatbot__suggestions-title {
  width: 100%;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #335985;
}

.infobos-chatbot__suggestion {
  border: 1px solid #b7c9e3;
  border-radius: 999px;
  background: #f3f7fd;
  color: #002d69;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

.infobos-chatbot__suggestion:hover {
  background: #e2edfb;
}

.infobos-chatbot__input-row {
  display: flex;
  gap: 10px;
}

.infobos-chatbot__input {
  flex: 1;
  min-width: 0;
  border: 1px solid #b7c9e3;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0f172a;
}

.infobos-chatbot__send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: #002d69;
  color: #ffffff;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.infobos-chatbot__send:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.infobos-chatbot__privacy {
  margin: 10px 0 0;
  font-size: 12px;
}

.infobos-chatbot__status {
  margin-bottom: 12px;
  color: #526173;
  font-size: 13px;
}

.infobos-chatbot__toggle:focus,
.infobos-chatbot__close:focus,
.infobos-chatbot__input:focus,
.infobos-chatbot__send:focus,
.infobos-chatbot__suggestion:focus {
  outline: 2px solid #0b4b95;
  outline-offset: 2px;
}

@media (max-width: 782px) {
  .infobos-chatbot {
    left: 12px;
    bottom: 12px;
  }

  .infobos-chatbot__toggle {
    width: 112px;
    height: 62px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .infobos-chatbot__panel {
    width: calc(100vw - 24px);
    left: 0;
    bottom: 84px;
    height: min(75vh, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .infobos-chatbot,
  .infobos-chatbot * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
