/*!
 * SOSW cookie consent banner styles — reference v5 (WAY-677)
 * Dependency-free, ~1.3KB. Pairs with consent.js (reference v5).
 * v3 (HQ-1396): compact floating card instead of the v2 edge-to-edge slab —
 * mobile ≤ ~15% of the viewport (text, then Accept/Decline inline on ONE row),
 * desktop a single ≤64px row; themed per host site through the token block
 * below (the ONLY part that differs between sites), font inherited from body.
 * v4 (WAY-484): three buttons (Decline / Statistics only / Accept) on one
 * row; on mobile they share the row equally and the middle label may wrap.
 * v5 (WAY-677): #sosw-consent-notice — the slim first-visit notice shown in
 * default-on regions instead of the banner: one text line + link-styled
 * "Cookie settings" + small "OK", bottom-anchored, ≤ ~44px on desktop and
 * two short rows on mobile, so it never covers a page CTA (the /go/ install
 * badge sits in the hero, in normal flow). Shares the banner tokens.
 * Budget: consent.js + consent.css ~4KB gzipped of code together (v5: 1.0KB
 * css + 3.5KB js without comments; shipped unminified).
 */
#sosw-consent-banner,
#sosw-consent-notice {
  /* --- theme tokens (per site) --- */
  --sc-bg: var(--card, #fffdf7);
  --sc-fg: var(--ink, #172033);
  --sc-border: var(--line, rgba(23, 32, 51, 0.14));
  --sc-link: var(--indigo-dark, #0F2569);
  --sc-btn-bg: var(--indigo, #1A3A9C);
  --sc-btn-fg: #fffdf8;
  --sc-btn-hover: var(--indigo-dark, #0F2569);
  --sc-focus: var(--indigo, #1A3A9C);
  --sc-radius: 12px;
  --sc-shadow: 0 8px 28px rgba(37, 42, 55, 0.14);
  /* --- end theme tokens --- */
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px;
  background: var(--sc-bg);
  color: var(--sc-fg);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
}

#sosw-consent-banner .sosw-consent-text,
#sosw-consent-notice .sosw-consent-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

#sosw-consent-banner .sosw-consent-link,
#sosw-consent-notice .sosw-consent-link {
  color: var(--sc-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#sosw-consent-banner .sosw-consent-actions,
#sosw-consent-notice .sosw-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#sosw-consent-banner .sosw-consent-btn,
#sosw-consent-notice .sosw-consent-btn {
  cursor: pointer;
  border-radius: 8px;
  padding: 0 14px;
  min-height: 40px;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--sc-border);
  background: transparent;
  color: var(--sc-fg);
}

#sosw-consent-banner .sosw-consent-btn--primary {
  background: var(--sc-btn-bg);
  color: var(--sc-btn-fg);
  border-color: var(--sc-btn-bg);
}

#sosw-consent-banner .sosw-consent-btn--primary:hover {
  background: var(--sc-btn-hover);
  border-color: var(--sc-btn-hover);
}

#sosw-consent-banner .sosw-consent-btn--secondary:hover,
#sosw-consent-notice .sosw-consent-btn--secondary:hover {
  background: rgba(127, 127, 127, 0.12);
}

#sosw-consent-banner .sosw-consent-btn:focus-visible,
#sosw-consent-notice .sosw-consent-btn:focus-visible {
  outline: 2px solid var(--sc-focus);
  outline-offset: 2px;
}

/* v5 notice: slimmer than the banner — one row, smaller type, link-styled
   settings action, small OK. */
#sosw-consent-notice {
  max-width: 720px;
  padding: 6px 12px;
  font-size: 12.5px;
  line-height: 1.35;
  --sc-shadow: 0 4px 16px rgba(37, 42, 55, 0.12);
}

#sosw-consent-notice .sosw-consent-btn {
  min-height: 32px;
  padding: 0 10px;
  font-weight: 500;
}

#sosw-consent-notice .sosw-consent-btn--link {
  border-color: transparent;
  color: var(--sc-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0 4px;
}

#sosw-consent-notice .sosw-consent-btn--link:hover {
  background: rgba(127, 127, 127, 0.12);
}

@media (max-width: 480px) {
  #sosw-consent-banner,
  #sosw-consent-notice {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    line-height: 1.35;
  }
  #sosw-consent-banner .sosw-consent-text,
  #sosw-consent-notice .sosw-consent-text {
    flex-basis: 100%;
  }
  #sosw-consent-banner .sosw-consent-actions {
    flex: 1 1 100%;
  }
  #sosw-consent-banner .sosw-consent-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
  }
  #sosw-consent-banner .sosw-consent-btn--stats {
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }
  #sosw-consent-notice {
    padding: 6px 10px;
    gap: 4px;
  }
  #sosw-consent-notice .sosw-consent-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  #sosw-consent-notice .sosw-consent-btn {
    min-height: 36px;
  }
}

@media (max-width: 350px) {
  #sosw-consent-banner,
  #sosw-consent-notice {
    padding: 8px 10px;
    font-size: 12.5px;
    line-height: 1.25;
  }
}
