/* Standalone cookie-banner styles for pages that get cookie-consent.js from tools/install-marketing-pixel.py
   (ad pages without the root styles.css). Adapted from the "Cookie banner" block of landing/styles.css:
   every selector starts with .cookie-banner and colors are literal (no :root variables), so the host
   page design is untouched. Keep in sync with that block; no legal text lives here. */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #F1FCFF; border-top: 1px solid #E3EFF3;
  box-shadow: 0 -4px 16px rgba(0, 34, 0, .08);
  color: #002200; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left;
}
.cookie-banner *, .cookie-banner *::before, .cookie-banner *::after { box-sizing: border-box; }
/* the banner reuses class "container"; the host page may define it differently, so pin it here */
.cookie-banner .cookie-banner__inner {
  display: grid; gap: 10px; width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px);
}
.cookie-banner__inner > * { min-width: 0; }
.cookie-banner .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.cookie-banner__text { max-width: 80ch; margin: 0; font-size: 14px; line-height: 1.4; }
.cookie-banner__text a { color: #1F6FD6; text-underline-offset: 3px; }
.cookie-banner__settings {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 4px 24px;
  margin: 0; padding: 8px 12px; border: 1px solid #E3EFF3; border-radius: 8px; background: #fff;
}
.cookie-banner__toggle { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cookie-banner__toggle input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #1F6FD6; }
.cookie-banner__hint { display: block; font-size: 13px; color: #4A6450; }
.cookie-banner__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cookie-banner__btn {
  min-width: 0; min-height: 44px; margin: 0; padding: 6px 10px; border: 1.5px solid #002200; border-radius: 4px;
  background: #fff; color: #002200; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  overflow-wrap: anywhere; hyphens: auto;
}
.cookie-banner__btn:hover { background: #E3FBFF; }
@media (max-width: 479px) { .cookie-banner__btn { padding: 6px; font-size: 13px; } }
@media (min-width: 1100px) {
  .cookie-banner .cookie-banner__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
  .cookie-banner__text { grid-column: 1; grid-row: 1; }
  .cookie-banner__actions { grid-column: 2; grid-row: 1; grid-template-columns: repeat(3, 11.5rem); }
  .cookie-banner__settings { grid-column: 1 / -1; grid-row: 2; }
}
