/* Analytics consent bar (consent.js), shared by the landing pages and the
   agents' app: a glass bar along the bottom with the brand's coral top line
   and gradient button. Colours come from either page's tokens (landing:
   --brand/--page; app: --accent/--bg), with the light palette as fallback. */
.hlc-consent {
  --hc-accent: var(--brand, var(--accent, #e5484d));
  --hc-accent-ink: var(--brand-ink, var(--accent-ink, #fff));
  --hc-surface: var(--surface, #fff);
  --hc-ink: var(--ink, #111110);
  --hc-ink-2: var(--ink-2, var(--muted, #3d3c38));
  --hc-border: var(--border-strong, rgba(17, 17, 16, 0.22));
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: flex; gap: 10px 18px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--hc-surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid color-mix(in srgb, var(--hc-accent) 18%, var(--hc-border));
  box-shadow: 0 -10px 30px -12px color-mix(in srgb, var(--hc-accent) 30%, transparent), 0 -4px 16px rgba(0, 0, 0, 0.06);
  color: var(--hc-ink); font: inherit; font-size: 14px; line-height: 1.5; text-align: left;
  animation: hlc-consent-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hlc-consent::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--hc-accent), transparent); opacity: 0.85;
}
.hlc-consent p { margin: 0; max-width: 640px; font-size: 13.5px; line-height: 1.5; color: var(--hc-ink-2); }
.hlc-consent a { color: var(--hc-accent); text-decoration: underline; text-underline-offset: 2px; }
.hlc-consent-actions { display: flex; gap: 8px; flex: none; }
.hlc-consent-btn {
  appearance: none; -webkit-appearance: none; margin: 0; font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  min-height: 38px; padding: 10px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--hc-border); background: var(--hc-surface); color: var(--hc-ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hlc-consent-btn:hover { border-color: var(--hc-accent); }
.hlc-consent-btn.primary {
  border-color: transparent; color: var(--hc-accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hc-accent) 88%, #fff), var(--hc-accent) 55%, color-mix(in srgb, var(--hc-accent) 85%, #000));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--hc-accent) 80%, transparent);
}
.hlc-consent-btn:active { transform: translateY(1px) scale(0.99); }
.hlc-consent-btn:focus-visible { outline: 2px solid var(--hc-accent); outline-offset: 2px; }
/* Where consent comes first, a mask covers the page until the visitor picks. */
.hlc-consent-mask {
  position: fixed; inset: 0; z-index: 2147482999; background: rgba(8, 8, 10, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: hlc-consent-mask-in 0.3s ease-out both;
}
.hlc-consent-lock, .hlc-consent-lock body { overflow: hidden; overscroll-behavior: none; }
/* The page keeps room for the bar: the landing pages scroll, the app's
   full-height layout shrinks above it. */
.hlc-consent-on body { padding-bottom: var(--hlc-consent-h, 0px); }
.hlc-consent-on body > #root { height: 100%; }
@keyframes hlc-consent-in { from { transform: translateY(100%); } }
@keyframes hlc-consent-mask-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hlc-consent, .hlc-consent-mask { animation: none; } }
@media (max-width: 560px) {
  .hlc-consent { justify-content: stretch; }
  .hlc-consent-actions { width: 100%; }
  .hlc-consent-btn { flex: 1; }
}

/* The footer's "Cookie settings": looks like the links beside it. */
.foot button[data-consent-open] {
  appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
}
.foot button[data-consent-open]:hover { color: #f4f3f1; }
.foot button[data-consent-open][hidden] { display: none; }
