.apx-chat,
.apx-chat * {
  box-sizing: border-box;
}

.apx-chat {
  --apx-chat-ink: #130f19;
  --apx-chat-muted: #675f70;
  --apx-chat-paper: #fbf9ff;
  --apx-chat-purple: #6a5bff;
  --apx-chat-purple-dark: #4f42db;
  --apx-chat-pink: #ff4fa3;
  --apx-chat-pink-soft: #ffc7e2;
  --apx-chat-mint: #72e5ad;
  --apx-chat-focus: #3c2bbd;
  --apx-chat-line: rgba(19, 15, 25, .14);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apx-chat-launch {
  position: fixed;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 180;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 2px solid var(--apx-chat-ink);
  border-radius: 999px;
  color: #fff;
  background: var(--apx-chat-purple);
  box-shadow: 6px 6px 0 var(--apx-chat-pink-soft), 0 12px 28px rgba(38, 25, 75, .18);
  font: 800 14px/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, box-shadow .18s ease, opacity .16s ease, visibility .16s ease;
}

.apx-chat-launch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--apx-chat-pink), 0 16px 32px rgba(38, 25, 75, .2);
}

.apx-chat-launch:active {
  transform: translate(1px, 1px);
  box-shadow: 4px 4px 0 var(--apx-chat-pink-soft);
}

.apx-chat-status {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--apx-chat-mint);
  box-shadow: 0 0 0 4px rgba(114, 229, 173, .16);
}

body.nav-open .apx-chat-launch {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: none;
}

.apx-chat-launch[aria-expanded="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.apx-chat-panel {
  position: fixed;
  right: 22px;
  bottom: max(92px, calc(70px + env(safe-area-inset-bottom)));
  z-index: 181;
  width: min(420px, calc(100vw - 28px));
  max-height: min(680px, calc(var(--apx-chat-vh, 100dvh) - 112px));
  overflow: hidden;
  border: 2px solid var(--apx-chat-ink);
  border-radius: 24px;
  color: var(--apx-chat-ink);
  background: #fff;
  box-shadow: 8px 8px 0 var(--apx-chat-pink-soft), 0 26px 80px rgba(20, 12, 33, .22);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.apx-chat-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  animation: apx-chat-enter .2s ease-out both;
}

.apx-chat-panel[hidden] {
  display: none;
}

.apx-chat-head {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 13px 12px 16px;
  border-bottom: 1px solid rgba(19, 15, 25, .1);
  background: linear-gradient(120deg, #ffeaf4 0%, #f6efff 52%, #e9fff5 100%);
}

.apx-chat-head::after {
  position: absolute;
  right: 68px;
  bottom: -1px;
  left: 62px;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--apx-chat-pink), var(--apx-chat-purple), var(--apx-chat-mint));
  content: "";
}

.apx-chat-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--apx-chat-ink);
  border-radius: 13px;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(106, 91, 255, .18);
}

.apx-chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.apx-chat-identity {
  min-width: 0;
}

.apx-chat-identity strong,
.apx-chat-identity span {
  display: block;
}

