/* SocialSyncFlow cookie consent v2: banner + preference controls */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 69; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.cookie-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 760px; margin: 0 auto; background: #F7F5F2; border: 1px solid rgba(0,0,0,0.12); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35), 0 12px 32px -8px rgba(0,0,0,0.18); z-index: 70; padding: 30px 32px; transform: translateY(calc(100% + 48px)); opacity: 0; transition: transform .45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity .35s ease; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner__inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.cookie-banner__inner[hidden] { display: none !important; }
.cookie-banner__text { flex: 1 1 360px; font-size: 0.92rem; color: #2E2A26; font-weight: 400; line-height: 1.6; }
.cookie-banner__text strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.2rem; color: #1A1A1A; display: block; margin-bottom: 6px; }
.cookie-banner__text a { color: #6A0303; border-bottom: 1px solid currentColor; font-weight: 500; text-decoration: none; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner__btn { font-family: 'Inter', -apple-system, system-ui, sans-serif; font-size: 0.86rem; padding: 13px 24px; border-radius: 999px; border: 1px solid; cursor: pointer; font-weight: 600; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease; white-space: nowrap; }
.cookie-banner__btn--primary { background: #6A0303; border-color: #6A0303; color: #F7F5F2; padding: 13px 28px; box-shadow: 0 4px 16px -4px rgba(0,0,0,0.3); }
.cookie-banner__btn--primary:hover { background: #8a1a1a; border-color: #8a1a1a; transform: translateY(-1px); }
.cookie-banner__btn--ghost { background: transparent; border-color: rgba(0,0,0,0.14); color: #2E2A26; }
.cookie-banner__btn--ghost:hover { background: rgba(0,0,0,0.04); border-color: #2E2A26; }
.cookie-banner__btn--text { background: transparent; border-color: transparent; color: #6A0303; padding: 13px 12px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.cookie-banner__btn--text:hover { color: #1A1A1A; background: transparent; }
.cookie-prefs { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; width: 100%; }
.cookie-prefs__row { display: flex; align-items: center; gap: 22px; padding: 16px 18px; background: #F3EBDD; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; cursor: pointer; transition: border-color .25s ease; }
.cookie-prefs__row:hover:not(.cookie-prefs__row--locked) { border-color: #6A0303; }
.cookie-prefs__row--locked { cursor: default; opacity: 0.78; }
.cookie-prefs__label { flex: 1; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.cookie-prefs__label strong { display: block; font-size: 0.95rem; color: #1A1A1A; font-weight: 600; margin-bottom: 3px; }
.cookie-prefs__label span { display: block; font-size: 0.84rem; color: #6B6661; font-weight: 400; line-height: 1.5; }
.cookie-prefs__input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-prefs__toggle { flex-shrink: 0; width: 44px; height: 24px; background: rgba(0,0,0,0.14); border-radius: 999px; position: relative; transition: background .25s ease; }
.cookie-prefs__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .25s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.cookie-prefs__input:checked ~ .cookie-prefs__toggle { background: #6A0303; }
.cookie-prefs__input:checked ~ .cookie-prefs__toggle .cookie-prefs__knob { transform: translateX(20px); }
.cookie-prefs__toggle--locked { background: #6A0303; }
.cookie-prefs__toggle--locked .cookie-prefs__knob { transform: translateX(20px); }
.cookie-prefs__input:focus-visible ~ .cookie-prefs__toggle { outline: 2px solid #6A0303; outline-offset: 3px; }
body.cookie-banner-open { overflow: hidden; }

/* Controls on the Cookies & Cookie Settings page */
.cookie-controls { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 24px; padding: 28px 28px 24px; margin: 0 0 48px; box-shadow: 0 8px 28px rgba(0,0,0,0.06); }
.cookie-controls h2 { margin-top: 0 !important; }
.cookie-controls__intro { margin-bottom: 18px; }
.cookie-controls__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cookie-controls__status { margin: 16px 0 0 !important; font-size: 0.88rem !important; color: #6B6661 !important; }

@media (max-width: 760px) {
  .cookie-banner { bottom: 12px; left: 12px; right: 12px; padding: 22px 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; flex: 0 0 auto; }
  .cookie-banner__text { flex: 0 0 auto; font-size: 0.86rem; line-height: 1.55; }
  .cookie-banner__text strong { font-size: 1.1rem; margin-bottom: 4px; }
  .cookie-banner__actions { flex-direction: column-reverse; width: 100%; gap: 8px; }
  .cookie-banner__btn { width: 100%; padding: 14px 16px; text-align: center; }
  .cookie-prefs__row { padding: 14px 14px; gap: 14px; }
  .cookie-controls { padding: 20px 18px 18px; border-radius: 18px; }
  .cookie-controls__actions .cookie-banner__btn { width: 100%; }
}
