/* The child care chat — the pinned circle and its panel (behaviour: assets/childcare/chat.js)
   (user, 2026-11-21: "On the child care BUSINESS page, add a pinned circle at the bottom right that people can click and
   open a chat to ask questions, etc."). Where every site keeps its chat, so no one has to learn it (Jakob); a 64px
   circle in the corner a thumb reaches (Fitts); the one orange round thing on the page (Von Restorff). A computer gets
   a card over the corner; a phone, the whole screen, kept above the keyboard by the script. */
.ccx-launch { position: fixed; z-index: 60; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%;
  background: #F37323; color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .2s cubic-bezier(.34, 1.45, .64, 1), background .15s ease; }
.ccx-launch:hover { transform: scale(1.06); background: #E2661C; }
.ccx-launch:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 3px; }
.ccx-launch svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ccx-launch .ccx-shut { display: none; width: 22px; height: 22px; stroke-width: 2.6; }
.ccx-launch[aria-expanded="true"] .ccx-ask { display: none; }
.ccx-launch[aria-expanded="true"] .ccx-shut { display: block; }

/* the small card above the circle — "Ask our staff" — a label for the circle, and a way in itself */
.ccx-hint { position: fixed; z-index: 60; right: 24px; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); margin: 0;
  padding: 10px 16px; border: 0; border-radius: 14px; background: #fff; color: #1A1A1A; cursor: pointer;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16), 0 1px 3px rgba(0, 0, 0, .1); animation: ccx-hint-in .4s cubic-bezier(.22, 1, .36, 1) .6s both; }
.ccx-hint::after { content: ''; position: absolute; right: 26px; bottom: -6px; width: 12px; height: 12px; background: #fff;
  transform: rotate(45deg); border-radius: 2px; }
.ccx-hint:hover { background: #FFF1E7; }
.ccx-hint:hover::after { background: #FFF1E7; }
.ccx-hint[hidden] { display: none; }
@keyframes ccx-hint-in { from { opacity: 0; transform: translateY(8px); } }
.ccx-panel { position: fixed; z-index: 61; right: 24px; bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; width: 384px; height: min(620px, calc(100vh - 140px)); overflow: hidden;
  border-radius: 24px; background: #FAF9F5; color: #1A1A1A; box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; transform-origin: 100% 100%; }
.ccx-panel[hidden] { display: none; }
.ccx-panel.is-in { animation: ccx-in .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes ccx-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.ccx-panel *, .ccx-panel *::before, .ccx-panel *::after { box-sizing: border-box; }

.ccx-top { display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 22px; background: #262626; color: #fff; }
.ccx-top p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ccx-top h2 { margin: 5px 0 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 20px; font-weight: 700;
  line-height: 1.15; letter-spacing: -.02em; }
.ccx-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.ccx-close:hover { background: rgba(255, 255, 255, .2); }
.ccx-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.ccx-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* the conversation: the center on the left in white, the visitor on the right in orange (proximity, common region) */
.ccx-log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px 12px; }
.ccx-msg { max-width: 86%; margin: 0; padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; letter-spacing: -.005em;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.ccx-msg.is-bot { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.ccx-msg.is-me { align-self: flex-end; border-bottom-right-radius: 6px; background: #F37323; color: #fff; }
.ccx-msg.is-typing { display: flex; gap: 4px; padding: 16px 15px; }
.ccx-msg.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: #B5B0A6; animation: ccx-dot 1s ease-in-out infinite; }
.ccx-msg.is-typing i:nth-child(2) { animation-delay: .15s; }
.ccx-msg.is-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ccx-dot { 50% { transform: translateY(-3px); opacity: .5; } }
/* the next step an answer leads to: a dark pill, a real link */
.ccx-acts { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 92%; }
.ccx-act { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #262626; color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; }
.ccx-act:hover { background: #000; }
/* what to ask: a handful, not the whole list (Hick), on the visitor's side, since they're the visitor's words */
.ccx-sugs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ccx-sug { min-height: 40px; padding: 0 15px; border: 1.5px solid #F37323; border-radius: 20px; background: #fff; color: #1A1A1A;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ccx-sug:hover { background: #FFF1E7; }
.ccx-act:focus-visible, .ccx-sug:focus-visible, .ccx-send:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 2px; }

.ccx-bar { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(38, 38, 38, .12); background: #fff; }
.ccx-in { flex: 1; min-width: 0; height: 44px; max-height: 120px; margin: 0; padding: 11px 16px; border: 1.5px solid rgba(38, 38, 38, .16);
  border-radius: 22px; background: #FAF9F5; color: #1A1A1A; font: inherit; font-size: 16px; line-height: 1.35; resize: none; }
.ccx-in:focus { outline: none; border-color: #F37323; }
.ccx-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #F37323; color: #fff; cursor: pointer; }
.ccx-send:disabled { opacity: .45; cursor: default; }
.ccx-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* a phone: the chat takes the screen (the script sizes it to what the keyboard leaves); the circle steps aside */
@media (max-width: 600px) {
  .ccx-launch { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; }
  .ccx-hint { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); font-size: 14px; padding: 9px 14px; }
  .ccx-hint::after { right: 24px; }
  .ccx-launch[aria-expanded="true"] { display: none; }
  .ccx-panel { top: 0; right: 0; bottom: auto; left: 0; width: auto; height: 100%; border-radius: 0; }
  .ccx-panel.is-in { animation-name: ccx-in-phone; }
  .ccx-top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  html.ccx-open, html.ccx-open body { overflow: hidden; }
}
@keyframes ccx-in-phone { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .ccx-launch, .ccx-panel.is-in, .ccx-msg.is-typing i, .ccx-hint { transition: none; animation: none; }
}
