.analytics-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1100;
  max-width: 760px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  color: #f5f3ed;
  background: #17191e;
  border: 1px solid #39414c;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
}

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

.analytics-consent__signal {
  height: 3px;
  background: linear-gradient(90deg, #2b5bd6 0%, #8a3fa0 52%, #d6452b 100%);
}

.analytics-consent__body {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.25rem;
}

.analytics-consent__copy {
  max-width: 520px;
}

.analytics-consent__label {
  margin: 0 0 .4rem;
  color: #aeb8c8;
  font: 500 .68rem/1.4 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.analytics-consent h2 {
  margin: 0 0 .45rem;
  color: #fff;
  font: 600 1.05rem/1.3 "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -.01em;
}

.analytics-consent__copy > p:last-child {
  margin: 0;
  color: #d7dbe2;
  font-size: .88rem;
  line-height: 1.55;
}

.analytics-consent__copy a {
  color: #fff;
  border-bottom: 1px solid #aeb8c8;
}

.analytics-consent__copy a:hover {
  border-color: #fff;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: .55rem;
}

.analytics-consent__button {
  padding: .62rem .85rem;
  color: #f5f3ed;
  font: 500 .72rem/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .04em;
  background: transparent;
  border: 1px solid #aeb8c8;
  border-radius: 3px;
  cursor: pointer;
}

.analytics-consent__button:hover {
  color: #fff;
  border-color: #fff;
}

.analytics-consent__button:focus-visible,
.analytics-preferences:focus-visible {
  outline: 3px solid #5f8cff;
  outline-offset: 3px;
}

.analytics-preferences {
  padding: 0;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.analytics-preferences:hover {
  color: #2b5bd6;
}

@media (max-width: 680px) {
  .analytics-consent__body {
    display: block;
  }

  .analytics-consent__actions {
    margin-top: 1rem;
  }

  .analytics-consent__button {
    flex: 1;
  }
}

@media (max-width: 390px) {
  .analytics-consent__actions {
    flex-direction: column;
  }
}
