/* NAAN cookie consent - theme overrides for CookieConsent v3 + iframemanager */

#cc-main {
  --cc-font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cc-modal-border-radius: 0.5rem;
  --cc-btn-border-radius: 0.25rem;
  --cc-bg: #fff;
  --cc-primary-color: #333;
  --cc-secondary-color: #666;
  --cc-btn-primary-bg: #36afeb;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #36afeb;
  --cc-btn-primary-hover-bg: #1e97d3;
  --cc-btn-primary-hover-border-color: #1e97d3;
  --cc-btn-secondary-bg: #e1f0fb;
  --cc-btn-secondary-color: #333;
  --cc-btn-secondary-border-color: #e1f0fb;
  --cc-btn-secondary-hover-bg: #c9e3f7;
  --cc-btn-secondary-hover-border-color: #c9e3f7;
  --cc-toggle-on-bg: #36afeb;
  --cc-toggle-readonly-bg: #9fd3f1;
  --cc-cookie-category-block-bg: #f4f9fd;
  --cc-cookie-category-block-border: #e1f0fb;
  --cc-cookie-category-block-hover-bg: #ebf5fd;
  --cc-cookie-category-block-hover-border: #d3e9f8;
  --cc-separator-border-color: #e1f0fb;
  --cc-footer-bg: #f4f9fd;
  --cc-footer-border-color: #e1f0fb;
  --cc-overlay-bg: rgba(0, 0, 0, 0.5);
  --cc-z-index: 2147483000;
  font-weight: 400;
}

#cc-main .cm__title,
#cc-main .pm__title,
#cc-main .pm__section-title {
  font-weight: 700;
}

#cc-main .pm__badge {
  background: #e1f0fb;
  color: #333;
}

/* Floating "Cookie settings" button */
.naan-cookie-btn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #c9e3f7;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: 600 0.8rem/1 'Nunito Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0.9;
}

.naan-cookie-btn:hover,
.naan-cookie-btn:focus-visible {
  opacity: 1;
  border-color: #36afeb;
  outline: 2px solid #36afeb;
  outline-offset: 2px;
}

.naan-cookie-btn svg {
  color: #36afeb;
}

@media (max-width: 640px) {
  .naan-cookie-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .naan-cookie-btn {
    padding: 0.5rem;
  }
}

/* Hide the floating button while a consent dialog is open */
html.show--consent .naan-cookie-btn,
html.show--preferences .naan-cookie-btn {
  display: none;
}

/* Video placeholders (iframemanager) */
.naan-embed[data-service] {
  --im-font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --im-bg: #1c2b36;
  --im-btn-bg: #36afeb;
  --im-btn-hover-bg: #1e97d3;
  --im-btn-color: #fff;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
}

.naan-embed[data-service]:before {
  padding-top: var(--naan-ratio, 56.25%);
}

.naan-embed[data-service] .cll .c-n-t {
  font-size: 0.9rem;
  line-height: 1.5;
}

.naan-embed[data-service] .cll a {
  color: #9fd3f1;
  text-decoration: underline;
}
