#consentik-cookie div#cst-cookie-banner {
  max-width: min(1280px, calc((100% - var(--main-padding) * 2)));
  width: 100%;
  right: 0;
  bottom: 20px;
  left: 0;
  padding: 20px 30px !important;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(14, 20, 36, 0.12);
}

#consentik-cookie #cst-cookies-message-context {
  gap: 8px;
}

#consentik-cookie p.cst-cookies-message-context {
  margin: 0;
}

#consentik-cookie #cst-cookie-banner div.cst-group-function {
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

#consentik-cookie #cst-cookie-banner div.cst-group-function:hover {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

#consentik-cookie #cst-cookie-banner div.cst-group-function:hover span.cst-close-icon {
  color: var(--color-black-1);
}

#consentik-cookie #cst-cookie-banner .cst-btn-group-wrapper .cst-btn-group {
  flex-direction: column-reverse;
  gap: 12px;
}

#consentik-cookie #cst-cookie-banner .cst-btn-group button.cst-cookies-btn {
  border-radius: 999px !important;
  font-size: 14px !important;
  line-height: 22px;
  min-width: 112px;
  white-space: nowrap;
}

#consentik-cookie .cst-btn-group button#cst-cookies-submit {
  background-color: #26E3DD;
  padding: 7px 16px;
  position: relative;
  overflow: hidden;
}

#consentik-cookie .cst-btn-group button#cst-cookies-submit:before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-color: var(--color-main-hover);
  box-shadow: inset 0 0 0 2px var(--color-main);
  transition: transform 240ms ease;
  transform: translateX(-101%);
  border-radius: inherit;
}

#consentik-cookie .cst-btn-group button#cst-cookies-submit:hover:before {
  transform: translateX(0);
}

#consentik-cookie .cst-btn-group #cst-cookies-preferences {
  border: 1px solid #DDDDDD !important;
  padding: 6px 16px;
}

#consentik-cookie .cst-btn-group #cst-cookies-preferences:hover {
  background-color: var(--color-black-1-hover) !important;
}

#consentik-cookie .cst-btn-group #cst-cookies-decline:hover {
  text-decoration: underline;
}

/* #cst-cookie-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
} */

div#consentik-cookie div#cst-preferences-popup {
  max-width: min(1000px, calc(100% - 2 * var(--main-padding)));
  max-height: 70vh;
  top: 50%;
  bottom: unset;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 0 20px rgba(14, 20, 36, 0.12);
}

#consentik-cookie .cst-preferences-popup {
  position: relative;
  display: flex;
  flex-direction: column;
}

#consentik-cookie .cst-preferences-header {
  padding: 20px;
}

#consentik-cookie .cst-preferences-popup .cst-group-function {
  width: 32px;
  height: 32px;
  top: 16px;
  right: 16px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
}

#consentik-cookie .cst-preferences-popup .cst-group-function:hover {
  background-color: var(--color-black-1-hover);
}

#consentik-cookie .cst-preferences-popup .cst-preferences-body {
  flex: 1;
  padding-bottom: 0;
  margin-bottom: 70px;
  overflow: auto;
  padding: 0 20px;
}

#consentik-cookie .cst-preferences-popup .cst-preferences-body::-webkit-scrollbar {
  width: 6px;
}

#consentik-cookie .cst-preferences-popup .cst-preferences-body::-webkit-scrollbar-track {
  background: transparent;
}

#consentik-cookie .cst-preferences-popup .cst-preferences-body::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #ccc;
}

#consentik-cookie .cst-preferences-popup p.cst-popup-message {
  max-width: 100%;
  padding: 0;
}

#consentik-cookie .cst-preferences-categories .cst-category-wrapper {
  position: relative;
  padding: 16px 78px 16px 16px;
  margin: 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

#consentik-cookie .cst-category-details {
  display: block !important;
}

#consentik-cookie .cst-category-wrapper .cst-category-title-trigger {
  padding: 0;
}

