/* Center the consent dialog over a softly blurred page backdrop. */
html:has(.cmplz-cookiebanner.cmplz-show)::before {
  background: rgba(12, 22, 25, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  content: "";
  inset: 0;
  pointer-events: auto;
  position: fixed;
  z-index: 99998;
}

.cmplz-cookiebanner.cmplz-show {
  bottom: auto !important;
  left: 50% !important;
  margin: 0 !important;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  right: auto !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(470px, calc(100vw - 32px)) !important;
  z-index: 99999 !important;
}

/* Keep all consent choices available while removing only the close icon. */
.cmplz-cookiebanner .cmplz-close {
  display: none !important;
}

/* Keep the cookie settings control compact, circular, and reachable on every device. */
html body #cmplz-manage-consent .cmplz-manage-consent {
  align-items: center !important;
  animation: none !important;
  background: #fbfaf6 !important;
  border: 1px solid #c7a86a !important;
  border-radius: 50% !important;
  bottom: 16px !important;
  box-shadow: 0 5px 18px rgba(16, 32, 33, 0.2) !important;
  box-sizing: border-box !important;
  color: transparent !important;
  cursor: pointer;
  display: flex !important;
  font-size: 0 !important;
  height: 45px !important;
  justify-content: center !important;
  left: 16px !important;
  line-height: 0 !important;
  margin: 0 !important;
  min-height: 45px !important;
  min-width: 45px !important;
  overflow: hidden;
  padding: 0 !important;
  position: fixed !important;
  right: auto !important;
  text-align: center !important;
  top: auto !important;
  transform: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: 45px !important;
  z-index: 99997 !important;
}

#cmplz-manage-consent .cmplz-manage-consent::before {
  background-color: #244b49;
  content: "";
  height: 24px;
  left: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 12.2A8.8 8.8 0 1 1 11.8 3.4c.2 2.8 2.4 5 5.2 5h1.1c0 2 1.3 3.6 3.2 3.8Z' fill='none' stroke='%23244b49' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='11' r='1' fill='%23244b49'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%23244b49'/%3E%3Ccircle cx='15' cy='12' r='1' fill='%23244b49'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 12.2A8.8 8.8 0 1 1 11.8 3.4c.2 2.8 2.4 5 5.2 5h1.1c0 2 1.3 3.6 3.2 3.8Z' fill='none' stroke='%23244b49' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='11' r='1' fill='%23244b49'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%23244b49'/%3E%3Ccircle cx='15' cy='12' r='1' fill='%23244b49'/%3E%3C/svg%3E") center / contain no-repeat;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
}

#cmplz-manage-consent .cmplz-manage-consent:hover {
  box-shadow: 0 7px 20px rgba(16, 32, 33, 0.26) !important;
  transform: translateY(-2px);
}

#cmplz-manage-consent .cmplz-manage-consent:focus-visible {
  outline: 3px solid #c7a86a;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #cmplz-manage-consent .cmplz-manage-consent {
    transition: none;
  }
}

@media (max-width: 600px) {
  html body #cmplz-manage-consent .cmplz-manage-consent {
    bottom: 16px !important;
    height: 37px !important;
    left: 16px !important;
    min-height: 37px !important;
    min-width: 37px !important;
    right: auto !important;
    width: 37px !important;
  }

  #cmplz-manage-consent .cmplz-manage-consent::before {
    height: 20px;
    width: 20px;
  }
}
