.cookie-consent {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: inherit;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent__panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: auto;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(246, 180, 18, 0.45);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(246, 180, 18, 0.18), transparent 36%),
    rgba(3, 3, 3, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 32px rgba(246, 180, 18, 0.16);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.cookie-consent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-consent__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__text a {
  color: #ffd978;
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent__text a:hover {
  color: #fff;
}

.cookie-consent__choices {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cookie-consent.is-customizing .cookie-consent__choices {
  display: grid;
}

.cookie-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(246, 180, 18, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.cookie-choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #f6b412;
}

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

.cookie-choice strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cookie-choice span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.cookie-consent__button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(246, 180, 18, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent__button:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.cookie-consent__button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f0a800, #ffcf3d);
  color: #111;
  box-shadow: 0 14px 28px rgba(246, 180, 18, 0.24);
}

.cookie-consent__button--save {
  display: none;
}

.cookie-consent.is-customizing .cookie-consent__button--save {
  display: inline-flex;
  align-items: center;
}

.cookie-settings-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffdfa0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.cookie-settings-link:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .cookie-consent__panel {
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

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

  .cookie-consent__actions,
  .cookie-consent__button {
    width: 100%;
  }

  .cookie-consent__button {
    justify-content: center;
  }
}
