#tsa-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

#chat-button {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #0c3c60, #165985);
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

#chat-box {
  display: none;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e6edf4;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #0c3c60;
  color: #fff;
  padding: 16px;
}

.chat-header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-header-title strong {
  font-size: 16px;
}

.chat-header-title span {
  font-size: 12px;
  opacity: .9;
}

#chat-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#chat-content {
  padding: 16px;
}

.chat-bubble {
  background: #f4f7fa;
  color: #16222c;
  padding: 13px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  line-height: 1.45;
  font-size: 14px;
}

.chat-section-title {
  font-size: 12px;
  color: #5e6c78;
  margin: 6px 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-option,
.chat-secondary,
.chat-primary {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: .2s ease;
  font-size: 14px;
}

.chat-option {
  background: #eef4f8;
  color: #0c3c60;
  font-weight: 700;
}

.chat-option:hover {
  background: #dfeaf1;
}

.chat-primary {
  background: #27933E;
  color: #fff;
  font-weight: 700;
}

.chat-primary:hover {
  filter: brightness(.96);
}

.chat-secondary {
  background: #f3f3f3;
  color: #333;
}

.chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chat-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chat-actions .chat-secondary,
.chat-actions .chat-primary {
  flex: 1;
}

.chat-note {
  margin-top: 10px;
  font-size: 12px;
  color: #697784;
  line-height: 1.4;
}

@media (max-width: 640px) {
  #tsa-chatbot {
    right: 12px;
    bottom: 12px;
  }

  #chat-box {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .chat-grid {
    grid-template-columns: 1fr;
  }
}
