/* ============================================================================
   cosmos consent-banner — PDPL Art 24 default-deny banner
   - Bottom card on mobile; bottom-right on desktop
   - Light/clean (Cosmos navy + brand orange accents)
   - No layout shift on render (position: fixed)
   ============================================================================ */

#cf-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9995; /* under Sophia/Convolo, above sticky CTA visually */
  font-family: inherit;
  color: #0a2540;
  transform: translateY(0);
  opacity: 1;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 280ms ease;
  will-change: transform, opacity;
  font-size: 14px;
}
#cf-consent.cf-consent--out {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  #cf-consent {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 480px;
  }
}

#cf-consent .cf-consent__inner {
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.18);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#cf-consent[dir="rtl"] .cf-consent__inner {
  text-align: right;
}

#cf-consent .cf-consent__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
#cf-consent .cf-consent__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #324054;
}
#cf-consent .cf-consent__learn {
  color: #0a2540;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cf-consent .cf-consent__learn:hover { color: #E8622A; }

#cf-consent .cf-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#cf-consent .cf-consent__btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
#cf-consent .cf-consent__btn:active { transform: translateY(1px); }
#cf-consent .cf-consent__btn:focus-visible {
  outline: 2px solid #E8622A;
  outline-offset: 2px;
}

#cf-consent .cf-consent__btn--accept {
  background: linear-gradient(135deg, #E8622A 0%, #ff7f47 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(232, 98, 42, 0.30);
}
#cf-consent .cf-consent__btn--accept:hover { box-shadow: 0 6px 16px rgba(232, 98, 42, 0.42); }

#cf-consent .cf-consent__btn--decline {
  background: rgba(10, 37, 64, 0.06);
  color: #0a2540;
}
#cf-consent .cf-consent__btn--decline:hover { background: rgba(10, 37, 64, 0.12); }

#cf-consent .cf-consent__lang {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(10, 37, 64, 0.16);
  background: #ffffff;
  border-radius: 999px;
  color: #0a2540;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
#cf-consent .cf-consent__lang:hover { background: rgba(10, 37, 64, 0.04); }

@media (prefers-reduced-motion: reduce) {
  #cf-consent { transition: opacity 200ms ease; }
}
