/*
 * Consent banner (Complianz) — matched to the NXPadel site.
 * Same tokens as the pages: bg #090909, panel #141414, line rgba(255,255,255,.14), orange #ff5a00,
 * body text Myriad (fallback Inter), headings Kallisto (fallback Archivo) uppercase 800,
 * pill buttons with an arrow; the filled button has no border.
 * Loaded after Complianz's own banner CSS, so selectors are a bit more specific and use !important.
 */
html body .cmplz-cookiebanner,
html body .cmplz-cookiebanner *,
html body #cmplz-manage-consent .cmplz-manage-consent {
  font-family: 'myriad-variable', 'Inter', Arial, Helvetica, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Panel */
html body .cmplz-cookiebanner.banner-1 {
  background: #0f0f0f !important;
  color: #f7f4ee !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6) !important;
  padding: 20px 22px 18px !important;
  max-width: min(480px, calc(100vw - 24px)) !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-divider { display: none !important; }

/* Title: site heading style */
html body .cmplz-cookiebanner.banner-1 .cmplz-header { margin-bottom: 10px !important; }
html body .cmplz-cookiebanner.banner-1 .cmplz-title {
  font-family: 'kallisto', 'Archivo', 'Arial Black', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  font-size: 13px !important;
  color: #fff !important;
  justify-self: start !important;
  grid-column-start: 1 !important;
  text-align: left !important;
  display: block !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-header { grid-template-columns: 1fr auto !important; }
html body .cmplz-cookiebanner.banner-1 .cmplz-close { color: rgba(247, 244, 238, .6) !important; grid-column-start: 2 !important; }
html body .cmplz-cookiebanner.banner-1 .cmplz-close:hover { color: #ff5a00 !important; }

/* Body text */
html body .cmplz-cookiebanner.banner-1 .cmplz-message {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: rgba(247, 244, 238, .72) !important;
  margin-right: 0 !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-message a { color: #ff5a00 !important; }

/* Buttons: pill + arrow. Filled = orange, no border. Others = outline. */
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons { gap: 8px !important; flex-wrap: wrap; margin-top: 4px; }
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn {
  text-align: center !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-height: 42px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  font-family: 'kallisto', 'Archivo', 'Arial Black', sans-serif !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transition: background .2s, border-color .2s, color .2s, transform .2s !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn::after {
  content: '' !important;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>") center / contain no-repeat;
}
/* Accept and Deny have EXACTLY the same visual weight (same fill, size, font): refusing must be as easy and as
   prominent as accepting (GDPR / EDPB cookie-banner guidance). Only "preferences" is a secondary outline button. */
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-accept,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-deny {
  background: #ff5a00 !important;
  color: #fff !important;
  border: 0 !important;
}
/* Same width for Accept and Deny */
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-accept,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-deny {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-view-preferences {
  flex: 1.7 1 0 !important;
  min-width: 0 !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-accept:hover,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-deny:hover { background: #ff7a2e !important; color: #fff !important; }
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-save-preferences,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-manage-options {
  background: transparent !important;
  color: #f7f4ee !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover,
html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn.cmplz-manage-options:hover {
  border-color: #ff5a00 !important;
  color: #ff5a00 !important;
}

/* Links under the buttons */
html body .cmplz-cookiebanner.banner-1 .cmplz-links { margin-top: 10px; text-align: left !important; }
html body .cmplz-cookiebanner.banner-1 .cmplz-links .cmplz-link {
  color: rgba(247, 244, 238, .56) !important;
  font-size: 11px !important;
  letter-spacing: .02em;
  text-decoration: none !important;
  margin-right: 14px;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-links .cmplz-link:hover { color: #ff5a00 !important; text-decoration: underline !important; }

/* Preferences panel (categories) */
html body .cmplz-cookiebanner.banner-1 .cmplz-categories .cmplz-category {
  background: #171717 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 14px !important;
  overflow: hidden;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-category .cmplz-category-title,
html body .cmplz-cookiebanner.banner-1 .cmplz-category .cmplz-always-active {
  color: #f7f4ee !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-category .cmplz-always-active { color: #ff5a00 !important; }
html body .cmplz-cookiebanner.banner-1 .cmplz-category .cmplz-description {
  color: rgba(247, 244, 238, .62) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-category input[type="checkbox"] { accent-color: #ff5a00; }
html body .cmplz-cookiebanner.banner-1 .cmplz-category .cmplz-icon { filter: invert(1); opacity: .7; }

/* Scrollbar */
html body .cmplz-cookiebanner.banner-1 .cmplz-body::-webkit-scrollbar-thumb { background-color: #ff5a00 !important; }

/* Floating "Manage consent" tab: not shown. Not required by law (a permanent link is enough) and the footer
   has a "Cookie Preferences" link on every page. The button must stay in the DOM: that link clicks it to reopen the banner. */
html body #cmplz-manage-consent,
html body #cmplz-manage-consent .cmplz-manage-consent {
  display: none !important;
}

/* Screen-reader-only text (this theme does not ship WordPress's .screen-reader-text rule) */
html body .cmplz-cookiebanner .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Toggle switch: orange when on */
html body .cmplz-cookiebanner.banner-1 .cmplz-banner-checkbox input:checked + .cmplz-label {
  background-color: #ff5a00 !important;
}
html body .cmplz-cookiebanner.banner-1 .cmplz-banner-checkbox input:focus-visible + .cmplz-label,
html body .cmplz-cookiebanner.banner-1 .cmplz-close:focus-visible,
html body .cmplz-cookiebanner.banner-1 .cmplz-btn:focus-visible {
  outline: 2px solid #ff5a00 !important;
  outline-offset: 2px !important;
}

@media (max-width: 560px) {
  html body .cmplz-cookiebanner.banner-1 { padding: 16px 16px 14px !important; border-radius: 18px !important; }
  html body .cmplz-cookiebanner.banner-1 .cmplz-buttons .cmplz-btn { flex: 1 1 100% !important; }
}
