:root {
  --kz-consent-ink: #2c241f;
  --kz-consent-muted: #78695e;
  --kz-consent-paper: #fffaf1;
  --kz-consent-coral: #ef7543;
  --kz-consent-coral-dark: #ce542d;
  --kz-consent-line: rgba(76, 55, 41, 0.16);
}

html.kz-consent-pending,
html.kz-consent-pending body {
  overflow: hidden !important;
}

html.kz-consent-pending body > :not(.kz-consent-gate) {
  pointer-events: none !important;
  user-select: none !important;
}

.kz-consent-gate {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 48px);
  overflow: auto;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 188, 92, 0.14), transparent 34rem),
    rgba(17, 13, 11, 0.76);
  backdrop-filter: blur(14px) saturate(0.68) brightness(0.7);
  -webkit-backdrop-filter: blur(14px) saturate(0.68) brightness(0.7);
  opacity: 1;
  animation: kz-consent-scene-light 1.35s 1.7s cubic-bezier(0.2, 0.78, 0.2, 1) both;
  transition:
    opacity 560ms ease,
    backdrop-filter 680ms ease,
    -webkit-backdrop-filter 680ms ease;
}

.kz-consent-gate.is-leaving {
  opacity: 0;
  backdrop-filter: blur(0) saturate(1);
  -webkit-backdrop-filter: blur(0) saturate(1);
  pointer-events: none;
}

.kz-consent-gate__stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1fr);
  align-items: center;
  width: min(100%, 980px);
  min-height: min(680px, calc(100svh - 36px));
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: clamp(28px, 4vw, 48px);
  background: rgba(255, 250, 241, 0);
  box-shadow: 0 38px 110px rgba(23, 16, 12, 0);
  transform: translateY(0) scale(1);
  animation: kz-consent-stage-arrival 1.15s 1.8s cubic-bezier(0.18, 0.76, 0.2, 1) both;
  transition: transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kz-consent-gate.is-leaving .kz-consent-gate__stage {
  transform: translateY(-18px) scale(0.985);
}

.kz-consent-gate__stage::before,
.kz-consent-gate__stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.kz-consent-gate__stage::before {
  top: -28%;
  right: -15%;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 113, 55, 0.18);
  box-shadow:
    0 0 0 42px rgba(201, 113, 55, 0.05),
    0 0 0 96px rgba(201, 113, 55, 0.025);
}

.kz-consent-gate__stage::after {
  right: 8%;
  bottom: -28%;
  width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(239, 117, 67, 0.14), transparent 68%);
}

.kz-consent-gate__visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 20px 8px 20px 28px;
  perspective: 1200px;
}

.kz-consent-gate__logo {
  position: relative;
  display: block;
  width: min(100%, 330px);
  height: auto;
  filter:
    blur(0)
    drop-shadow(0 22px 20px rgba(48, 30, 18, 0.2));
  transform-origin: 50% 84%;
  animation:
    kz-consent-camera-flight 2.55s cubic-bezier(0.16, 0.7, 0.18, 1) both,
    kz-consent-float 7.6s 2.55s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

.kz-consent-gate__glow {
  position: absolute;
  top: 13%;
  left: 58%;
  width: 32%;
  aspect-ratio: 0.88;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 28%,
    rgba(255, 250, 190, 0.92),
    rgba(255, 145, 48, 0.38) 43%,
    transparent 72%
  );
  filter: blur(12px);
  opacity: 0;
  animation:
    kz-consent-glow-arrival 1.1s 1.45s ease-out both,
    kz-consent-balloon 5.4s 2.55s ease-in-out infinite;
  pointer-events: none;
}

.kz-consent-gate__content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(76px, 0, 0);
  filter: blur(14px);
  animation: kz-consent-panel-arrival 920ms 2.38s cubic-bezier(0.17, 0.78, 0.2, 1) both;
}

.kz-consent-gate.is-ready .kz-consent-gate__content {
  pointer-events: auto;
}

