:root {
  --ev-chatbot-primary: #0b223d;
  --ev-chatbot-secondary: #f8fafc;
  --ev-chatbot-accent: #d9a441;
  --ev-chatbot-accent-light: #f1cb7d;
  --ev-chatbot-accent-dark: #b38234;
  --ev-chatbot-text: #0f243a;
  --ev-chatbot-surface: #ffffff;
}

.ev-chatbot {
  position: fixed;
  z-index: 1200;
  bottom: 20px;
  right: 20px;
  width: auto;
  color: var(--ev-chatbot-text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ev-chatbot[data-position="left"] {
  right: auto;
  left: 20px;
  align-items: flex-start;
}

.ev-chatbot * {
  box-sizing: border-box;
}

.ev-chatbot__toggle,
.ev-chatbot__window {
  pointer-events: auto;
}

/* ==============================================================
   Chatbot Toggle Pill Button
   ============================================================== */
.ev-chatbot__toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  background:
    radial-gradient(circle at 18% 50%, rgba(217, 164, 65, 0.24), transparent 48%),
    linear-gradient(135deg, #091e36 0%, #10345b 58%, #17487a 100%);
  color: #fff;
  box-shadow:
    0 14px 34px -4px rgba(9, 30, 54, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 22px rgba(217, 164, 65, 0.18);
  cursor: pointer;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: visible;
  outline: none;
}

.ev-chatbot__toggle:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(217, 164, 65, 0.75);
  box-shadow:
    0 20px 42px -4px rgba(9, 30, 54, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 28px rgba(217, 164, 65, 0.38);
}

.ev-chatbot__toggle:active {
  transform: translateY(0) scale(0.98);
}

.ev-chatbot__toggle-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ev-chatbot__toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.38), rgba(255, 255, 255, 0.18));
  border: 1.5px solid rgba(217, 164, 65, 0.65);
  font-size: 19px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transition: transform .25s ease;
}

.ev-chatbot__toggle:hover .ev-chatbot__toggle-icon {
  transform: scale(1.08) rotate(4deg);
}

.ev-chatbot__pulse-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #091e36;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: ev-pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes ev-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ev-chatbot__toggle-copy {
  display: grid;
  text-align: left;
  line-height: 1.25;
}

.ev-chatbot__toggle-copy small {
  color: var(--ev-chatbot-accent-light);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.ev-chatbot__toggle-copy strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ==============================================================
   Chatbot Window
   ============================================================== */
.ev-chatbot__window {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(217, 164, 65, 0.28);
  box-shadow:
    0 28px 75px -10px rgba(9, 30, 54, 0.38),
    0 10px 25px -5px rgba(9, 30, 54, 0.16),
    0 0 0 1px rgba(9, 30, 54, 0.05);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .24s cubic-bezier(0.16, 1, 0.3, 1), transform .24s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  backdrop-filter: blur(20px);
  pointer-events: none;
  z-index: 1210;
}

.ev-chatbot[data-open="true"] .ev-chatbot__window {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

/* ==============================================================
   Header
   ============================================================== */
.ev-chatbot__header {
  padding: 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 164, 65, 0.28), transparent 45%),
    linear-gradient(135deg, #091e36 0%, #11365e 60%, #17487a 100%);
  position: relative;
  border-bottom: 1px solid rgba(217, 164, 65, 0.22);
}

.ev-chatbot__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ev-chatbot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ev-chatbot__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ev-chatbot__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.36), rgba(255, 255, 255, 0.16));
  border: 1.5px solid rgba(217, 164, 65, 0.55);
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ev-chatbot__online-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #091e36;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: ev-pulse-ring 2s infinite;
}

.ev-chatbot__title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ev-chatbot__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ev-chatbot__verified-badge {
  color: var(--ev-chatbot-accent-light);
  font-size: 14px;
  display: inline-flex;
}

.ev-chatbot__subtitle {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ev-chatbot__status-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 6px #22c55e;
}

.ev-chatbot__close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s ease;
  outline: none;
}

.ev-chatbot__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* ==============================================================
   Chat Body & Message Bubbles
   ============================================================== */
.ev-chatbot__body {
  background: #f8fafc;
  position: relative;
}

