/* Live chat (owner, 25 Nov 2026). Round button bottom right; on phones it sits above the sticky "Get tickets" bars. */
.apo-chat { position: fixed; right: 20px; bottom: var(--apo-chat-lift, 20px); z-index: 40; box-sizing: border-box; width: 56px; height: 56px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #071b32; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(7, 27, 50, .3); -webkit-tap-highlight-color: transparent; transition: opacity .2s ease, visibility .2s, bottom .2s ease; }
.apo-chat[hidden] { display: none !important; }
/* over the ticket box: out of the way (the ticket box has its own "Chat with us" line) */
.apo-chat.tucked { opacity: 0; visibility: hidden; pointer-events: none; }
.apo-chat svg { grid-area: 1 / 1; width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.apo-chat:hover { background: #0a2bbd; }
.apo-chat:focus-visible { outline: 3px solid #fdc420; outline-offset: 3px; }
.apo-chat i { grid-area: 1 / 1; display: none; width: 24px; height: 24px; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: apo-chat-spin .8s linear infinite; }
.apo-chat.busy svg { display: none; }
.apo-chat.busy i { display: block; }
@keyframes apo-chat-spin { to { transform: rotate(360deg); } }
/* a reply is waiting: a small number on the button */
.apo-chat[data-count]::after { content: attr(data-count); position: absolute; top: -3px; right: -3px; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d92d20; color: #fff; font: 700 12px/20px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
/* the line at the end of an attraction page's ticket box */
.apo-chat-line { order: 4; display: flex; align-items: center; gap: 8px; align-self: flex-start; width: auto; margin: 14px 0 0; padding: 0; border: 0; background: none; color: #0a2bbd; font: 600 14px/1.3 var(--sans, inherit); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apo-chat-line svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apo-chat-line:focus-visible { outline: 2px solid #0a2bbd; outline-offset: 3px; }
/* the chat panel on attraction pages: our bar with a close button, and the chat in a frame below it */
.apo-chat-panel { position: fixed; right: 20px; bottom: var(--apo-chat-lift, 20px); z-index: 9000; box-sizing: border-box; display: flex; flex-direction: column; width: 384px; max-width: calc(100vw - 24px); height: 640px; max-height: calc(100vh - var(--apo-chat-lift, 20px) - 20px); max-height: calc(100dvh - var(--apo-chat-lift, 20px) - 20px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 18px 60px rgba(7, 27, 50, .32), 0 0 0 1px rgba(7, 27, 50, .1); outline: 0; }
.apo-chat-panel[hidden] { display: none !important; }
.apo-chat-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 6px 0 16px; background: #071b32; color: #fff; }
.apo-chat-bar strong { overflow: hidden; font: 600 15px/1.2 var(--sans, system-ui, sans-serif); color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.apo-chat-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.apo-chat-x:hover { background: rgba(255, 255, 255, .14); }
.apo-chat-x:focus-visible { outline: 2px solid #fdc420; outline-offset: -2px; }
.apo-chat-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.apo-chat-body { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; align-content: center; gap: 16px; background: #fff; }
.apo-chat-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.apo-chat-body > i { width: 28px; height: 28px; border: 3px solid rgba(7, 27, 50, .16); border-top-color: #071b32; border-radius: 50%; animation: apo-chat-spin .8s linear infinite; }
.apo-chat-panel.loaded .apo-chat-body > i { display: none; }
.apo-chat-panel:not(.loaded) .apo-chat-body iframe { opacity: 0; } /* the spinner shows until the chat has loaded */
.apo-chat-late { position: relative; z-index: 1; padding: 0 24px; color: #0a2bbd; font: 600 14px/1.4 var(--sans, system-ui, sans-serif); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.apo-chat-late[hidden] { display: none !important; }
@media (max-width: 899px) {
  /* phones: the chat fills the screen */
  .apo-chat-panel { inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; box-shadow: none; }
  .apo-chat-bar { height: calc(50px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
  .apo-chat-x { width: 44px; height: 44px; }
  .apo-chat-body { padding-bottom: env(safe-area-inset-bottom, 0px); }
  html.apo-chat-open, html.apo-chat-open body { overflow: hidden; }
}
@media (max-width: 899px) { .apo-chat { right: 12px; bottom: calc(var(--apo-chat-lift, 84px) + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .apo-chat i { animation-duration: 2.4s; } .apo-chat { transition: none; } }
@media (prefers-reduced-motion: reduce) { .apo-chat-body > i { animation-duration: 2.4s; } }
@media print { .apo-chat, .apo-chat-line, .apo-chat-panel { display: none !important; } }
