/* Chat controls own their dimensions. Booking-page form rules must not resize them. */
#aa-ai-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147480000;
  isolation: isolate;
  color: #282225;
  font: 15px/1.45 Arial, Helvetica, sans-serif;
  text-align: left;
  letter-spacing: normal;
}
#aa-ai-root[hidden] { display: none !important; }
#aa-ai-root *, #aa-ai-root *::before, #aa-ai-root *::after {
  box-sizing: border-box !important;
}
#aa-ai-root button {
  position: static !important;
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  height: auto;
  margin: 0 !important;
  padding: 0;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center;
  cursor: pointer;
  transform: none !important;
  -webkit-appearance: none;
  appearance: none;
}
#aa-ai-root button:focus-visible, #aa-ai-root textarea:focus-visible,
#aa-ai-root a:focus-visible {
  outline: 3px solid #d3b979 !important;
  outline-offset: 2px;
}
#aa-ai-root #aa-ai-launch {
  min-height: 44px;
  border: 1px solid #c3a976;
  border-radius: 28px;
  background: rgba(23,38,62,.95);
  color: #f6e7c9;
  padding: 13px 18px;
  box-shadow: 0 5px 22px #0003;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif;
}
#aa-ai-root.aa-open #aa-ai-launch { display: none !important; }
#aa-ai-root #aa-ai-dialog {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 75px;
  width: min(380px, calc(100vw - 20px));
  height: min(600px, calc(100dvh - 24px));
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #c3a976;
  border-radius: 16px;
  background: #fff;
  color: #282225;
  box-shadow: 0 10px 36px #0003;
  overflow: hidden;
  flex-direction: column;
  transform: none !important;
}
#aa-ai-root.aa-open #aa-ai-dialog { display: flex; }
#aa-ai-root #aa-ai-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 12px;
  background: #14243d;
  color: #f6e7c9;
}
#aa-ai-root #aa-ai-header strong {
  display: block;
  min-width: 0;
  margin: 0;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: normal !important;
  text-transform: none;
  overflow-wrap: normal;
  word-break: normal;
}
#aa-ai-root #aa-ai-header strong span {
  display: block;
  margin-top: 2px;
  font: 400 11px/1.3 Arial, Helvetica, sans-serif;
}
#aa-ai-root #aa-ai-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#aa-ai-root #aa-ai-clear {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #c3a976;
  border-radius: 8px;
  background: transparent;
  color: #f6e7c9;
  padding: 6px 8px;
  font: 400 12px/1.3 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
#aa-ai-root #aa-ai-close {
  flex: 0 0 36px;
  width: 36px !important;
  min-width: 36px;
  max-width: 36px !important;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f6e7c9;
  font: 400 26px/1 Arial, Helvetica, sans-serif;
}
#aa-ai-root #aa-ai-clear:hover, #aa-ai-root #aa-ai-close:hover {
  background: rgba(255,255,255,.10);
}
#aa-ai-root #aa-ai-messages {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: #f8f6f1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#aa-ai-root #aa-ai-messages p {
  flex: 0 0 auto;
  align-self: flex-start;
  width: fit-content;
  min-width: 0;
  max-width: 96%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0ece5;
  color: #272127;
  font: 15px/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#aa-ai-root #aa-ai-messages p.aa-mine {
  align-self: flex-end;
  background: #e8ddc4;
}
#aa-ai-root #aa-ai-messages a {
  color: #23334c !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  pointer-events: auto !important;
}
#aa-ai-root #aa-ai-privacy {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 7px 12px;
  background: #fff;
  color: #5d5659;
  font: 11px/1.4 Arial, Helvetica, sans-serif;
}
#aa-ai-root #aa-ai-shortcuts {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 4px 14px;
  width: 100%;
  margin: 0;
  padding: 4px 12px 8px;
  background: #fff;
  font: 12px/1.4 Arial, Helvetica, sans-serif;
}
#aa-ai-root #aa-ai-shortcuts a {
  padding: 3px 0;
  color: #23334c !important;
  text-decoration: underline !important;
}
#aa-ai-root #aa-ai-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  padding: 9px 10px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid #ece2e5;
  background: #fff;
}
#aa-ai-root #aa-ai-message {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 56px;
  min-height: 44px !important;
  max-height: 80px;
  margin: 0 !important;
  padding: 9px;
  border: 1px solid #c1b49a;
  border-radius: 10px;
  background: #fff;
  color: #242024;
  font: 16px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  resize: none !important;
  overflow-y: auto;
  -webkit-appearance: none;
  appearance: none;
}
#aa-ai-root #aa-ai-send {
  width: auto !important;
  min-width: 58px;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #14243d;
  color: #fff;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif;
}
#aa-ai-root #aa-ai-send:disabled, #aa-ai-root #aa-ai-clear:disabled {
  opacity: .5;
  cursor: wait;
}
@media (max-width: 480px) {
  #aa-ai-root { right: 10px; bottom: 10px; }
}
@media (max-height: 500px) {
  #aa-ai-root #aa-ai-header { padding: 5px 10px; }
  #aa-ai-root #aa-ai-privacy { padding: 3px 10px; font-size: 10px; }
  #aa-ai-root #aa-ai-shortcuts { padding: 2px 10px; font-size: 11px; }
  #aa-ai-root #aa-ai-message { height: 44px; }
  #aa-ai-root #aa-ai-form { padding-top: 5px; padding-bottom: 5px; }
}
