/*!
 * SOSW cookie consent banner styles — reference v3 (HQ-1396)
 * Dependency-free, ~1KB. Pairs with consent.js (reference v3).
 * 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.
 */
#sosw-consent-banner {
  /* --- theme tokens (per site) --- */
  --sc-bg: var(--bg, #efe8d9);
  --sc-fg: var(--fg, #14161a);
  --sc-border: color-mix(in srgb, var(--fg, #14161a) 22%, transparent);
  --sc-link: var(--fg, #14161a);
  --sc-btn-bg: var(--accent, #e9b25c);
  --sc-btn-fg: var(--accent-ink, #14161a);
  --sc-btn-hover: color-mix(in srgb, var(--accent, #e9b25c) 85%, var(--fg, #14161a));
  --sc-focus: var(--accent, #e9b25c);
  --sc-radius: var(--radius-md, 8px);
  --sc-shadow: var(--shadow-card, 2px 3px 0 rgba(20, 22, 26, 0.3));
  /* --- 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 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

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

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

#sosw-consent-banner .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 {
  background: rgba(127, 127, 127, 0.12);
}

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

@media (max-width: 480px) {
  #sosw-consent-banner {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    line-height: 1.35;
  }
  #sosw-consent-banner .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-height: 44px;
  }
}

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