/**
 * Complianz presentation layer.
 *
 * Functionality and visibility remain controlled by Complianz. All selectors
 * are scoped to the plugin so global theme rules cannot leak into the banner.
 */
.cmplz-cookiebanner {
  --cmplz_banner_width: min(36rem, calc(100vw - 2rem));
  --cmplz_banner_background_color: #fffaf3;
  --cmplz_banner_border_color: rgba(23, 36, 33, .14);
  --cmplz_banner_border_width: 1px;
  --cmplz_banner_border_radius: 1.5rem;
  --cmplz_banner_margin: .75rem;
  --cmplz_title_font_size: 1.35rem;
  --cmplz_text_font_size: .95rem;
  --cmplz_link_font_size: .85rem;
  --cmplz_category_body_font_size: .88rem;
  --cmplz_category_header_title_font_size: .95rem;
  --cmplz_category_header_active_font_size: .78rem;
  --cmplz_text_color: #172421;
  --cmplz_hyperlink_color: #0f3d3e;
  --cmplz_button_accept_background_color: #0f3d3e;
  --cmplz_button_accept_border_color: #0f3d3e;
  --cmplz_button_accept_text_color: #fffaf3;
  --cmplz_button_deny_background_color: transparent;
  --cmplz_button_deny_border_color: rgba(23, 36, 33, .24);
  --cmplz_button_deny_text_color: #172421;
  --cmplz_button_settings_background_color: #d9e4d2;
  --cmplz_button_settings_border_color: #d9e4d2;
  --cmplz_button_settings_text_color: #172421;
  --cmplz_button_border_radius: 999px;
  --cmplz_slider_active_color: #0f3d3e;
  --cmplz_slider_inactive_color: #cbd4d0;
  font-family: var(--wp--preset--font-family--system-sans-serif, Inter, sans-serif);
  box-shadow: 0 1.5rem 5rem rgba(23, 36, 33, .2);
  padding: 1.5rem;
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .cmplz-cookiebanner {
    right: auto !important;
    bottom: 1rem !important;
    left: 50% !important;
    width: min(36rem, calc(100vw - 2rem)) !important;
    max-width: min(36rem, calc(100vw - 2rem)) !important;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 1025px) {
  .cmplz-cookiebanner {
    right: auto !important;
    bottom: 1rem !important;
    left: 1rem !important;
    width: min(36rem, calc(100vw - 2rem)) !important;
    max-width: min(36rem, calc(100vw - 2rem)) !important;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    transform: none !important;
  }
}

.cmplz-banner-active typebot-bubble {
  display: none !important;
}

.cmplz-cookiebanner,
.cmplz-cookiebanner * {
  box-sizing: border-box;
}

.cmplz-cookiebanner > :is(
  .cmplz-header,
  .cmplz-divider,
  .cmplz-body,
  .cmplz-information,
  .cmplz-buttons,
  .cmplz-documents
) {
  width: auto !important;
  grid-area: auto !important;
  grid-column: 1 / -1 !important;
}

.cmplz-cookiebanner .cmplz-header {
  grid-template-columns: minmax(5rem, 7rem) 1fr 1.5rem;
  gap: 1rem;
}

.cmplz-cookiebanner .cmplz-logo img {
  width: 100%;
  max-height: 3rem;
  object-fit: contain;
  object-position: left center;
  border-radius: .35rem;
}

.cmplz-cookiebanner .cmplz-title {
  justify-self: start;
  font-family: var(--wp--preset--font-family--heading, Cardo, Georgia, serif);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.cmplz-cookiebanner .cmplz-message {
  letter-spacing: .005em;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category {
  overflow: hidden;
  background: rgba(217, 228, 210, .42);
  border: 1px solid rgba(23, 36, 33, .08);
  border-radius: .8rem;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category:not(:last-child) {
  margin-bottom: .5rem;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  width: 100% !important;
  min-width: 0;
  min-height: 2.85rem;
  font-family: var(--wp--preset--font-family--system-sans-serif, Inter, sans-serif);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.15;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.cmplz-cookiebanner .cmplz-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .65rem;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences,
.cmplz-cookiebanner .cmplz-buttons .cmplz-manage-options {
  grid-column: 1 / -1;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:focus-visible {
  transform: translateY(-1px);
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
  background-color: #e36f45;
  border-color: #e36f45;
}

.cmplz-cookiebanner .cmplz-links {
  font-size: .8rem;
}

.cmplz-cookiebanner .cmplz-link {
  text-underline-offset: .18em;
}

#cmplz-manage-consent .cmplz-manage-consent {
  right: auto !important;
  left: 1rem !important;
  bottom: 0 !important;
  min-height: 2.75rem;
  height: auto;
  padding: .7rem 1rem;
  color: #fffaf3 !important;
  background: #0f3d3e !important;
  border: 0;
  border-radius: .8rem .8rem 0 0;
  font-family: var(--wp--preset--font-family--system-sans-serif, Inter, sans-serif);
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 .6rem 2rem rgba(23, 36, 33, .18) !important;
}

@media (max-width: 640px) {
  .cmplz-cookiebanner {
    right: .5rem !important;
    left: .5rem !important;
    width: calc(100vw - 1rem) !important;
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
    border-radius: 1.1rem;
    transform: none !important;
  }

  .cmplz-cookiebanner .cmplz-title {
    font-size: 1.15rem;
  }

  .cmplz-cookiebanner .cmplz-message {
    font-size: .88rem;
    line-height: 1.4;
  }

  .cmplz-cookiebanner .cmplz-header {
    grid-template-columns: 5.5rem 1fr 1.25rem;
    gap: .65rem;
  }

  .cmplz-cookiebanner .cmplz-buttons {
    grid-template-columns: 1fr !important;
  }

  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    grid-column: 1;
    width: 100%;
  }
}
