.ci-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999998;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  color: #f4f1ea;
  background: rgba(7, 7, 7, 0.88);
  border: 1px solid rgba(244, 241, 234, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ci-consent__text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ci-consent__text strong {
  color: #f4f1ea;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ci-consent__text span {
  color: rgba(244, 241, 234, 0.6);
  font-size: 13px;
  line-height: 1.45;
}

.ci-consent__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ci-consent button {
  min-height: 42px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background: transparent;
  color: rgba(244, 241, 234, 0.8);
  padding: 0 14px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ci-consent button:hover {
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.42);
}

.ci-consent button[data-ci-choice="precise"] {
  border-color: #ef3b2d;
  background: #ef3b2d;
  color: #fff;
}

.ci-cookie-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999997;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.58);
  color: rgba(244, 241, 234, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease;
}

.ci-cookie-toggle:hover {
  transform: translateY(-2px);
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.34);
  background: rgba(7, 7, 7, 0.78);
}

.ci-cookie-toggle svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ci-confetti {
  position: fixed;
  z-index: 999999;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  pointer-events: none;
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(255,255,255,.12);
  animation: ciConfetti 2800ms cubic-bezier(.12, .72, .22, 1) forwards;
}

.ci-toast {
  position: fixed;
  left: 50%;
  top: 22px;
  z-index: 1000000;
  transform: translate(-50%, -18px);
  opacity: 0;
  max-width: min(420px, calc(100vw - 28px));
  padding: 13px 16px;
  color: #f4f1ea;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(244, 241, 234, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  transition: opacity .35s ease, transform .35s ease;
}

.ci-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes ciConfetti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(var(--ci-s));
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--ci-x)), calc(-50% + var(--ci-y))) rotate(var(--ci-r)) scale(calc(var(--ci-s) * .78));
  }
}

@media (max-width: 720px) {
  .ci-consent {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .ci-consent__actions,
  .ci-consent button {
    width: 100%;
  }

  .ci-cookie-toggle {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
}