.ev-chatbot__messages {
  display: grid;
  gap: 10px;
  max-height: 370px;
  overflow-y: auto;
  padding: 14px 14px 10px;
  scroll-behavior: smooth;
}

/* Custom sleek scrollbar */
.ev-chatbot__messages::-webkit-scrollbar {
  width: 5px;
}
.ev-chatbot__messages::-webkit-scrollbar-track {
  background: transparent;
}
.ev-chatbot__messages::-webkit-scrollbar-thumb {
  background: rgba(18, 52, 86, 0.15);
  border-radius: 999px;
}
.ev-chatbot__messages::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 52, 86, 0.3);
}

.ev-chatbot__message {
  display: grid;
  gap: 4px;
}

.ev-chatbot__message-bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.48;
  font-size: 13px;
  word-break: break-word;
}

.ev-chatbot__message--assistant .ev-chatbot__message-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(18, 52, 86, 0.08);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(10, 28, 48, 0.05);
}

.ev-chatbot__message--user {
  justify-items: end;
}

.ev-chatbot__message--user .ev-chatbot__message-bubble {
  background: linear-gradient(135deg, #091e36 0%, #12385f 70%, #1a4f82 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 6px 18px rgba(9, 30, 54, 0.22);
}

.ev-chatbot__timestamp {
  font-size: 10px;
  color: rgba(24, 49, 83, .55);
  padding: 0 4px;
}

/* ==============================================================
   Interactive Controls & Choices
   ============================================================== */
.ev-chatbot__choices,
.ev-chatbot__faq-list,
.ev-chatbot__property-grid {
  display: grid;
  gap: 7px;
  margin-top: 6px;
}

.ev-chatbot__choice,
.ev-chatbot__faq,
.ev-chatbot__property {
  width: 100%;
  border: 1px solid rgba(18, 52, 86, 0.1);
  background: #ffffff;
  color: #153860;
  border-radius: 13px;
  padding: 10px 13px;
  text-align: left;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(18, 52, 86, 0.04);
}

.ev-chatbot__choice:hover,
.ev-chatbot__faq:hover,
.ev-chatbot__property:hover {
  transform: translateY(-2px);
  border-color: var(--ev-chatbot-accent);
  background: #fdfbf7;
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.16);
  color: #0b1f33;
}

.ev-chatbot__choice:disabled,
.ev-chatbot__faq:disabled,
.ev-chatbot__property:disabled {
  cursor: default;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

.ev-chatbot__choice.is-selected,
.ev-chatbot__faq.is-selected,
.ev-chatbot__property.is-selected {
  opacity: .85;
  border-color: var(--ev-chatbot-accent);
  background: #fbf7ee;
}

.ev-chatbot__choice {
  font-weight: 600;
  font-size: 12.5px;
}

.ev-chatbot__choice--entry {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-chatbot__choice--entry > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--ev-chatbot-accent-dark);
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(217, 164, 65, 0.28);
  font-size: 1.05rem;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.ev-chatbot__choice:hover .ev-chatbot__choice--entry > i,
.ev-chatbot__choice--entry:hover > i {
  background: var(--ev-chatbot-accent);
  color: #ffffff;
  transform: scale(1.08);
}

.ev-chatbot__property {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
}

.ev-chatbot__property img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(17,44,77,.12);
}

.ev-chatbot__property strong,
.ev-chatbot__faq strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  color: #0b223d;
}

.ev-chatbot__property small,
.ev-chatbot__faq span {
  display: block;
  color: rgba(24, 49, 83, .72);
  font-size: 11.5px;
}

/* ==============================================================
   Composer & Forms
   ============================================================== */
.ev-chatbot__composer {
  padding: 0 14px 12px;
}

.ev-chatbot__fields {
  display: grid;
  gap: 7px;
  margin-top: 6px;
}

