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

.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  width: min(58rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem;
  border: 1px solid rgba(61, 255, 224, 0.34);
  border-radius: 1rem;
  background: rgba(11, 16, 20, 0.98);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.55);
  color: #e8f4f8;
  font-family: Arial, sans-serif;
}

.analytics-consent__copy {
  min-width: 0;
}

.analytics-consent__eyebrow {
  margin: 0 0 0.35rem;
  color: #3dffe0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.analytics-consent h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.analytics-consent__copy > p:not(.analytics-consent__eyebrow) {
  max-width: 44rem;
  margin: 0.45rem 0;
  color: rgba(232, 244, 248, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

.analytics-consent a {
  color: #3dffe0;
  font-size: 0.78rem;
  text-underline-offset: 0.2em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  width: min-content;
  min-width: 12.5rem;
}

.analytics-consent__button,
.analytics-consent-reopen {
  border: 1px solid rgba(232, 244, 248, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #e8f4f8;
  cursor: pointer;
  font: 700 0.75rem/1 Arial, sans-serif;
}

.analytics-consent__button {
  width: 100%;
  padding: 0.8rem 1rem;
}

.analytics-consent__button--accept {
  border-color: #3dffe0;
  background: #3dffe0;
  color: #0b1014;
}

.analytics-consent__button:hover,
.analytics-consent__button:focus-visible,
.analytics-consent-reopen:hover,
.analytics-consent-reopen:focus-visible {
  border-color: #3dffe0;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(61, 255, 224, 0.2);
}

.analytics-consent-reopen {
  position: fixed;
  z-index: 9999;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  padding: 0.65rem 0.9rem;
  border-color: rgba(61, 255, 224, 0.42);
  background: rgba(11, 16, 20, 0.92);
  color: #3dffe0;
}

@media (max-width: 680px) {
  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
  }

  .analytics-consent__actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .analytics-consent:not([hidden]) {
    animation: analytics-consent-enter 180ms ease-out;
  }

  @keyframes analytics-consent-enter {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
  }
}
