/**
 * Cookie consent — Light Blur Teaser overlay + border-less shadow card.
 * Decoupled from footer/layout; loaded directly or via style.css @import.
 */
#cn-cookie-consent-root.cn-cookie-consent-overlay,
#cn-cookie-consent-root.cn-cookie-consent {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: transparent !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none !important;
  isolation: isolate !important;
  contain: layout style;
}

#cn-cookie-consent-root .cn-cookie-banner-panel,
#cn-cookie-consent-root.cn-cookie-banner {
  pointer-events: auto;
}

#cn-cookie-consent-root .cn-cookie-banner-panel,
#cn-cookie-consent-root.cn-cookie-banner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #171717 !important;
  border: none !important;
  border-radius: 0.75rem;
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.35),
    0 8px 16px -8px rgba(0, 0, 0, 0.2);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #f5f5f5 !important;
  pointer-events: auto;
}

#cn-cookie-consent-root .cn-cookie-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  #cn-cookie-consent-root .cn-cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

#cn-cookie-consent-root .cn-cookie-consent__copy {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
}

@media (min-width: 768px) {
  #cn-cookie-consent-root .cn-cookie-consent__copy {
    text-align: start;
  }
}

#cn-cookie-consent-root .cn-cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fafafa !important;
}

#cn-cookie-consent-root .cn-cookie-consent__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #a3a3a3 !important;
}

#cn-cookie-consent-root .cn-cookie-consent__desc--denied {
  color: #f87171 !important;
  font-weight: 500;
}

#cn-cookie-consent-root .cn-cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  #cn-cookie-consent-root .cn-cookie-consent__actions {
    width: auto;
    margin-inline-start: auto;
  }
}

#cn-cookie-consent-root button.cn-cookie-consent__btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

#cn-cookie-consent-root .cn-cookie-consent__btn--decline {
  color: #a3a3a3 !important;
  background: transparent !important;
}

#cn-cookie-consent-root .cn-cookie-consent__btn--decline:hover,
#cn-cookie-consent-root .cn-cookie-consent__btn--decline:focus-visible {
  color: #ffffff !important;
  outline: none;
}

#cn-cookie-consent-root .cn-cookie-consent__btn--accept {
  color: #ffffff !important;
  background: #2563eb !important;
}

#cn-cookie-consent-root .cn-cookie-consent__btn--accept:hover,
#cn-cookie-consent-root .cn-cookie-consent__btn--accept:focus-visible {
  background: #3b82f6 !important;
  outline: none;
}

/* Legacy bleed: hide mis-placed banner nodes inside footer */
.site-footer #cn-cookie-consent-root,
.footer-content #cn-cookie-consent-root,
footer #cn-cookie-consent-root,
.site-footer [data-cn-cookie-banner],
.footer-content [data-cn-cookie-banner] {
  display: none !important;
}

html[data-theme="light"] #cn-cookie-consent-root .cn-cookie-banner-panel,
html[data-theme="light"] #cn-cookie-consent-root.cn-cookie-banner {
  background: #ffffff !important;
  color: #171717 !important;
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.12),
    0 8px 16px -8px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] #cn-cookie-consent-root .cn-cookie-consent__title {
  color: #171717 !important;
}

html[data-theme="light"] #cn-cookie-consent-root .cn-cookie-consent__desc {
  color: #525252 !important;
}
