/* "Ask my assistant" chat, shown inside the "Ask my assistant" tab of the homepage
   Book Now section. Self-contained on purpose: it uses its own copies of the
   site colours rather than the page's tokens, and every rule is scoped under
   .ec-root so page-level form, textarea and button rules can't restyle it. */

.ec-root {
  --ec-gold: #d4af37;
  --ec-gold-light: #E5C8A7;
  --ec-dark: #14171c;
  --ec-cream: #FAF7F2;
  --ec-cream-dark: #E5E2DD;
  --ec-text: #181c28;
  --ec-muted: #6b6b6b;
  font-family: inherit;
  margin-top: 0.75rem;
}

.ec-root .ec-panel {
  display: flex;
  flex-direction: column;
  height: min(460px, 70vh);
  border: 1px solid var(--ec-cream-dark);
  border-radius: 14px;
  background: var(--ec-cream);
  color: var(--ec-text);
  overflow: hidden;
  text-align: left;
}

.ec-root .ec-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ec-root .ec-msg {
  max-width: 88%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ec-root .ec-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--ec-cream-dark);
  border-bottom-left-radius: 4px;
}
.ec-root .ec-msg--you {
  align-self: flex-end;
  background: var(--ec-dark);
  color: var(--ec-cream);
  border-bottom-right-radius: 4px;
}
.ec-root .ec-msg--wait { color: var(--ec-muted); font-style: italic; }

.ec-root button.ec-callback {
  align-self: flex-start;
  margin: 0;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--ec-gold);
  border-radius: 999px;
  background: var(--ec-gold);
  color: var(--ec-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-align: left;
  cursor: pointer;
}
.ec-root button.ec-callback:hover { background: var(--ec-gold-light); }

.ec-root .ec-form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.4rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--ec-cream-dark);
}
.ec-root textarea.ec-input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
  max-height: 96px;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ec-cream-dark);
  border-radius: 10px;
  background: #fff;
  color: var(--ec-text);
  font: inherit;
  font-size: 16px; /* stops iOS zooming the page on focus */
  line-height: 1.4;
  resize: none;
  overflow-y: hidden; /* JS grows the box; scrollbar only once it hits max-height */
}
.ec-root textarea.ec-input:disabled { background: var(--ec-cream-dark); }
.ec-root button.ec-send {
  margin: 0;
  padding: 0 0.85rem;
  min-width: 64px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--ec-dark);
  color: var(--ec-cream);
  font: inherit;
  font-weight: 600;
  letter-spacing: normal;
  cursor: pointer;
}
.ec-root button.ec-send:hover { background: #2a2f38; }
.ec-root button.ec-send:disabled { opacity: 0.5; cursor: default; }

.ec-root button.ec-callback:focus-visible,
.ec-root button.ec-send:focus-visible,
.ec-root textarea.ec-input:focus-visible,
.ec-root .ec-foot a:focus-visible {
  outline: 3px solid var(--ec-gold);
  outline-offset: 2px;
}

.ec-root .ec-foot {
  margin: 0;
  padding: 0 0.85rem 0.7rem;
  color: var(--ec-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.ec-root .ec-foot a,
.ec-root .ec-foot a:hover {
  /* .booking-cta a (styles.css) makes every link in the booking section a big
     "Book Now" pill; undo all of it so this stays a plain inline link. */
  display: inline;
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  transition: none;
  animation: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
}

.ec-root .ec-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
