.vai-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  border: 0;
  border-radius: 999px;
  background: #16294d;
  color: #fff;
  box-shadow: 0 12px 32px rgba(22, 41, 77, .28);
  font: 700 15px/1.2 "Source Sans 3", Arial, sans-serif;
  padding: 13px 18px;
  cursor: pointer;
}

.vai-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1001;
  width: min(420px, 100vw);
  background: #ffffff;
  color: #1c2740;
  box-shadow: -20px 0 50px rgba(22, 41, 77, .22);
  transform: translateX(105%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans 3", Arial, sans-serif;
}

.vai-sidebar.is-open {
  transform: translateX(0);
}

.vai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7ec;
  background: #16294d;
  color: #fff;
}

.vai-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.vai-subtitle {
  margin: 5px 0 0;
  color: #c6d1e4;
  font-size: 14px;
  line-height: 1.35;
}

.vai-close {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vai-message {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vai-message.ai {
  background: #fff;
  border: 1px solid #e5e7ec;
  align-self: flex-start;
}

.vai-message.user {
  background: #16294d;
  color: #fff;
  align-self: flex-end;
}

.vai-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid #e5e7ec;
  background: #fff;
}

.vai-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  padding: 12px;
  font: 400 15px/1.2 "Source Sans 3", Arial, sans-serif;
}

.vai-input:focus {
  outline: none;
  border-color: #16294d;
  box-shadow: 0 0 0 3px rgba(22, 41, 77, .12);
}

.vai-send {
  border: 0;
  border-radius: 6px;
  background: #16294d;
  color: #fff;
  padding: 0 16px;
  font: 700 14px/1 "Source Sans 3", Arial, sans-serif;
  cursor: pointer;
}

.vai-send:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .vai-toggle {
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .vai-sidebar {
    width: 100vw;
  }
}