.kz-consent-gate__eyebrow {
  margin: 0 0 15px;
  color: var(--kz-consent-coral-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kz-consent-gate__title {
  max-width: 14ch;
  margin: 0;
  color: var(--kz-consent-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.7vw, 4.45rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.kz-consent-gate__copy {
  max-width: 38rem;
  margin: 24px 0 0;
  color: var(--kz-consent-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
}

.kz-consent-gate__actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.kz-consent-gate__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.kz-consent-gate__button:hover,
.kz-consent-gate__button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.kz-consent-gate__button--accept {
  background: linear-gradient(135deg, var(--kz-consent-coral), #f39255);
  box-shadow: 0 13px 28px rgba(210, 84, 45, 0.24);
  color: #ffffff;
}

.kz-consent-gate__button--essential {
  border-color: rgba(70, 51, 39, 0.22);
  background: rgba(255, 253, 248, 0.72);
  color: var(--kz-consent-ink);
}

.kz-consent-gate__button--essential:hover,
.kz-consent-gate__button--essential:focus-visible {
  border-color: rgba(70, 51, 39, 0.42);
  background: #ffffff;
}

.kz-consent-gate__policy {
  display: inline-flex;
  margin-top: 17px;
  color: #5f5147;
  font-size: 0.82rem;
  text-underline-offset: 4px;
}

.kz-cookie-settings {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 4px;
}

.kz-cookie-settings:hover,
.kz-cookie-settings:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration-color: currentColor;
}

@keyframes kz-consent-float {
  0%,
  100% {
    transform: translate3d(0, 5px, 0) rotate(-0.7deg);
  }
  42% {
    transform: translate3d(3px, -12px, 0) rotate(1deg);
  }
  72% {
    transform: translate3d(-2px, -4px, 0) rotate(-0.2deg);
  }
}

@keyframes kz-consent-balloon {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(-2px, 4px, 0) scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(4px, -7px, 0) scale(1.08);
  }
}

@keyframes kz-consent-camera-flight {
  0% {
    opacity: 0;
    filter:
      blur(34px)
      brightness(0.64)
      drop-shadow(0 80px 70px rgba(14, 8, 5, 0.38));
    transform: translate3d(-66vw, 28vh, 480px) scale(4.8) rotate(-12deg);
  }
  18% {
    opacity: 0.76;
  }
  48% {
    opacity: 1;
    filter:
      blur(12px)
      brightness(0.84)
      drop-shadow(0 52px 42px rgba(28, 16, 9, 0.3));
    transform: translate3d(18vw, -12vh, 210px) scale(2.45) rotate(5deg);
  }
  76% {
    filter:
      blur(1.8px)
      brightness(1)
      drop-shadow(0 25px 22px rgba(48, 30, 18, 0.22));
    transform: translate3d(-18px, 10px, 0) scale(0.92) rotate(-1.2deg);
  }
  100% {
    opacity: 1;
    filter:
      blur(0)
      brightness(1)
      drop-shadow(0 22px 20px rgba(48, 30, 18, 0.2));
    transform: translate3d(0, 5px, 0) scale(1) rotate(-0.7deg);
  }
}

@keyframes kz-consent-glow-arrival {
  from {
    opacity: 0;
    transform: scale(0.62);
  }
  to {
    opacity: 0.62;
    transform: scale(1);
  }
}

@keyframes kz-consent-panel-arrival {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(76px, 0, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kz-consent-stage-arrival {
  from {
    border-color: transparent;
    background: rgba(255, 250, 241, 0);
    box-shadow: 0 38px 110px rgba(23, 16, 12, 0);
    transform: scale(1.045);
  }
  to {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 250, 241, 0.97);
    box-shadow:
      0 38px 110px rgba(23, 16, 12, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: scale(1);
  }
}

@keyframes kz-consent-scene-light {
  from {
    background-color: rgba(17, 13, 11, 0.76);
    backdrop-filter: blur(14px) saturate(0.68) brightness(0.7);
    -webkit-backdrop-filter: blur(14px) saturate(0.68) brightness(0.7);
  }
  to {
    background-color: rgba(34, 27, 22, 0.44);
    backdrop-filter: blur(7px) saturate(0.84) brightness(1);
    -webkit-backdrop-filter: blur(7px) saturate(0.84) brightness(1);
  }
}

@media (max-width: 760px) {
  .kz-consent-gate {
    align-items: end;
    padding: 10px;
  }

  .kz-consent-gate__stage {
    grid-template-columns: 1fr;
    min-height: min(780px, calc(100svh - 20px));
    border-radius: 28px;
  }

  .kz-consent-gate__visual {
    min-height: 270px;
    padding: 10px 20px 0;
  }

  .kz-consent-gate__logo {
    width: min(55vw, 230px);
  }

  .kz-consent-gate__content {
    padding: 24px;
  }

  .kz-consent-gate__title {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .kz-consent-gate__copy {
    margin-top: 16px;
    line-height: 1.5;
  }

  .kz-consent-gate__actions {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kz-consent-gate,
  .kz-consent-gate__stage,
  .kz-consent-gate__logo,
  .kz-consent-gate__glow,
  .kz-consent-gate__button {
    animation: none !important;
    scroll-behavior: auto;
    transition-duration: 1ms !important;
  }

  .kz-consent-gate__content {
    opacity: 1;
    pointer-events: auto;
    filter: none;
    transform: none;
  }
}
