#cookie-consent-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #ffffff;
  color: #171615;
  border: 1px solid #e6e4e2;
  border-radius: 32px;
  max-width: 516px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px;
  box-sizing: border-box;
  font-family:
    Geist,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

#cookie-consent-banner .ccb-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

#cookie-consent-banner .ccb-body {
  flex: 1;
}

#cookie-consent-banner h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.6px;
  color: #171615;
}

#cookie-consent-banner p {
  margin: 16px 0px;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.45px;
  font-weight: 400;
  color: #767370;
}

#cookie-consent-banner .ccb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

#cookie-consent-banner .ccb-customize {
  margin: 0 0 8px 0;
}

#cookie-consent-banner .ccb-link {
  color: #171615;
  text-decoration: underline;
  cursor: pointer;
}

#cookie-consent-banner #ccb-save {
  display: none;
}

#cookie-consent-banner button {
  appearance: none;
  border: none;
  background: #ffffff;
  color: #171615;
  padding: 12px 24px;
  min-width: 125px;
  height: 48px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.45px;
  box-shadow: inset 0 0 0 1px #171615;
}

#cookie-consent-banner button:hover {
  background: #f7f7f7;
}

#cookie-consent-banner button.ccb-primary {
  background: #171615;
  color: #ffffff;
  box-shadow: none;
}

#cookie-consent-banner.ccb-customizing .ccb-actions {
  width: 100%;
}

#cookie-consent-banner.ccb-customizing .ccb-actions button {
  flex: 1 1 calc(50% - 8px);
  width: calc(50% - 8px);
  min-width: 0;
}

#cookie-consent-banner .ccb-categories {
  display: none;
  margin-top: 18px;
  flex-direction: column;
  gap: 16px;
}

#cookie-consent-banner .ccb-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#cookie-consent-banner .ccb-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#cookie-consent-banner .ccb-category label {
  color: #171615;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.45px;
}

#cookie-consent-banner .ccb-category .ccb-category-description {
  display: block;
  color: #767370;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.45px;
}

#cookie-consent-banner .ccb-toggle-wrapper {
  position: relative;
  width: 40px;
  height: 24px;
}

#cookie-consent-banner .ccb-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #a7a3a0;
  outline: none;
  cursor: pointer;
  border: none;
  margin: 0;
}

#cookie-consent-banner .ccb-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

#cookie-consent-banner .ccb-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  pointer-events: none;
  z-index: 1;
}

#cookie-consent-banner .ccb-toggle:checked + .ccb-toggle-slider {
  transform: translateX(16px);
  background: #ffffff;
}
#cookie-consent-banner .ccb-toggle:checked {
  background: #009e65;
}

/* Checked + disabled: dim the entire control */
#cookie-consent-banner .ccb-toggle:disabled:checked {
  opacity: 0.1; /* dim the track only; keep handle visible */
}

@media (max-width: 640px) {
  #cookie-consent-banner .ccb-row {
    flex-direction: column;
  }
  #cookie-consent-banner {
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: unset;
    padding: 24px;
    border-radius: 32px;
  }
  #cookie-consent-banner button {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    box-shadow: inset 0 0 0 1px #171615;
  }

  #cookie-consent-banner.ccb-customizing .ccb-actions button {
    flex: 1 1 100%;
    width: 100%;
  }
}
