/* Scout Call Buttons. Design: Scout features DESIGN.md 5.9 (screen 4b).
   Reads the site's tokens when they exist (Scout themes) and falls back to
   the Scout dark palette, so a client theme can restyle it with --scc-*. */
.scc {
  --scc-surface: var(--surface, #161616); --scc-surface-2: var(--surface-2, #1E1E1E);
  --scc-text: var(--text, #F5F5F7); --scc-text-2: var(--text-2, #B5B5B8);
  --scc-line: var(--line, rgba(255,255,255,.10)); --scc-accent: var(--accent, #0E8FE6);
  --scc-fill: var(--accent-fill, #0A78C2); --scc-on: var(--on-accent, #FFFFFF); --scc-accent-text: var(--accent-text, #5FB8F2);
  --scc-mono: var(--font-mono, 'Geist Mono', ui-monospace, Menlo, monospace);
  font: 16px/1.4 var(--font-sans, 'Hanken Grotesk', -apple-system, Helvetica, Arial, sans-serif);
}
.scc *, .scc *::before, .scc *::after { box-sizing: border-box; }
.scc-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 9997;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 980px;
  background: rgba(30,30,30,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.10); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.scc-btn, .scc-main { min-height: 48px; border-radius: 980px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.scc-btn { flex: 1 1 0; color: #F5F5F7; padding: 0 14px; }
.scc-btn svg { color: var(--scc-accent-text); }
.scc-btn:hover, .scc-btn:focus-visible { background: rgba(255,255,255,.08); color: #F5F5F7; }
.scc-main { flex: 1.3 1 0; border: 0; background: var(--scc-fill); color: var(--scc-on); padding: 0 20px; }
.scc-main:hover { filter: brightness(1.08); }
.scc a:focus-visible, .scc button:focus-visible { outline: 2px solid var(--scc-accent); outline-offset: 2px; }

/* The sheet */
.scc-sheet {
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; border: 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0; background: var(--scc-surface); color: var(--scc-text);
  border-top: 1px solid var(--scc-line); overflow: auto;
}
.scc-sheet[open] { animation: scc-up .26s cubic-bezier(.2,.65,.25,1); }
.scc-sheet::backdrop { background: rgba(0,0,0,.55); }
@keyframes scc-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.scc-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 0 auto 18px; }
.scc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.scc-faces { display: flex; flex: none; }
.scc-faces img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--scc-surface); }
.scc-faces img + img { margin-left: -14px; }
.scc-titles { flex: 1; min-width: 0; }
.scc-titles h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--scc-text); text-wrap: balance; }
.scc-titles p { margin: 4px 0 0; color: var(--scc-text-2); font-size: 15px; }
.scc-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--scc-line); background: transparent; color: var(--scc-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.scc-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scc-opt { display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 72px; border-radius: 18px; background: var(--scc-surface-2); border: 1px solid transparent; color: var(--scc-text); text-decoration: none; }
.scc-opt:hover, .scc-opt:focus-visible { border-color: var(--scc-accent); color: var(--scc-text); }
.scc-opt.is-book { border-color: var(--scc-accent); }
.scc-n { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font: 500 15px/1 var(--scc-mono); color: var(--scc-accent-text); background: rgba(14,143,230,.14); }
.scc-opt.is-book .scc-n { background: var(--scc-fill); color: var(--scc-on); }
.scc-txt { display: flex; flex-direction: column; gap: 2px; }
.scc-txt strong { font-weight: 600; font-size: 17px; }
.scc-txt span { color: var(--scc-text-2); font-size: 15px; }

/* Phones only. Keep page content, the cookie notice and the chat button clear of the bar. */
@media (max-width: 760px) {
  body.scc-on { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.scc-on .scout-consent { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.scc-on .sc-root { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 761px) { .scc { display: none; } }
@media (prefers-reduced-motion: reduce) { .scc-sheet[open] { animation: none; } }
