#dxs-wrap {
  /* Theme colors. The Chat settings page sets these on the element itself; these are the defaults. */
  --dxs-main: #15803d;
  --dxs-on-main: #ffffff;
  --dxs-header: #111111;
  --dxs-on-header: #ffffff;
  --dxs-header-sub: rgba(255,255,255,0.75);
  --dxs-accent: #15803d;
  --dxs-accent-page: #15803d;
  --dxs-tint: #e8f2ec;
  --dxs-page-bg: #ecf5ef;
  /* The chat window itself, light or dark (.dxs-dark) */
  --dxs-bg: #fff;
  --dxs-messages-bg: #f9fafb;
  --dxs-surface: #fff;
  --dxs-field-bg: #fff;
  --dxs-chip-bg: #fff;
  --dxs-text: #111;
  --dxs-text-2: #374151;
  --dxs-muted: #6b7280;
  --dxs-border: #e5e7eb;
  --dxs-field-border: #d1d5db;
  --dxs-disabled: #f3f4f6;
  --dxs-error: #b91c1c;
  background: var(--dxs-page-bg);
  padding: 48px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Themes set these on the page; the chat should not inherit them. */
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}
#dxs-wrap.dxs-dark {
  --dxs-bg: #18181b;
  --dxs-messages-bg: #0f0f11;
  --dxs-surface: #27272a;
  --dxs-field-bg: #18181b;
  --dxs-chip-bg: transparent;
  --dxs-text: #f4f4f5;
  --dxs-text-2: #d4d4d8;
  --dxs-muted: #a1a1aa;
  --dxs-border: #3f3f46;
  --dxs-field-border: #52525b;
  --dxs-disabled: #3f3f46;
  --dxs-error: #fca5a5;
}
#dxs-wrap *, #dxs-wrap *::before, #dxs-wrap *::after { box-sizing: border-box; }
#dxs-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
#dxs-grid > * { min-width: 0; }

#dxs-left { padding-top: 8px; }
#dxs-eyebrow { color: var(--dxs-accent-page); font-weight: 700; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 10px; }
#dxs-badge { background: var(--dxs-main); color: var(--dxs-on-main); display: inline-block; padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 13px; letter-spacing: 0.3px; margin-bottom: 14px; }
#dxs-heading { font-size: 34px; font-weight: 800; line-height: 1.15; color: #111; margin: 0 0 6px 0; }
#dxs-heading .dxs-green { color: var(--dxs-accent-page); display: block; }
#dxs-desc { font-size: 15px; color: #4b5563; line-height: 1.55; margin: 14px 0 26px 0; max-width: 440px; }
#dxs-try-label { font-size: 12px; font-weight: 700; color: #6b7280; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; }
#dxs-try-list { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
#dxs-wrap .dxs-try-btn {
  background: #fff; border: 1.5px solid var(--dxs-main); color: var(--dxs-accent-page); border-radius: 22px;
  padding: 11px 16px; font-size: 13.5px; text-align: left; cursor: pointer;
  transition: background 0.15s ease; font-family: inherit; font-weight: 500; line-height: 1.3;
}
#dxs-wrap .dxs-try-btn:hover { background: var(--dxs-page-bg); color: var(--dxs-accent-page); }

#dxs-panel {
  background: var(--dxs-bg); border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  display: flex; flex-direction: column; height: 620px; max-height: 80vh; overflow: hidden;
}
#dxs-header { background: var(--dxs-header); color: var(--dxs-on-header); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
#dxs-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
#dxs-logo { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
#dxs-logo img { width: 100%; height: 100%; object-fit: contain; }
#dxs-logo.dxs-logo-letter { color: #111; font-weight: 700; font-size: 16px; }
#dxs-title { font-weight: 600; font-size: 15px; color: var(--dxs-on-header); }
#dxs-sub { font-size: 12px; color: var(--dxs-header-sub); display: flex; align-items: center; gap: 5px; }
#dxs-sub .dxs-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
#dxs-header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#dxs-wrap #dxs-reset, #dxs-wrap #dxs-close { cursor: pointer; background: none; border: none; box-shadow: none; color: var(--dxs-header-sub); font-size: 16px; padding: 4px; margin: 0; line-height: 1; min-width: 0; width: auto; height: auto; }
#dxs-wrap #dxs-close { font-size: 22px; }
#dxs-wrap #dxs-reset:hover, #dxs-wrap #dxs-close:hover { color: var(--dxs-on-header); background: none; }

