/* Keep the AI concierge isolated from legacy theme selectors. */
.vaghta-ai-chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  font-family: inherit;
  color: #111827;
}

.vaghta-ai-chat::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  background: rgba(2, 6, 23, .52);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}

.vaghta-ai-chat.is-open::before {
  opacity: 1;
  visibility: visible;
}

.vaghta-ai-chat *,
.vaghta-ai-chat *::before,
.vaghta-ai-chat *::after {
  box-sizing: border-box;
}

.vaghta-ai-chat__launcher {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(15, 118, 110, .3);
}

.vaghta-ai-chat__launcher .material-symbols-outlined {
  font-size: 23px;
}

@media (max-width: 1023px) {
  .vaghta-ai-chat {
    right: 14px;
    bottom: 95px;
  }

  .vaghta-ai-chat__launcher {
    min-height: 48px;
    padding: 0 14px;
    font-size: 11px;
  }
}

.vaghta-ai-chat__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 110px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: .2s ease;
}

.vaghta-ai-chat__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.vaghta-ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff;
}

.vaghta-ai-chat__header strong,
.vaghta-ai-chat__header small {
  display: block;
}

.vaghta-ai-chat__header strong {
  font-size: 14px;
}

.vaghta-ai-chat__header small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
}

.vaghta-ai-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vaghta-ai-chat__header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

.vaghta-ai-chat__header button[hidden] {
  display: none;
}

.vaghta-ai-chat__header button:disabled {
  opacity: .45;
  cursor: wait;
}

.vaghta-ai-chat__header button .material-symbols-outlined {
  display: block;
  font-size: 19px;
}

.vaghta-ai-chat__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
}

.vaghta-ai-chat__message {
  max-width: 90%;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.vaghta-ai-chat__message--assistant {
  align-self: flex-start;
  border-bottom-right-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
}

.vaghta-ai-chat__message--user {
  align-self: flex-end;
  border-bottom-left-radius: 4px;
  background: #0f766e;
  color: #fff;
}

.vaghta-ai-chat__message a {
  display: inline-block;
  margin: 4px 2px;
  color: #0f766e;
  font-weight: 900;
  text-decoration: underline;
}

.vaghta-ai-chat__message.is-typing {
  color: #64748b;
  animation: vaghta-chat-pulse 1.1s infinite alternate;
}

.vaghta-ai-chat__choices {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  white-space: normal;
}

.vaghta-ai-chat__choices button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  background: #f0fdfa;
  color: #115e59;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.7;
  cursor: pointer;
  text-align: right;
  transition: background .15s ease, border-color .15s ease;
}

.vaghta-ai-chat__choices button:hover,
.vaghta-ai-chat__choices button:focus-visible {
  border-color: #0f766e;
  background: #ccfbf1;
  outline: none;
}

.vaghta-ai-chat__request-form {
  display: grid;
  gap: 9px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #d1fae5;
  white-space: normal;
}

.vaghta-ai-chat__request-form label {
  display: grid;
  gap: 4px;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
}

.vaghta-ai-chat__request-form input,
.vaghta-ai-chat__request-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 11px;
  line-height: 1.7;
  outline: none;
}

.vaghta-ai-chat__request-form textarea {
  resize: vertical;
}

.vaghta-ai-chat__request-form textarea[readonly] {
  background: #f8fafc;
  color: #475569;
}

.vaghta-ai-chat__request-form input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.vaghta-ai-chat__request-form button {
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: #f59e0b;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.vaghta-ai-chat__request-form button:disabled {
  opacity: .55;
  cursor: wait;
}

.vaghta-ai-chat__intents {
  padding: 14px 16px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.vaghta-ai-chat__intents[hidden] {
  display: none;
}

.vaghta-ai-chat__intents p {
  margin: 0 0 9px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.vaghta-ai-chat__intents button {
  width: 100%;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  background: #f0fdfa;
  color: #115e59;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  text-align: right;
}

.vaghta-ai-chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.vaghta-ai-chat__form[hidden] {
  display: none;
}

.vaghta-ai-chat__form textarea {
  min-height: 42px;
  max-height: 96px;
  flex: 1;
  resize: none;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  padding: 10px 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
}

.vaghta-ai-chat__form textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.vaghta-ai-chat__form button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f59e0b;
  color: #fff;
  cursor: pointer;
}

.vaghta-ai-chat__form button:disabled {
  opacity: .45;
  cursor: wait;
}

.vaghta-ai-chat__form .material-symbols-outlined {
  direction: ltr;
  font-size: 20px;
}

.vaghta-ai-chat__support {
  align-self: stretch;
  padding: 11px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.vaghta-ai-chat__notice {
  margin: 0;
  padding: 5px 12px 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 9px;
  text-align: center;
}

@keyframes vaghta-chat-pulse {
  to {
    opacity: .45;
  }
}

@media (min-width: 1024px) {
  .vaghta-ai-chat {
    right: 24px;
    bottom: 24px;
  }

  .vaghta-ai-chat__panel {
    bottom: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .vaghta-ai-chat__panel,
  .vaghta-ai-chat__message.is-typing {
    transition: none;
    animation: none;
  }
}