.apx-chat-identity strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.apx-chat-identity span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--apx-chat-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apx-chat-close {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(19, 15, 25, .1);
  border-radius: 50%;
  color: var(--apx-chat-ink);
  background: rgba(255, 255, 255, .58);
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.apx-chat-close:hover {
  background: #fff;
}

.apx-chat-body {
  min-height: 0;
  max-height: 430px;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px 16px 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(114, 229, 173, .13), transparent 150px),
    linear-gradient(180deg, #fbf9ff 0%, #f8f5fc 100%);
  scrollbar-color: rgba(106, 91, 255, .35) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.apx-chat-body::-webkit-scrollbar {
  width: 8px;
}

.apx-chat-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(106, 91, 255, .35);
  background-clip: padding-box;
}

.apx-chat-bubble {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 11px;
  overflow-wrap: anywhere;
  padding: 11px 13px;
  border: 1px solid rgba(19, 15, 25, .07);
  border-radius: 16px 16px 16px 5px;
  color: #302838;
  background: #fff;
  box-shadow: 0 6px 18px rgba(60, 38, 92, .07);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.52;
}

.apx-chat-bubble--user {
  margin-left: auto;
  border-color: transparent;
  border-radius: 16px 16px 5px 16px;
  color: #fff;
  background: var(--apx-chat-purple);
  box-shadow: 0 7px 18px rgba(106, 91, 255, .2);
  font-weight: 700;
}

.apx-chat-answer {
  width: 100%;
  max-width: 100%;
  padding: 13px 14px 14px;
  border-left: 3px solid var(--apx-chat-purple);
}

.apx-chat-answer-title {
  display: block;
  margin-bottom: 6px;
  color: var(--apx-chat-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.apx-chat-answer p {
  margin: 0;
}

.apx-chat-price-list {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.apx-chat-price-list li {
  position: relative;
  padding-left: 13px;
}

.apx-chat-price-list li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--apx-chat-pink);
  content: "";
}

.apx-chat-options {
  margin-top: 4px;
}

.apx-chat-options-label {
  margin: 0 0 8px;
  color: var(--apx-chat-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.apx-chat-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.apx-chat-choice {
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--apx-chat-line);
  border-radius: 12px;
  color: var(--apx-chat-ink);
  background: rgba(255, 255, 255, .92);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.apx-chat-choice:hover {
  border-color: rgba(106, 91, 255, .5);
  background: #fff;
  transform: translateY(-1px);
}

.apx-chat-choice span,
.apx-chat-choice small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.apx-chat-choice span {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.apx-chat-choice small {
  color: var(--apx-chat-purple-dark);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.15;
}

.apx-chat-followup {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(106, 91, 255, .2);
  border-radius: 15px;
  background: #f1edff;
}

.apx-chat-followup > p {
  margin: 0 0 9px;
  color: var(--apx-chat-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.apx-chat-followup-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.apx-chat-followup-book,
.apx-chat-explore {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  font: 800 11px/1.25 Manrope, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.apx-chat-followup-book {
  border: 1px solid var(--apx-chat-ink);
  color: #fff;
  background: var(--apx-chat-purple);
}

.apx-chat-explore {
  border: 1px solid rgba(19, 15, 25, .16);
  color: var(--apx-chat-ink);
  background: #fff;
}

.apx-chat-book {
  min-height: 48px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 0 16px;
  border: 1.5px solid var(--apx-chat-ink);
  border-radius: 13px;
  color: var(--apx-chat-ink);
  background: var(--apx-chat-pink);
  box-shadow: 3px 3px 0 var(--apx-chat-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .16s ease, box-shadow .16s ease;
}

.apx-chat-book:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--apx-chat-ink);
}

.apx-chat-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  padding: 11px 16px 16px;
}

.apx-chat-form input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--apx-chat-line);
  border-radius: 12px;
  outline: none;
  color: var(--apx-chat-ink);
  background: #fff;
  font: 650 14px/1.2 Manrope, system-ui, sans-serif;
}

.apx-chat-form input::placeholder {
  color: var(--apx-chat-muted);
  opacity: 1;
}

.apx-chat-form input:focus {
  border-color: var(--apx-chat-purple);
  box-shadow: 0 0 0 3px rgba(106, 91, 255, .16);
}

.apx-chat-form button {
  width: 46px;
  min-height: 46px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--apx-chat-ink);
  border-radius: 12px;
  color: #fff;
  background: var(--apx-chat-purple);
  font: 900 20px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.apx-chat-launch:focus-visible,
.apx-chat-close:focus-visible,
.apx-chat-choice:focus-visible,
.apx-chat-followup-book:focus-visible,
.apx-chat-explore:focus-visible,
.apx-chat-book:focus-visible,
.apx-chat-form button:focus-visible {
  outline: 3px solid var(--apx-chat-focus);
  outline-offset: 2px;
}

.apx-chat-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes apx-chat-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .apx-chat-launch {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding-inline: 16px;
  }

  .apx-chat-panel {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: min(680px, calc(var(--apx-chat-vh, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    max-height: calc(var(--apx-chat-vh, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--apx-chat-pink-soft), 0 18px 50px rgba(20, 12, 33, .2);
  }

  .apx-chat-head {
    min-height: 66px;
    padding: 10px 10px 10px 13px;
  }

  .apx-chat-avatar {
    width: 40px;
    height: 40px;
  }

  .apx-chat-body {
    max-height: none;
    padding: 14px 13px 12px;
  }

  .apx-chat-book {
    margin: 10px 13px 0;
  }

  .apx-chat-form {
    padding: 10px 13px max(13px, env(safe-area-inset-bottom));
  }

  .apx-chat-form input {
    font-size: 16px;
  }
}

@media (max-width: 350px) {
  .apx-chat-choice-grid {
    gap: 6px;
  }

  .apx-chat-choice {
    min-height: 50px;
    padding-inline: 8px;
  }

  .apx-chat-bubble {
    max-width: 96%;
  }

  .apx-chat-answer {
    max-width: 100%;
  }
}

@media (max-height: 620px) and (min-width: 641px) {
  .apx-chat-panel {
    bottom: 8px;
    max-height: calc(var(--apx-chat-vh, 100dvh) - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apx-chat-panel:not([hidden]) {
    animation: none;
  }

  .apx-chat-launch,
  .apx-chat-choice,
  .apx-chat-book {
    transition: none;
  }
}

/* Fold-out field-notes conversation panel. */
.apx-chat-panel { width: min(480px, calc(100vw - 44px)); max-height: min(680px, calc(var(--apx-chat-vh, 100dvh) - 112px)); border-radius: 8px 24px 24px 8px; }
.apx-chat--journey .apx-chat-head::before { width: 12px; align-self: stretch; margin: -12px 2px -12px -16px; background: repeating-linear-gradient(180deg, var(--apx-chat-pink) 0 10px, var(--apx-chat-ink) 10px 20px); content: ""; }
.apx-chat-body { max-height: 500px; padding: 22px 22px 18px; background: radial-gradient(circle at 100% 0, rgba(114, 229, 173, .13), transparent 150px), repeating-linear-gradient(180deg, transparent 0 31px, rgba(106, 91, 255, .055) 31px 32px), linear-gradient(180deg, #fbf9ff 0%, #f8f5fc 100%); }
.apx-chat-bubble { font-size: 14px; }
.apx-chat-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.apx-chat-starters .apx-chat-options-label { width: 100%; }
.apx-chat-starters button { min-height: 44px; padding: 9px 13px; border: 1px solid rgba(106, 91, 255, .32); border-radius: 4px 12px 12px 4px; color: var(--apx-chat-ink); background: #fff; font: 800 12px/1.25 Manrope, system-ui, sans-serif; text-align: left; cursor: pointer; }
.apx-chat-state { min-height: 24px; display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 22px 0; color: var(--apx-chat-muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.apx-chat-state::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--apx-chat-mint); content: ""; }
.apx-chat[data-chat-status="waiting"] .apx-chat-state::before { border: 2px solid rgba(106, 91, 255, .25); border-top-color: var(--apx-chat-purple); background: transparent; animation: apx-chat-spin .7s linear infinite; }
.apx-chat[data-chat-status="error"] .apx-chat-state { color: #a21249; }
.apx-chat[data-chat-status="error"] .apx-chat-state::before { background: #d92763; }
.apx-chat-form { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 22px 20px; }
.apx-chat-form textarea { width: 100%; min-width: 0; min-height: 50px; max-height: 112px; padding: 13px 14px; resize: vertical; border: 1px solid var(--apx-chat-line); border-radius: 12px; outline: none; color: var(--apx-chat-ink); background: #fff; font: 650 14px/1.4 Manrope, system-ui, sans-serif; }
.apx-chat-form textarea::placeholder { color: var(--apx-chat-muted); opacity: 1; }
.apx-chat-form textarea:focus { border-color: var(--apx-chat-purple); box-shadow: 0 0 0 3px rgba(106, 91, 255, .16); }
.apx-chat-form button { width: auto; min-width: 86px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; font-size: 12px; }
.apx-chat-form button:disabled, .apx-chat-form textarea:disabled { cursor: wait; opacity: .62; }
.apx-chat-starters button:focus-visible, .apx-chat-form textarea:focus-visible { outline: 3px solid var(--apx-chat-focus); outline-offset: 2px; }
@keyframes apx-chat-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .apx-chat-panel { right: 0; bottom: 0; width: 100vw; height: min(720px, calc(var(--apx-chat-vh, 100dvh) - env(safe-area-inset-top))); max-height: calc(var(--apx-chat-vh, 100dvh) - env(safe-area-inset-top)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 50px rgba(20, 12, 33, .22); }
  .apx-chat-starters { display: grid; }
  .apx-chat-book { margin: 10px 14px 0; }
  .apx-chat-state { padding-inline: 14px; }
  .apx-chat-form { padding: 8px 14px max(14px, env(safe-area-inset-bottom)); }
  .apx-chat-form textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .apx-chat[data-chat-status="waiting"] .apx-chat-state::before { animation: none; }
}

/* Contact Apex lead form. */
.apx-chat--contact .apx-chat-panel { width: min(540px, calc(100vw - 44px)); }
.apx-chat--contact .apx-chat-avatar { padding: 6px; }
.apx-contact-intro { flex: 0 0 auto; padding: 18px 22px 4px; }
.apx-contact-intro strong { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.035em; }
.apx-contact-intro p { margin: 5px 0 0; color: var(--apx-chat-muted); font-size: 13px; line-height: 1.45; }
.apx-contact-form { min-height: 0; overflow-y: auto; padding: 14px 22px 16px; scrollbar-color: rgba(106, 91, 255, .35) transparent; scrollbar-width: thin; }
.apx-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.apx-contact-grid label { min-width: 0; display: grid; gap: 6px; color: var(--apx-chat-ink); font-size: 11px; font-weight: 850; }
.apx-contact-grid input,
.apx-contact-grid textarea { width: 100%; min-width: 0; border: 1px solid var(--apx-chat-line); border-radius: 11px; outline: none; color: var(--apx-chat-ink); background: #fff; font: 650 14px/1.4 Manrope, system-ui, sans-serif; }
.apx-contact-grid input { height: 44px; padding: 0 12px; }
.apx-contact-grid textarea { min-height: 96px; padding: 11px 12px; resize: vertical; }
.apx-contact-grid input:focus,
.apx-contact-grid textarea:focus { border-color: var(--apx-chat-purple); box-shadow: 0 0 0 3px rgba(106, 91, 255, .16); }
.apx-contact-grid textarea::placeholder { color: var(--apx-chat-muted); opacity: .82; }
.apx-contact-wide { grid-column: 1 / -1; }
.apx-contact-submit { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px 16px; border: 1.5px solid var(--apx-chat-ink); border-radius: 12px; color: #fff; background: var(--apx-chat-purple); font: 900 13px/1.2 Manrope, system-ui, sans-serif; cursor: pointer; }
.apx-contact-submit:disabled { cursor: wait; opacity: .62; }
.apx-contact-status { min-height: 18px; margin: 9px 0 0; color: var(--apx-chat-muted); font-size: 11px; font-weight: 750; line-height: 1.4; }
.apx-contact-status[data-tone="success"] { color: #17663f; }
.apx-contact-status[data-tone="error"] { color: #a21249; }
.apx-contact-direct { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 22px 20px; }
.apx-contact-direct a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid var(--apx-chat-line); border-radius: 10px; color: var(--apx-chat-ink); background: #f1edff; font-size: 11px; font-weight: 850; text-align: center; text-decoration: none; }
.apx-contact-submit:focus-visible,
.apx-contact-direct a:focus-visible { outline: 3px solid var(--apx-chat-focus); outline-offset: 2px; }

@media (max-width: 640px) {
  .apx-chat--contact .apx-chat-panel { right: 0; bottom: 0; width: 100vw; }
  .apx-contact-intro { padding: 15px 16px 3px; }
  .apx-contact-form { padding: 12px 16px 14px; }
  .apx-contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .apx-contact-wide { grid-column: auto; }
  .apx-contact-grid input,
  .apx-contact-grid textarea { font-size: 16px; }
  .apx-contact-direct { padding: 0 16px max(16px, env(safe-area-inset-bottom)); }
}

.apx-chat--contact .apx-chat-panel{width:min(460px,calc(100vw - 32px))}.apx-contact-intro strong{font-size:20px}.apx-contact-grid{gap:10px}.apx-contact-grid textarea{min-height:78px}.apx-contact-intro{padding-top:12px}.apx-contact-direct{padding-bottom:14px}@media(max-width:640px){.apx-chat--contact .apx-chat-panel{width:calc(100vw - 20px);right:10px;bottom:10px;border-radius:18px}.apx-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.apx-contact-wide{grid-column:1 / -1}}

.apx-chat--contact .apx-chat-panel{height:auto;max-height:calc(var(--apx-chat-vh,100dvh) - 100px)}