#dxs-messages { flex: 1; overflow-y: auto; padding: 18px; background: var(--dxs-messages-bg); display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.dxs-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.dxs-msg-bot { background: var(--dxs-surface); color: var(--dxs-text); align-self: flex-start; border: 1px solid var(--dxs-border); border-bottom-left-radius: 4px; }
.dxs-msg-bot a { color: var(--dxs-accent); text-decoration: underline; font-weight: 600; word-break: break-all; }
.dxs-msg-user { background: var(--dxs-main); color: var(--dxs-on-main); align-self: flex-end; border-bottom-right-radius: 4px; }
.dxs-msg-user a { color: inherit; }
.dxs-typing { display: flex; gap: 4px; padding: 12px 14px; }
.dxs-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: dxsBlink 1.2s infinite; }
.dxs-typing span:nth-child(2) { animation-delay: 0.2s; }
.dxs-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dxsBlink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

.dxs-intro { background: var(--dxs-surface); border: 1.5px solid var(--dxs-main); border-radius: 14px; padding: 14px; align-self: flex-start; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dxs-intro-text { font-size: 13.5px; line-height: 1.45; color: var(--dxs-text); }
#dxs-wrap .dxs-intro-field { width: 100%; border: 1px solid var(--dxs-field-border); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; color: var(--dxs-text); background: var(--dxs-field-bg); box-shadow: none; outline: none; margin: 0; height: auto; }
#dxs-wrap .dxs-intro-field::placeholder { color: var(--dxs-muted); }
#dxs-wrap .dxs-intro-field:focus { border-color: var(--dxs-main); }
.dxs-intro-error { font-size: 12.5px; color: var(--dxs-error); }
.dxs-intro-error:empty { display: none; }
#dxs-wrap .dxs-intro .dxs-btn-primary:disabled { opacity: 0.5; cursor: default; }
#dxs-wrap .dxs-intro-skip { background: none; border: none; color: var(--dxs-muted); font-size: 13px; font-family: inherit; text-decoration: underline; cursor: pointer; padding: 9px 6px; }
#dxs-wrap .dxs-intro-skip:hover { color: var(--dxs-text); background: none; }
#dxs-input:disabled { background: var(--dxs-disabled) !important; }

.dxs-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; align-self: flex-start; max-width: 92%; margin-top: -4px; font-size: 12px; }
.dxs-sources-label { color: var(--dxs-muted); font-weight: 600; }
.dxs-sources a { color: var(--dxs-accent); background: var(--dxs-tint); border: 1px solid var(--dxs-border); border-radius: 12px; padding: 3px 9px; text-decoration: none; overflow-wrap: anywhere; }
.dxs-sources a:hover { border-color: var(--dxs-main); }

.dxs-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
#dxs-wrap .dxs-chip-btn { background: var(--dxs-chip-bg); border: 1.5px solid var(--dxs-main); color: var(--dxs-accent); border-radius: 18px; padding: 8px 13px; font-size: 13px; cursor: pointer; transition: background 0.15s ease; font-family: inherit; text-align: left; line-height: 1.3; }
#dxs-wrap .dxs-chip-btn:hover { background: var(--dxs-tint); color: var(--dxs-accent); }
/* The questions that open a floating chat: one per line, like the "Try asking" buttons of the section */
.dxs-starters { flex-direction: column; flex-wrap: nowrap; align-self: stretch; }
#dxs-wrap .dxs-starters .dxs-chip-btn { width: 100%; border-radius: 22px; padding: 11px 16px; font-size: 13.5px; font-weight: 500; }

.dxs-notice-card { background: var(--dxs-tint); border: 1px solid var(--dxs-main); border-radius: 12px; padding: 12px 14px; align-self: flex-start; max-width: 92%; }
.dxs-notice-title { font-weight: 700; font-size: 13px; color: var(--dxs-accent); margin-bottom: 4px; }
.dxs-notice-text { font-size: 13px; color: var(--dxs-text); line-height: 1.4; }

/* Package card: the "We serve" line on top when it came with the card, name and price side by side,
   the steps strip, the features in two columns and a full-width booking button. */
