.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: block;
  width: min(1184px, calc(100% - 48px));
	max-height: calc(100vh - 48px);
	margin: 0 auto;
	padding: 24px;
	overflow-y: auto;
  color: var(--white);
  background: #0b1110;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-consent.is-entering {
  animation: cookie-consent-in .35s ease-out both;
}

.cookie-consent__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 730px;
}

.cookie-consent__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--green);
  background: rgba(0, 245, 138, .12);
  border-radius: 50%;
}

.cookie-consent__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-consent__copy h2 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.cookie-consent__copy p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.6;
}

.cookie-consent__copy a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__copy a:hover {
  color: #42ffa9;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
	flex-wrap: wrap;
  flex: 0 0 auto;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button:focus-visible {
  outline: 3px solid rgba(0, 245, 138, .48);
  outline-offset: 3px;
}

.cookie-consent__button--primary {
  color: #03130b;
  background: var(--green);
}

.cookie-consent__button--primary:hover {
  background: #24ff9f;
}

.cookie-consent__button--secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, .28);
}

.cookie-consent__button--secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .48);
}

.cookie-consent__preferences[hidden] {
  display: none;
}

.cookie-consent__preferences {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.cookie-consent__preferences-heading h3 {
  margin: 0 0 5px;
  color: var(--white);
  font-size: 17px;
}

.cookie-consent__preferences-heading p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.cookie-consent__categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cookie-consent__category {
  display: flex;
  min-height: 92px;
  padding: 15px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  cursor: pointer;
}

.cookie-consent__category:has(input:disabled) {
  cursor: default;
}

.cookie-consent__category span,
.cookie-consent__category strong,
.cookie-consent__category small {
  display: block;
}

.cookie-consent__category strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 13px;
}

.cookie-consent__category small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent__category input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 20px;
  accent-color: var(--green);
}

.cookie-consent__preferences-actions {
  display: flex;
  margin-top: 16px;
  justify-content: flex-end;
}

@keyframes cookie-consent-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .cookie-consent__summary {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
  }

  .cookie-consent__categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 20px;
  }

  .cookie-consent__icon {
    display: none;
  }

  .cookie-consent__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .cookie-consent__preferences-actions {
    display: block;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent.is-entering {
    animation: none;
  }
}
