/* Clickiya AI Chatbot */
.clickiya-chat {
  position: fixed;
  z-index: 1065;
  right: 16px;
  bottom: calc(var(--bottom-nav-h, 76px) + var(--bottom-nav-float, 12px) + 16px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
}
@media (min-width: 992px) {
  .clickiya-chat {
    bottom: 24px;
    right: 24px;
  }
}
.clickiya-chat-fab {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s;
}
.clickiya-chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}
.clickiya-chat-fab-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  background: transparent;
}
.clickiya-chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.5);
  animation: chat-fab-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes chat-fab-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.clickiya-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.12);
  overflow: hidden;
}
.clickiya-chat-panel[hidden] {
  display: none !important;
}
.clickiya-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
}
.clickiya-chat-head-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
}
.clickiya-chat-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.clickiya-chat-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.clickiya-chat-head-text strong {
  font-size: 15px;
}
.clickiya-chat-head-text span {
  font-size: 11px;
  opacity: 0.85;
}
.clickiya-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clickiya-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
  max-height: 88px;
  overflow-y: auto;
}
.clickiya-chat-chip {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.clickiya-chat-chip:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px);
}
.clickiya-chat-messages {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.clickiya-chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.clickiya-chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}
.clickiya-chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.clickiya-chat-msg--typing {
  opacity: 0.7;
  font-style: italic;
}
.clickiya-chat-form-wrap {
  padding: 0 12px 8px;
  border-top: 1px solid #e2e8f0;
  background: #fffbeb;
}
.clickiya-chat-form-title {
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: #1e3a5f;
}
.clickiya-chat-lead-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clickiya-chat-foot {
  padding: 8px 10px 10px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.clickiya-chat-cmd {
  border: none;
  background: #f1f5f9;
  color: #1e3a5f;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  margin: 0 4px 8px 0;
}
.clickiya-chat-cmd:hover {
  background: #dbeafe;
}
.clickiya-chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.clickiya-chat-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}
.clickiya-chat-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.clickiya-chat-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  flex-shrink: 0;
}
.clickiya-chat-send:disabled {
  opacity: 0.5;
}
.clickiya-chat.is-open .clickiya-chat-fab {
  transform: scale(0.92);
}