.dxs-card { background: var(--dxs-surface); border: 1.5px solid var(--dxs-main); border-radius: 14px; overflow: hidden; flex-shrink: 0; align-self: flex-start; width: 100%; max-width: 340px; }
.dxs-card-where { background: var(--dxs-tint); color: var(--dxs-accent); font-size: 12px; font-weight: 600; padding: 6px 14px; overflow-wrap: anywhere; }
.dxs-card-body { padding: 12px 14px 14px 14px; }
.dxs-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dxs-card-name { min-width: 0; }
.dxs-card-label { font-size: 10.5px; font-weight: 700; color: var(--dxs-accent); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.dxs-card-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--dxs-text); }
.dxs-card-price { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; }
.dxs-card-price .dxs-price-new { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--dxs-text); }
.dxs-card-price .dxs-price-old { font-size: 12px; color: var(--dxs-muted); text-decoration: line-through; }
.dxs-card-price .dxs-price-badge { font-size: 10.5px; color: var(--dxs-muted); white-space: nowrap; }
#dxs-wrap .dxs-card-path { list-style: none; padding: 0; margin: 10px 0 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#dxs-wrap .dxs-card-path li { margin: 0; padding: 3px 8px; border-radius: 8px; background: var(--dxs-tint); color: var(--dxs-accent); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
#dxs-wrap .dxs-card-path li.dxs-path-here { background: var(--dxs-main); color: var(--dxs-on-main); }
#dxs-wrap .dxs-card-path li.dxs-path-arrow { background: none; padding: 0; color: var(--dxs-muted); font-weight: 400; }
#dxs-wrap .dxs-card-features { list-style: none; padding: 0; margin: 10px 0 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12.5px; line-height: 1.35; color: var(--dxs-text-2); }
#dxs-wrap .dxs-card-features li { margin: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
.dxs-card-features .dxs-tick { color: var(--dxs-accent); font-weight: 700; margin-right: 4px; }
.dxs-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#dxs-wrap .dxs-card .dxs-card-actions a { flex: 1; text-align: center; }
#dxs-wrap .dxs-btn-primary { background: var(--dxs-main); color: var(--dxs-on-main); border: none; border-radius: 20px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
#dxs-wrap .dxs-btn-secondary { background: var(--dxs-surface); color: var(--dxs-text); border: 1.5px solid var(--dxs-field-border); border-radius: 20px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }

.dxs-human-card { background: var(--dxs-surface); border: 1px solid var(--dxs-border); border-radius: 14px; padding: 14px; align-self: flex-start; max-width: 92%; }
.dxs-human-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--dxs-text); }
#dxs-wrap .dxs-human-list { list-style: none; padding: 0; margin: 0 0 12px 0; font-size: 13px; color: var(--dxs-text-2); }
.dxs-human-list li { padding: 2px 0; }

#dxs-inputbar { display: flex; align-items: center; padding: 12px 14px; border-top: 1px solid var(--dxs-border); background: var(--dxs-bg); gap: 8px; box-sizing: border-box; }
#dxs-input { flex: 1; min-width: 0; border: 1px solid var(--dxs-border) !important; border-radius: 20px !important; padding: 10px 14px !important; font-size: 14px !important; outline: none !important; box-shadow: none !important; margin: 0 !important; height: auto !important; background: var(--dxs-field-bg) !important; color: var(--dxs-text) !important; }
#dxs-input::placeholder { color: var(--dxs-muted); }
#dxs-input:focus { border-color: var(--dxs-main) !important; }
#dxs-send { background: var(--dxs-main) !important; border: none !important; width: 42px !important; height: 42px !important; min-width: 42px !important; max-width: 42px !important; border-radius: 50% !important; cursor: pointer; display: inline-flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; padding: 0 !important; margin: 0 !important; box-sizing: border-box !important; }
#dxs-send:disabled { opacity: 0.5; cursor: default; }
#dxs-send svg { width: 18px; height: 18px; fill: var(--dxs-on-main); margin-left: 2px; }

#dxs-footer-note { text-align: center; font-size: 11px; color: var(--dxs-muted); padding: 8px 14px 4px 14px; background: var(--dxs-bg); }
#dxs-credit { text-align: center; font-size: 11px; color: var(--dxs-muted); padding: 0 14px 12px 14px; background: var(--dxs-bg); }
#dxs-inputbar + #dxs-credit { padding-top: 8px; }
#dxs-credit a { color: var(--dxs-muted) !important; font-weight: 600; text-decoration: underline !important; }
#dxs-footer-note a { color: var(--dxs-muted) !important; text-decoration: underline !important; white-space: nowrap; }

/* Tablet and mobile: single column */
@media (max-width: 860px) {
  #dxs-wrap { padding: 32px 16px; }
  #dxs-grid { grid-template-columns: 1fr; gap: 32px; }
  #dxs-heading { font-size: 28px; }
  #dxs-desc { max-width: 100%; }
  #dxs-try-list { max-width: 100%; }
  #dxs-panel { height: 640px; max-height: 85vh; max-height: 85dvh; }
}

