.analytics-consent {
  position: fixed;
  z-index: 1000;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  width: min(430px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(215, 173, 74, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 173, 74, 0.1), transparent 42%),
    rgba(12, 12, 12, 0.97);
  color: #f5f5f2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(18px);
}

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

.analytics-consent.visible {
  opacity: 1;
  transform: translateY(0);
}

.analytics-consent p {
  margin: 0 0 20px;
  color: #c7c7c3;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.analytics-consent p::before {
  content: "Analytics";
  display: block;
  margin-bottom: 8px;
  color: #d7ad4a;
  font: 700 10px ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.analytics-consent a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #d7ad4a;
  text-underline-offset: 4px;
}

.analytics-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-consent button,
.legal-cookie-settings {
  appearance: none;
  cursor: pointer;
}

.analytics-consent button {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.analytics-consent-accept {
  border: 1px solid #f5f5f2;
  background: #f5f5f2;
  color: #080808;
}

.analytics-consent-decline {
  border: 1px solid transparent;
  background: transparent;
  color: #aaa;
}

.analytics-consent-accept:hover {
  background: #d7ad4a;
  border-color: #d7ad4a;
}

.analytics-consent-decline:hover {
  color: #fff;
}

.analytics-consent button:focus-visible,
.legal-cookie-settings:focus-visible {
  outline: 2px solid #d7ad4a;
  outline-offset: 3px;
}

.legal-cookie-settings {
  color: inherit;
}

@media (max-width: 520px) {
  .analytics-consent {
    right: 16px;
    left: 16px;
    width: auto;
    padding: 20px;
    border-radius: 17px;
  }

  .analytics-consent p {
    font-size: 15px;
  }

  .analytics-consent-actions button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    transition: none;
  }
}
.footer-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.footer-cookie-settings:hover { color: #fff; }
.footer-cookie-settings:focus-visible { outline: 2px solid #d6ad46; outline-offset: 5px; }