.ev-chatbot__fields input,
.ev-chatbot__fields textarea,
.ev-chatbot__fields select {
  width: 100%;
  border: 1px solid rgba(24, 49, 83, .14);
  border-radius: 12px;
  padding: 9px 12px;
  background: #ffffff;
  font: inherit;
  font-size: 12.5px;
  color: var(--ev-chatbot-text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ev-chatbot__fields input:focus,
.ev-chatbot__fields textarea:focus,
.ev-chatbot__fields select:focus,
.ev-chatbot__search input:focus {
  outline: none;
  border-color: var(--ev-chatbot-accent);
  box-shadow: 0 0 0 3.5px rgba(217, 164, 65, 0.18);
}

.ev-chatbot__fields textarea {
  min-height: 74px;
  resize: vertical;
}

.ev-chatbot__submit,
.ev-chatbot__back,
.ev-chatbot__whatsapp {
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.ev-chatbot__submit {
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--ev-chatbot-accent), #f0ca72);
  color: #0b1f33;
  border: 1px solid rgba(217, 164, 65, 0.4);
  box-shadow: 0 14px 28px rgba(169, 121, 43, .25);
  font-size: 13px;
  transition: all .2s ease;
}

.ev-chatbot__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(169, 121, 43, .35);
  filter: brightness(1.03);
}

/* ==============================================================
   Footer
   ============================================================== */
.ev-chatbot__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(24, 49, 83, .07);
}

.ev-chatbot__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(37, 211, 102, .3);
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11.5px;
  line-height: 1;
  transition: all .18s ease;
}

.ev-chatbot__whatsapp:hover {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.ev-chatbot__whatsapp:only-child {
  margin-left: auto;
}

.ev-chatbot__meta {
  display: flex;
  flex: 1 1 auto;
}

.ev-chatbot__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid rgba(24, 49, 83, .12);
  border-radius: 999px;
  background: #fff;
  color: rgba(24, 49, 83, .76);
  font-size: 11.5px;
  line-height: 1;
  transition: all .18s ease;
}

.ev-chatbot__back i,
.ev-chatbot__whatsapp i {
  font-size: 14px;
}

.ev-chatbot__back:hover {
  background: #f1f5f9;
  color: #0b223d;
  border-color: rgba(24, 49, 83, .24);
}

/* ==============================================================
   Typing Indicator
   ============================================================== */
.ev-chatbot__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ev-chatbot__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ev-chatbot-accent);
  animation: ev-chatbot-bounce 1.05s infinite ease-in-out;
}

.ev-chatbot__typing span:nth-child(2) { animation-delay: .15s; }
.ev-chatbot__typing span:nth-child(3) { animation-delay: .3s; }

@keyframes ev-chatbot-bounce {
  0%, 80%, 100% { transform: scale(.7); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.ev-chatbot__search {
  margin-top: 8px;
}

.ev-chatbot__search input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(24,49,83,.14);
  border-radius: 12px;
  background: #ffffff;
}

.ev-chatbot__empty,
.ev-chatbot__error {
  font-size: 12.5px;
  color: rgba(24, 49, 83, .7);
  padding: 6px 2px 0;
}

/* ==============================================================
   AI Chat Input Bar
   ============================================================== */
.ev-chatbot__ai-bar {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid rgba(24, 49, 83, 0.08);
}

.ev-chatbot__ai-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1.5px solid rgba(24, 49, 83, 0.08);
  border-radius: 999px;
  padding: 3px 5px 3px 14px;
  transition: all .2s ease;
}

.ev-chatbot__ai-form:focus-within {
  border-color: var(--ev-chatbot-accent);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.2);
  background: #ffffff;
}

.ev-chatbot__ai-input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--ev-chatbot-text);
  outline: none;
  padding: 7px 0;
  font-family: inherit;
}

.ev-chatbot__ai-send {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #091e36, #12385f);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 3px 8px rgba(9, 30, 54, 0.25);
  outline: none;
}

.ev-chatbot__ai-send:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--ev-chatbot-accent), #f0ca72);
  color: #091e36;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35);
}

/* ==============================================================
   Action Chips
   ============================================================== */
.ev-chatbot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ev-chatbot__chip {
  border: 1px solid rgba(217, 164, 65, 0.38);
  background: #ffffff;
  color: #0e2b4d;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: 0 2px 5px rgba(9, 30, 54, 0.05);
}

