/* Local launcher; the conversation itself remains the official Telavox iframe. */
.ap-chat { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 990; }
.ap-chat[hidden], .ap-chat [hidden] { display: none !important; }
.ap-chat-intro [hidden] { display: none !important; }
/* The light rim separates the blue button from blue/dark sections; the outer
   shadow keeps the same silhouette readable on white backgrounds. */
.ap-chat-launcher { display: grid; place-items: center; box-sizing: border-box; width: 52px; height: 52px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #0056d2; color: #fff; box-shadow: 0 0 0 1px #09132326, 0 8px 24px #07132340; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.ap-chat-launcher i { font-size: 24px; line-height: 1; }
.ap-chat-launcher:hover { background: #0045ac; box-shadow: 0 0 0 1px #09132333, 0 10px 28px #0713234d; }
.ap-chat-launcher:focus-visible, .ap-chat-intro :is(button, a):focus-visible { outline: 3px solid #15c1e7; outline-offset: 4px; }
.ap-chat-intro { position: fixed; inset: auto 24px 96px auto; width: min(400px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 128px); margin: 0; padding: 0; overflow: hidden; border: 1px solid #dbe4ee; border-radius: 16px 16px 4px 16px; color: #091323; background: #fff; box-shadow: 0 20px 65px #07132333; font: 400 14px/1.65 "Manrope", system-ui, sans-serif; }
.ap-chat-intro[open] { display: flex; flex-direction: column; }
.ap-chat-intro::backdrop { background: #09132324; }
.ap-chat-heading { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; color: #fff; background: #091323; }
.ap-chat-heading > span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ap-chat-heading > span i { color: #16c7f3; font-size: 22px; }
.ap-chat-dismiss { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid #ffffff45; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.ap-chat-dismiss:hover { background: #ffffff18; }
.ap-chat-content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 25px; }
.ap-chat-content p { margin: 0 0 15px; }
.ap-chat-content .ap-chat-eyebrow { margin-bottom: 10px; color: #0056d2; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ap-chat-content h2 { margin: 0 0 14px; color: #091323; font-size: 29px; font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.ap-chat-content h2 span { color: #0056d2; }
.ap-chat-content a { color: #0056d2; text-decoration: underline; text-underline-offset: 3px; }
.ap-chat-hours { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #dbe4ee; border-bottom: 1px solid #dbe4ee; font-size: 12px; line-height: 1.65; }
.ap-chat-hours strong { color: #091323; font-weight: 700; }
.ap-chat-hours span { color: #46556b; }
.ap-chat-notice { margin: 20px 0 16px; padding: 14px 16px; border-left: 2px solid #16c7f3; background: #eef4fa; font-size: 12px; line-height: 1.65; }
.ap-chat-notice p { margin-bottom: 8px; }
.ap-chat-notice a { font-weight: 700; }
.ap-chat-activate { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 4px; background: #0056d2; color: #fff; font: 700 14px/1.4 "Manrope", system-ui, sans-serif; cursor: pointer; }
.ap-chat-activate:hover { background: #0045ac; }
.ap-chat-activate:disabled { opacity: .65; cursor: wait; }
.ap-chat-content .ap-chat-alternative { margin: 15px 0 14px; font-size: 12px; text-align: center; }
.ap-chat-content .ap-chat-safety { margin-bottom: 0; color: #59677b; font-size: 11px; line-height: 1.55; }
.ap-chat-status:empty { display: none; }
.ap-chat-status { color: #344761; font-size: 13px; }
.ap-chat-content .ap-chat-preview { padding: 12px 14px; background: #fff6de; border-left: 2px solid #b17700; color: #5a460d; font-size: 12px; }
.ap-chat-ready { position: absolute; right: 0; bottom: 78px; width: 224px; margin: 0; padding: 13px 17px; border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; color: #263a55; box-shadow: 0 7px 24px #09132314; font: 600 12px/1.6 "Manrope", system-ui, sans-serif; }
.ap-chat-frame-host { line-height: 0; max-width: calc(100vw - 32px); }
.ap-chat-frame-host iframe { display: block; width: 64px; height: 64px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); border: 0; background: transparent; }
.ap-chat.is-open { right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
.ap-chat.is-open :is(.ap-chat-frame-host, iframe) { max-width: calc(100vw - 16px); }
.ap-chat.is-open iframe { max-height: calc(100dvh - 16px); }
.ap-chat.is-suspended { visibility: hidden; pointer-events: none; }
body.mobile-nav-active .ap-chat, body.mega-nav-open .ap-chat { visibility: hidden; pointer-events: none; }
@media (max-width: 575px) {
  .ap-chat { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .ap-chat-launcher { width: 48px; height: 48px; }
  .ap-chat-launcher i { font-size: 21px; }
  .ap-chat-intro { inset: auto 16px max(16px, env(safe-area-inset-bottom)) 16px; width: auto; max-height: calc(100dvh - 32px); }
  .ap-chat-content { padding: 21px; }
  .ap-chat-heading { padding: 12px 17px; }
}
@media (prefers-reduced-motion: reduce) { .ap-chat-launcher { transition: none; } }
@media print { .ap-chat, .ap-chat-intro { display: none !important; } }
