.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: min(31rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055)),
    rgba(8,9,18,.94);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
  backdrop-filter: blur(22px);
  padding: 1rem;
}

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

.cookie-consent h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.03em;
}

.cookie-consent p {
  margin: .65rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .92rem;
}

.cookie-consent a {
  color: var(--text);
  font-weight: 800;
}

.cookie-option {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: .9rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,.055);
  cursor: pointer;
}

.cookie-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .15rem;
  accent-color: var(--cyan, var(--blue));
}

.cookie-option strong {
  display: block;
  font-size: .92rem;
}

.cookie-option span {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.cookie-actions button,
.cookie-settings-button {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  padding: 0 .9rem;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cookie-actions button:hover,
.cookie-settings-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong, var(--line));
}

.cookie-actions .cookie-accept {
  color: #05060a;
  border-color: transparent;
  background: linear-gradient(135deg, #ffffff, #c4b5fd 55%, #67e8f9);
}

.cookie-settings-button {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: rgba(8,9,18,.78);
  backdrop-filter: blur(8px);
}

.cookie-settings-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

body.theme-light .cookie-consent {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)),
    rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(15,23,42,.16);
}

body.theme-light .cookie-option,
body.theme-light .cookie-actions button,
body.theme-light .cookie-settings-button {
  background: rgba(255,255,255,.84);
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-actions button {
    width: 100%;
  }
}