.ev-chatbot__chip:hover {
  background: linear-gradient(135deg, #091e36, #153c63);
  color: #ffffff;
  border-color: #091e36;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(9, 30, 54, 0.2);
}

.ev-chatbot__chip:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ==============================================================
   Quick Contact Form
   ============================================================== */
.ev-chatbot__quick-form {
  margin-top: 8px;
  background: linear-gradient(180deg, #ffffff, #fdfbf7);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(217, 164, 65, 0.08);
}

.ev-chatbot__quick-form-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0b223d;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ev-chatbot__quick-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ev-chatbot__quick-input {
  width: 100%;
  padding: 8px 11px;
  font-size: 12px;
  border: 1px solid rgba(24, 49, 83, 0.16);
  border-radius: 9px;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  color: var(--ev-chatbot-text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ev-chatbot__quick-input:focus {
  border-color: var(--ev-chatbot-accent);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18);
}

.ev-chatbot__quick-submit {
  width: 100%;
  margin-top: 3px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #091e36, #12385f);
  color: #ffffff;
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(9, 30, 54, 0.2);
}

.ev-chatbot__quick-submit:hover {
  background: linear-gradient(135deg, var(--ev-chatbot-accent), #f0ca72);
  color: #091e36;
  border-color: var(--ev-chatbot-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 164, 65, 0.3);
}

.ev-chatbot__quick-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ev-chatbot__quick-success {
  font-size: 12px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ==============================================================
   Proactive Teaser Balloon
   ============================================================== */
.ev-chatbot__teaser {
  position: absolute;
  bottom: 68px;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(217, 164, 65, 0.38);
  border-radius: 16px;
  padding: 11px 15px;
  box-shadow:
    0 18px 42px rgba(9, 30, 54, 0.2),
    0 0 0 1px rgba(217, 164, 65, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 290px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #0b1f33;
  animation: ev-teaser-fade-in .35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ev-chatbot[data-position="left"] .ev-chatbot__teaser {
  right: auto;
  left: 0;
}

.ev-chatbot__teaser:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(9, 30, 54, 0.25),
    0 0 0 1px rgba(217, 164, 65, 0.35);
}

.ev-chatbot__teaser::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(217, 164, 65, 0.38);
  border-bottom: 1px solid rgba(217, 164, 65, 0.38);
  transform: rotate(45deg);
}

.ev-chatbot[data-position="left"] .ev-chatbot__teaser::after {
  right: auto;
  left: 24px;
}

.ev-chatbot__teaser-content {
  flex: 1 1 auto;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.ev-chatbot__teaser-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: rgba(24, 49, 83, 0.4);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  transition: color .15s ease;
}

.ev-chatbot__teaser-close:hover {
  color: #0b223d;
}

@keyframes ev-teaser-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================
   Mobile Responsiveness
   ============================================================== */
@media (max-width: 640px) {
  .ev-chatbot {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: stretch;
  }

  .ev-chatbot[data-position="left"] {
    left: 14px;
  }

  .ev-chatbot__window {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 84px;
    border-radius: 20px;
  }

  .ev-chatbot__messages {
    max-height: 52vh;
  }

  .ev-chatbot__toggle-copy {
    display: none;
  }

  .ev-chatbot__toggle {
    padding: 8px;
    border-radius: 50%;
    margin-left: auto;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .ev-chatbot__toggle-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* 2026 conversational experience: one thread, one composer */
.ev-chatbot [hidden] {
  display: none !important;
}

.ev-chatbot__window {
  width: min(408px, calc(100vw - 28px));
  border-radius: 26px;
  border-color: rgba(217, 164, 65, 0.34);
  box-shadow:
    0 34px 90px -20px rgba(7, 25, 46, 0.52),
    0 12px 30px -10px rgba(7, 25, 46, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.74) inset;
}

.ev-chatbot__header {
  padding: 17px 18px 16px;
  background:
    radial-gradient(circle at 88% -20%, rgba(241, 203, 125, 0.34), transparent 44%),
    linear-gradient(135deg, #071b31 0%, #0e3155 58%, #174d80 100%);
}

.ev-chatbot__avatar {
  background: linear-gradient(145deg, #efd08b, #bd8734);
  border-color: rgba(255, 255, 255, 0.48);
  color: #071b31;
}

.ev-chatbot__context {
  min-height: 35px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #244766;
  background: linear-gradient(90deg, #fbf7ee, #ffffff);
  border-bottom: 1px solid rgba(217, 164, 65, 0.18);
}

.ev-chatbot__context span,
.ev-chatbot__context small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.ev-chatbot__context span {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ev-chatbot__context span i {
  color: var(--ev-chatbot-accent-dark);
  font-size: 13px;
}

.ev-chatbot__context small {
  flex: 0 0 auto;
  color: #718096;
  font-size: 10px;
  font-weight: 600;
}

.ev-chatbot__messages {
  min-height: 220px;
  max-height: min(450px, 58vh);
  padding: 17px 15px 13px;
  gap: 12px;
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 164, 65, 0.06), transparent 28%),
    #f6f8fb;
}

.ev-chatbot__message-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 17px;
  font-size: 12.75px;
  line-height: 1.55;
}

.ev-chatbot__message--interactive .ev-chatbot__message-bubble {
  width: 100%;
  max-width: 100%;
}

.ev-chatbot__message--assistant .ev-chatbot__message-bubble {
  border-color: rgba(19, 55, 88, 0.075);
  box-shadow: 0 7px 22px rgba(10, 31, 52, 0.055);
}

.ev-chatbot__choices--menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ev-chatbot__choices--menu .ev-chatbot__choice--entry {
  min-height: 74px;
  padding: 11px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  border-radius: 15px;
  font-size: 11.5px;
  line-height: 1.3;
}

.ev-chatbot__choices--menu .ev-chatbot__choice--entry > i {
  width: 31px;
  height: 31px;
  border-radius: 10px;
}

.ev-chatbot__choices--menu .ev-chatbot__choice--secondary {
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.ev-chatbot__choices--menu .ev-chatbot__choice--secondary > i {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.ev-chatbot__choice,
.ev-chatbot__faq,
.ev-chatbot__property {
  border-color: rgba(18, 52, 86, 0.12);
}

.ev-chatbot__choice:focus-visible,
.ev-chatbot__faq:focus-visible,
.ev-chatbot__property:focus-visible,
.ev-chatbot__chip:focus-visible,
.ev-chatbot__ai-send:focus-visible,
.ev-chatbot__close:focus-visible,
.ev-chatbot__toggle:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.38);
  outline-offset: 2px;
}

.ev-chatbot__composer:empty {
  display: none;
}

.ev-chatbot__composer:not(:empty) {
  padding: 10px 14px 4px;
  background: #fff;
  border-top: 1px solid rgba(24, 49, 83, 0.07);
}

.ev-chatbot__privacy {
  display: block;
  color: #7a8796;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: center;
}

.ev-chatbot__privacy a {
  color: #355b7e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ev-chatbot__ai-bar {
  padding: 11px 13px 10px;
  border-top-color: rgba(24, 49, 83, 0.07);
}

.ev-chatbot__ai-form {
  min-height: 46px;
  padding: 4px 5px 4px 15px;
  border-radius: 15px;
  background: #f3f6f9;
}

.ev-chatbot__ai-bar[data-mode="flow-input"] .ev-chatbot__ai-form,
.ev-chatbot__ai-bar[data-mode="flow-choice"] .ev-chatbot__ai-form {
  border-color: rgba(217, 164, 65, 0.34);
  background: #fffdf8;
}

.ev-chatbot__ai-input {
  min-width: 0;
  font-size: 12.5px;
}

.ev-chatbot__ai-input:disabled,
.ev-chatbot__ai-send:disabled {
  cursor: wait;
  opacity: .55;
}

.ev-chatbot__chips {
  gap: 7px;
  margin-top: 10px;
}

.ev-chatbot__chip {
  min-height: 32px;
  padding: 6px 12px;
  border-color: rgba(18, 52, 86, 0.16);
  color: #153b61;
  box-shadow: none;
}

.ev-chatbot__footer {
  min-height: 46px;
  padding: 8px 13px 11px;
  background: #fff;
}

.ev-chatbot[data-busy="true"] .ev-chatbot__back {
  pointer-events: none;
  opacity: .5;
}

@media (max-width: 640px) {
  .ev-chatbot__window {
    top: max(12px, env(safe-area-inset-top));
    bottom: max(74px, calc(env(safe-area-inset-bottom) + 64px)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
  }

  .ev-chatbot__body {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .ev-chatbot__messages {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
  }

  .ev-chatbot__header {
    padding: 14px 15px;
  }

  .ev-chatbot__subtitle {
    font-size: 10.5px;
  }

  .ev-chatbot__choices--menu .ev-chatbot__choice--entry {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-chatbot *,
  .ev-chatbot *::before,
  .ev-chatbot *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
