/* Draco Travels live chat. Everything is prefixed dc- so it can't clash with the site. Same-origin file: no inline styles,
   so the site's Content-Security-Policy needs no change. Adjust the three variables below to match the site. */
:root {
  --dc-accent: #7535b7;        /* Draco brand purple: buttons, header, your messages */
  --dc-accent-dark: #5e2a94;
  /* The bubble sits on the same line as the round WhatsApp button (56px, 20px from the bottom and right), just to its
     left, so it stays below the WhatsApp greeting pop-up (which starts 88px up) and never covers either. */
  --dc-bottom: 26px;
  --dc-right: 88px;
}
/* Phones: the WhatsApp button is 52px, 14px in; its greeting starts 78px up. */
@media (max-width: 600px) {
  :root { --dc-bottom: 17px; --dc-right: 76px; }
}
/* When someone hovers the WhatsApp button its "WhatsApp us" label slides out to the left: move the chat bubble aside. */
.dc-root { transition: right .25s ease; }
.wa-float:hover ~ .dc-root:not(.dc-open), .wa-float:focus-visible ~ .dc-root:not(.dc-open) { right: calc(var(--dc-right) + 132px); }
.dc-root, .dc-root * { box-sizing: border-box; }
.dc-root { position: fixed; right: var(--dc-right); bottom: var(--dc-bottom); z-index: 2147483000; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1e293b; }
.dc-bubble { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--dc-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.dc-bubble:hover { background: var(--dc-accent-dark); }
.dc-bubble svg { width: 20px; height: 20px; flex: none; }
.dc-dot { display: none; width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px #fff; }
.dc-dot.dc-on { display: inline-block; }
.dc-panel { display: none; flex-direction: column; width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.dc-root.dc-open .dc-panel { display: flex; }
.dc-root.dc-open .dc-bubble { display: none; }
.dc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--dc-accent); color: #fff; }
.dc-head-text { flex: 1; min-width: 0; }
.dc-title { font-weight: 700; }
.dc-sub { font-size: 12px; opacity: .9; }
.dc-icon-btn { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.dc-icon-btn:hover { background: rgba(255,255,255,.2); }
.dc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dc-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.dc-form p { margin: 0; color: #475569; font-size: 14px; }
.dc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #334155; }
.dc-field input, .dc-field textarea, .dc-compose textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 10px; font: inherit; font-weight: 400; color: #0f172a; background: #fff; }
.dc-field input:focus, .dc-field textarea:focus, .dc-compose textarea:focus { outline: 2px solid var(--dc-accent); outline-offset: 0; border-color: transparent; }
.dc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dc-btn { border: 0; border-radius: 8px; padding: 11px 14px; background: var(--dc-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dc-btn:hover { background: var(--dc-accent-dark); }
.dc-btn:disabled { opacity: .6; cursor: default; }
.dc-btn-quiet { background: transparent; color: var(--dc-accent); }
.dc-btn-quiet:hover { background: #f3ecfb; }
.dc-error { color: #b91c1c; font-size: 13px; min-height: 1em; }
.dc-fine { font-size: 11px; color: #64748b; }
.dc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f8fafc; }
.dc-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.dc-msg-you { align-self: flex-end; background: var(--dc-accent); color: #fff; border-bottom-right-radius: 4px; }
.dc-msg-agent { align-self: flex-start; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); border-bottom-left-radius: 4px; }
.dc-msg-name { display: block; font-size: 11px; font-weight: 700; color: var(--dc-accent); margin-bottom: 2px; }
.dc-msg-system { align-self: center; text-align: center; max-width: 92%; font-size: 12px; color: #64748b; }
.dc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #e2e8f0; background: #fff; }
.dc-compose textarea { resize: none; max-height: 90px; }
.dc-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 8px; background: #fff; }
.dc-ended { padding: 14px; text-align: center; background: #fff; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 8px; }
.dc-bubble { padding: 11px 16px; }
@media (max-width: 480px) {
  /* Open on a phone: full width, and full height of the visible screen (dvh allows for the browser's address bar). */
  .dc-root.dc-open { left: 8px; right: 8px; bottom: 8px; }
  .dc-panel { width: 100%; max-width: none; height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; }
  /* 16px text stops iPhones zooming the page when a box is tapped. */
  .dc-field input, .dc-field textarea, .dc-compose textarea { font-size: 16px; }
}

/* Hidden while the homepage opening video plays; it appears once the intro ends or is skipped. */
.intro-active .dc-root { display: none; }