#consentik-cookie .cst-category-wrapper .cst-category-title-trigger:hover {
  opacity: unset;
  background: unset;
  border-radius: unset;
}

#consentik-cookie .cst-category-title {
  pointer-events: none;
  font-size: 16px !important;
}

#consentik-cookie .cst-category-title svg {
  display: none;
}

#consentik-cookie .cst-category-title-trigger .cst-category-button {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

#consentik-cookie label.cst-category-label {
  width: 46px;
  height: 24px;
  background: #bbb;
  border-radius: 999px;
}

#consentik-cookie .cst-category-switch label.cst-category-label:after {
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 999px;
}

#consentik-cookie input.cst-input-switch[checked=checked]~.cst-category-label {
  background: var(--color-main);
}

#consentik-cookie input.cst-input-switch:disabled~.cst-category-label {
  background: #CDF2F1;
}

#consentik-cookie .cst-category-switch input.cst-input-switch[checked=checked]+label:after {
  left: calc(100% - 2px);
}

#consentik-cookie .cst-preferences-header .cst-group-buttons {
  position: absolute;
  right: 24px;
  bottom: 16px;
  margin: 0;
  gap: 8px;
}

#consentik-cookie .cst-preferences-popup .cst-group-buttons button.cst-cookies-btn {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-black-1);
  padding: 7px 16px;
}

#consentik-cookie .cst-group-buttons button.cst-cookies-btn.cst-selected-btn {
  background: transparent;
  border: 1px solid #DDDDDD;
  padding: 6px 16px;
}

#consentik-cookie .cst-group-buttons button.cst-cookies-btn.cst-selected-btn:hover {
  opacity: 1;
  background: var(--color-black-1-hover);
}

#consentik-cookie .cst-group-buttons button.cst-cookies-btn.cst-all-btn {
  background: var(--color-main);
  position: relative;
  overflow: hidden;
}

#consentik-cookie .cst-group-buttons button.cst-cookies-btn.cst-all-btn:before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-color: var(--color-main-hover);
  box-shadow: inset 0 0 0 2px var(--color-main);
  transition: transform 240ms ease;
  transform: translateX(-101%);
  border-radius: inherit;
}

#consentik-cookie .cst-group-buttons button.cst-cookies-btn.cst-all-btn:hover:before {
  transform: translateX(0);
}

#consentik-cookie .cst-group-function span.cst-close-icon {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #666;
}

#consentik-cookie .cst-reopener-wrapper {
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 991px) {
  #consentik-cookie div#cst-cookie-banner {
    flex-direction: column;
    max-height: 80vh;
  }

  #consentik-cookie #cst-cookie-banner div.cst-banner-content {
    text-align: left;
    align-items: flex-start;
    flex: 1;
    overflow: hidden;
  }

  #consentik-cookie #cst-cookie-banner #cst-cookies-message {
    overflow: auto;
  }

  #consentik-cookie #cst-cookie-banner .cst-btn-group-wrapper .cst-btn-group {
    flex-direction: column-reverse;
    width: 100%;
  }

  #consentik-cookie #cst-cookie-banner .cst-btn-group-wrapper {
    width: 100%;
  }

  div#consentik-cookie div#cst-preferences-popup {
    padding: 0 !important;
  }

  #consentik-cookie .cst-preferences-header {
    padding: 20px 24px;
  }

  #consentik-cookie .cst-preferences-header .cst-group-buttons {
    flex-direction: column;
    right: 20px;
    left: 20px;
  }

  #consentik-cookie .cst-group-buttons button.cst-cookies-btn {
    width: 100% !important;
  }

  #consentik-cookie .cst-preferences-popup .cst-preferences-body {
    padding: 0 16px;
    margin-bottom: 112px;
  }

  #consentik-cookie #cst-cookie-banner .cst-privacy-wrapper {
    text-align: left;
  }
}
