.vyq-chat-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vyq-chat-launcher {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 14px 20px;
  background: #10233f;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(3, 13, 31, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.vyq-chat-launcher:hover,
.vyq-chat-launcher:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(3, 13, 31, 0.34);
}

.vyq-chat-panel {
  display: none;
  width: min(430px, calc(100vw - 28px));
  max-height: min(740px, calc(100vh - 110px));
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(19, 43, 76, 0.16);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(4, 20, 45, 0.34);
}

.vyq-chat-panel.vyq-chat-open {
  display: flex;
  flex-direction: column;
}

.vyq-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 15px;
  background: linear-gradient(135deg, #10233f 0%, #16355f 100%);
  color: #ffffff;
}

.vyq-chat-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.vyq-chat-subtitle {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.vyq-chat-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vyq-chat-body {
  padding: 16px;
  overflow-y: auto;
  background: #f5f7fb;
  flex: 1;
  min-height: 280px;
  scroll-behavior: smooth;
}

.vyq-msg {
  width: fit-content;
  max-width: 90%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vyq-msg-assistant {
  background: #ffffff;
  color: #13233a;
  border: 1px solid rgba(19, 43, 76, 0.1);
  border-bottom-left-radius: 5px;
}

.vyq-msg-user {
  margin-left: auto;
  background: #10233f;
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.vyq-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 2px;
}

.vyq-chat-chip {
  border: 1px solid rgba(22, 53, 95, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  background: #ffffff;
  color: #15345c;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}

.vyq-chat-chip:hover,
.vyq-chat-chip:focus {
  outline: none;
  border-color: rgba(22, 53, 95, 0.38);
  background: #f9fbff;
}

.vyq-bank-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid rgba(22, 53, 95, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  background: #ffffff;
  color: #10233f;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  cursor: pointer;
}

.vyq-question-bank {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 43, 76, 0.08);
}

.vyq-question-bank.vyq-question-bank-open {
  display: block;
}

.vyq-bank-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.vyq-bank-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(22, 53, 95, 0.14);
  border-radius: 999px;
  padding: 7px 9px;
  background: #ffffff;
  color: #41536d;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.vyq-bank-tab-active {
  background: #10233f;
  color: #ffffff;
  border-color: #10233f;
}

.vyq-bank-grid {
  max-height: 230px;
  overflow-y: auto;
  padding-right: 2px;
}

.vyq-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(19, 43, 76, 0.1);
  background: #ffffff;
}

.vyq-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(19, 43, 76, 0.16);
  border-radius: 999px;
  padding: 12px 13px;
  font-size: 14px;
  color: #13233a;
  outline: none;
}

.vyq-chat-input:focus {
  border-color: rgba(22, 53, 95, 0.48);
  box-shadow: 0 0 0 3px rgba(22, 53, 95, 0.08);
}

.vyq-chat-send {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #10233f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.vyq-chat-send:disabled,
.vyq-chat-input:disabled {
  opacity: 0.62;
  cursor: wait;
}

.vyq-chat-loading {
  color: #64748b;
  font-style: italic;
}

.vyq-chat-foot {
  padding: 9px 14px 12px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  border-top: 1px solid rgba(19, 43, 76, 0.07);
}

@media (max-width: 520px) {
  .vyq-chat-root {
    right: 14px;
    bottom: 14px;
  }

  .vyq-chat-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 92px);
  }
}