/* Small phones */
@media (max-width: 480px) {
  #dxs-wrap { padding: 24px 12px; }
  #dxs-badge { font-size: 12px; padding: 6px 12px; }
  #dxs-heading { font-size: 24px; }
  #dxs-desc { font-size: 14px; margin: 12px 0 20px 0; }
  #dxs-wrap .dxs-try-btn { font-size: 13px; padding: 10px 14px; }

  #dxs-panel { border-radius: 16px; height: 600px; max-height: 80vh; max-height: 80dvh; }
  #dxs-header { padding: 12px 14px; }
  #dxs-messages { padding: 12px; }

  .dxs-msg { max-width: 90%; }
  .dxs-card, .dxs-human-card, .dxs-notice-card { max-width: 100%; }

  .dxs-card-actions { flex-direction: column; }
  #dxs-wrap .dxs-btn-primary, #dxs-wrap .dxs-btn-secondary { text-align: center; width: 100%; }

  #dxs-wrap .dxs-chip-btn { font-size: 12.5px; padding: 8px 12px; }

  /* 16px stops iPhone from zooming in when the input is tapped */
  #dxs-input { font-size: 16px !important; }
  #dxs-inputbar { padding: 10px 12px; }
  #dxs-footer-note { padding: 6px 12px 4px 12px; }
  #dxs-credit { padding: 0 12px 10px 12px; }
}

/* Floating button in a corner of every page, and the chat window it opens */
/* Above sticky site headers and the WordPress admin bar, which would cover the open chat on a phone. */
#dxs-wrap.dxs-float { position: fixed; bottom: 20px; right: 20px; z-index: 2147483000; background: none; padding: 0; margin: 0; overflow: visible; }
#dxs-wrap.dxs-float-left { right: auto; left: 20px; }
/* The greeting bubble sits beside the button, on the side facing the page. */
.dxs-launch-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.dxs-float-left .dxs-launch-row { flex-direction: row-reverse; }
#dxs-wrap #dxs-launcher {
  width: 60px !important; height: 60px !important; min-width: 60px !important; border-radius: 50% !important;
  background: var(--dxs-main) !important; border: none !important; padding: 0 !important; margin: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important; transition: transform 0.15s ease; font-family: inherit;
}
#dxs-wrap #dxs-launcher:hover { transform: scale(1.06); }
#dxs-launcher svg { width: 28px; height: 28px; fill: var(--dxs-on-main); flex-shrink: 0; }
#dxs-launcher .dxs-icon-close, .dxs-open #dxs-launcher .dxs-icon-chat { display: none; }
.dxs-open #dxs-launcher .dxs-icon-close { display: block; }
/* With button text: a pill on computers, the round icon once the chat is open and on phones */
#dxs-wrap #dxs-launcher.dxs-has-text { width: auto !important; gap: 8px; padding: 0 22px 0 18px !important; border-radius: 30px !important; }
#dxs-launcher.dxs-has-text svg { width: 24px; height: 24px; }
.dxs-launcher-text { color: var(--dxs-on-main); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; }
#dxs-wrap.dxs-open #dxs-launcher.dxs-has-text { width: 60px !important; padding: 0 !important; border-radius: 50% !important; }
.dxs-open .dxs-launcher-text { display: none; }

#dxs-bubble { position: relative; max-width: 240px; animation: dxsPop 0.25s ease; }
#dxs-bubble[hidden], .dxs-open #dxs-bubble { display: none; }
#dxs-wrap .dxs-bubble-text {
  display: block; width: auto; height: auto; min-width: 0; margin: 0; padding: 11px 14px;
  background: var(--dxs-bg); color: var(--dxs-text); border: 1px solid var(--dxs-main); border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.4;
  text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer;
}
#dxs-wrap .dxs-bubble-close {
  position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; min-width: 0; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--dxs-border); background: var(--dxs-bg); color: var(--dxs-muted);
  font-family: inherit; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.dxs-float-left .dxs-bubble-close { left: auto; right: -9px; }
@keyframes dxsPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #dxs-bubble { animation: none; } }

.dxs-float #dxs-panel {
  display: none; position: absolute; bottom: 76px; right: 0;
  width: 380px; max-width: calc(100vw - 40px);
  height: 600px; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.dxs-float-left #dxs-panel { right: auto; left: 0; }
.dxs-float.dxs-open #dxs-panel { display: flex; }

/* Phones: the open chat fills the screen and is closed from its header */
@media (max-width: 480px) {
  #dxs-wrap.dxs-float { bottom: 16px; right: 16px; }
  #dxs-wrap.dxs-float-left { right: auto; left: 16px; }
  #dxs-wrap #dxs-launcher.dxs-has-text { width: 60px !important; padding: 0 !important; border-radius: 50% !important; }
  .dxs-launcher-text { display: none; }
  #dxs-bubble { max-width: calc(100vw - 110px); }
  .dxs-float.dxs-open #dxs-panel { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; }
  #dxs-wrap.dxs-open #dxs-launcher { display: none !important; }
}
