.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

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

.cookie-consent__panel {
  pointer-events: auto;
  width: min(960px, 100%);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(32, 25, 48, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(37, 27, 58, 0.18);
  backdrop-filter: blur(18px);
}

.cookie-consent__text {
  flex: 1;
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #17141f;
}

.cookie-consent__text a {
  color: #6f54f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-consent__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid #6f54f6;
  outline-offset: 2px;
}

.cookie-consent__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #42309b 0%, #7b55ef 52%, #cb6aa8 100%);
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.24);
}

.cookie-consent__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.3);
}

.cookie-consent__btn--ghost {
  color: #605a6b;
  background: transparent;
  border: 1px solid rgba(32, 25, 48, 0.16);
}

.cookie-consent__btn--ghost:hover {
  color: #17141f;
  background: rgba(32, 25, 48, 0.04);
}

@media (prefers-color-scheme: dark) {
  .cookie-consent__panel {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(20, 18, 29, 0.92);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  }

  .cookie-consent__text {
    color: #f7f3ff;
  }

  .cookie-consent__text a {
    color: #b8a6ff;
  }

  .cookie-consent__btn--ghost {
    color: #c8c0d6;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .cookie-consent__btn--ghost:hover {
    color: #f7f3ff;
    background: rgba(255, 255, 255, 0.06);
  }
}

:root[data-theme="dark"] .cookie-consent__panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 18, 29, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .cookie-consent__text {
  color: #f7f3ff;
}

:root[data-theme="dark"] .cookie-consent__text a {
  color: #b8a6ff;
}

:root[data-theme="dark"] .cookie-consent__btn--ghost {
  color: #c8c0d6;
  border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .cookie-consent__btn--ghost:hover {
  color: #f7f3ff;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 760px) {
  .cookie-consent {
    padding: 12px;
  }

  .cookie-consent__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}
