:root {
  --kcc-consent-bg: #fff;
  --kcc-consent-text: #2a2130;
  --kcc-consent-muted: #6f6374;
  --kcc-consent-border: rgba(66, 42, 73, 0.16);
  --kcc-consent-accent: #684174;
  --kcc-consent-accent-hover: #4f2f59;
  --kcc-consent-soft: #f5f0f7;
}

.kcc-consent[hidden],
.kcc-consent-settings[hidden],
.kcc-consent__close[hidden] {
  display: none !important;
}

.kcc-consent {
  position: fixed;
  z-index: 999999;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(980px, calc(100% - 44px));
  max-height: calc(100vh - 44px);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 38px);
  overflow: auto;
  border: 1px solid var(--kcc-consent-border);
  border-radius: 22px;
  background: var(--kcc-consent-bg);
  box-shadow: 0 24px 74px rgba(24, 13, 29, 0.28);
  color: var(--kcc-consent-text);
  font-family: inherit;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.kcc-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kcc-consent__content {
  min-width: 0;
}

.kcc-consent__eyebrow {
  margin: 0 0 8px;
  color: var(--kcc-consent-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.kcc-consent h2 {
  margin: 0 40px 10px 0;
  color: var(--kcc-consent-text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

.kcc-consent p:not(.kcc-consent__eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--kcc-consent-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.kcc-consent__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.kcc-consent__categories span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--kcc-consent-soft);
  color: var(--kcc-consent-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.kcc-consent__policy {
  display: inline-block;
  margin-top: 14px;
  color: var(--kcc-consent-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.kcc-consent__actions {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 10px;
  width: min(250px, 30vw);
}

.kcc-consent__button,
.kcc-consent-settings,
.kcc-consent__close {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.kcc-consent__button {
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid var(--kcc-consent-accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.kcc-consent__button--accept {
  background: var(--kcc-consent-accent);
  color: #fff;
}

.kcc-consent__button--accept:hover {
  border-color: var(--kcc-consent-accent-hover);
  background: var(--kcc-consent-accent-hover);
}

.kcc-consent__button--reject {
  background: transparent;
  color: var(--kcc-consent-accent);
}

.kcc-consent__button--reject:hover {
  background: var(--kcc-consent-soft);
}

.kcc-consent__button:focus-visible,
.kcc-consent-settings:focus-visible,
.kcc-consent__close:focus-visible,
.kcc-consent__policy:focus-visible {
  outline: 3px solid rgba(104, 65, 116, 0.32);
  outline-offset: 3px;
}

.kcc-consent__close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--kcc-consent-soft);
  color: var(--kcc-consent-text);
  font-size: 1.5rem;
  line-height: 1;
}

.kcc-consent-settings {
  position: fixed;
  z-index: 999998;
  bottom: 16px;
  left: 16px;
  padding: 10px 14px;
  border: 1px solid var(--kcc-consent-border);
  border-radius: 999px;
  background: var(--kcc-consent-bg);
  box-shadow: 0 8px 28px rgba(24, 13, 29, 0.16);
  color: var(--kcc-consent-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.kcc-consent-settings:hover {
  background: var(--kcc-consent-soft);
}

@media (max-width: 720px) {
  .kcc-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 22px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 24px 20px;
    border-radius: 18px;
  }

  .kcc-consent__actions {
    width: 100%;
  }

  .kcc-consent__button {
    width: 100%;
  }

  .kcc-consent-settings {
    bottom: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kcc-consent,
  .kcc-consent__button {
    transition: none;
  }
}

