/* Compass Core chat pop-up. Everything is scoped under #cc-chat so it can't clash with the site's Bootstrap styles. */
#cc-chat, #cc-chat * { box-sizing: border-box; }
#cc-chat [hidden] { display: none !important; }
#cc-chat {
  --cc-accent: #f9bb32;
  --cc-accent-dark: #c98f0c;
  --cc-ink: #222;
  --cc-muted: #666;
  --cc-line: #ddd;
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.4; color: var(--cc-ink);
}
#cc-chat button { font: inherit; cursor: pointer; }
#cc-chat .cc-launch {
  display: flex; align-items: center; gap: 8px;
  background: var(--cc-accent); color: #111; border: 0; border-radius: 999px;
  padding: 12px 20px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
#cc-chat .cc-launch:hover { background: var(--cc-accent-dark); }
#cc-chat .cc-badge {
  background: #c62828; color: #fff; border-radius: 999px; min-width: 20px; height: 20px;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
#cc-chat .cc-panel {
  width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex; flex-direction: column; overflow: hidden;
}
#cc-chat .cc-head {
  background: var(--cc-accent); color: #111; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
#cc-chat .cc-head strong { font-size: 16px; }
#cc-chat .cc-head small { display: block; font-size: 12px; opacity: .8; }
#cc-chat .cc-x { background: transparent; border: 0; line-height: 0; padding: 6px; margin: -6px -6px -6px 0; color: #111; }
#cc-chat .cc-body { flex: 1; overflow-y: auto; padding: 14px; }
#cc-chat .cc-foot { border-top: 1px solid var(--cc-line); padding: 10px; }
#cc-chat p { margin: 0 0 10px; }
#cc-chat .cc-note { font-size: 12px; color: var(--cc-muted); }
#cc-chat label { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
#cc-chat input[type=text], #cc-chat input[type=tel], #cc-chat textarea {
  width: 100%; border: 1px solid #bbb; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--cc-ink); background: #fff;
}
#cc-chat textarea { resize: none; }
#cc-chat .cc-primary {
  margin-top: 10px; width: 100%; background: #222; color: #fff; border: 0; border-radius: 8px; padding: 10px;
  font-weight: 600;
}
#cc-chat .cc-primary:disabled { opacity: .5; cursor: default; }
#cc-chat .cc-link { background: none; border: 0; color: #0b57d0; padding: 0; text-decoration: underline; font-size: 13px; }
#cc-chat .cc-err { color: #b00020; font-size: 13px; margin-top: 6px; }
#cc-chat .cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#cc-chat .cc-msg { margin: 0 0 10px; display: flex; flex-direction: column; }
#cc-chat .cc-msg .cc-bubble { padding: 8px 11px; border-radius: 12px; max-width: 85%; white-space: pre-wrap; word-wrap: break-word; }
#cc-chat .cc-msg .cc-meta { font-size: 11px; color: var(--cc-muted); margin: 2px 4px; }
#cc-chat .cc-msg.cc-customer { align-items: flex-end; }
#cc-chat .cc-msg.cc-customer .cc-bubble { background: #fdeec4; }
#cc-chat .cc-msg.cc-staff { align-items: flex-start; }
#cc-chat .cc-msg.cc-staff .cc-bubble { background: #f0f0f0; }
#cc-chat .cc-msg.cc-system { align-items: center; }
#cc-chat .cc-msg.cc-system .cc-bubble { background: transparent; color: var(--cc-muted); font-style: italic; font-size: 13px; text-align: center; max-width: 100%; }
#cc-chat .cc-banner { background: #fff7e0; border: 1px solid #f3d27a; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
#cc-chat .cc-compose { display: flex; gap: 8px; align-items: flex-end; }
#cc-chat .cc-compose textarea { height: 44px; }
#cc-chat .cc-send { background: #222; color: #fff; border: 0; border-radius: 8px; padding: 0 14px; height: 44px; font-weight: 600; }
#cc-chat .cc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
#cc-chat .cc-compose textarea { min-width: 0; flex: 1 1 auto; }
#cc-chat .cc-send { flex: 0 0 auto; }
@media (max-width: 600px) {
  #cc-chat { right: 10px; bottom: 10px; left: auto; }
  /* Fill the visible screen exactly, never wider */
  #cc-chat .cc-panel {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: auto; max-width: 100vw; height: auto; max-height: none; border-radius: 0;
    overflow-x: hidden;
  }
  /* 16px text stops iPhones from zooming in when you tap a box to type */
  #cc-chat input[type=text], #cc-chat input[type=tel], #cc-chat textarea { font-size: 16px; }
}