.analytics-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  border-top: 3px solid #c93b44;
  background: #171717;
  color: #fff;
  box-shadow: 0 -16px 40px rgb(0 0 0 / 18%);
}

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

.analytics-consent__inner {
  width: min(100% - 40px, 1160px);
  min-height: 132px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
}

.analytics-consent__content {
  max-width: 760px;
}

.analytics-consent__content h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.analytics-consent__content p {
  margin: 0 0 8px;
  color: #d2d2d2;
  font-size: 14px;
  line-height: 1.65;
}

.analytics-consent__content a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

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

.analytics-consent__button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.analytics-consent__button--primary {
  border-color: #c93b44;
  background: #c93b44;
  color: #fff;
}

.analytics-consent__button--secondary {
  border-color: #626262;
  background: transparent;
  color: #fff;
}

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

.analytics-consent-settings {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.analytics-consent-settings:hover,
.analytics-consent-settings:focus-visible {
  color: #fff;
}

body.analytics-consent-open {
  padding-bottom: var(--analytics-consent-height, 0);
}

@media (max-width: 760px) {
  .analytics-consent__inner {
    width: min(100% - 28px, 1160px);
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .analytics-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .analytics-consent__button {
    width: 100%;
    white-space: normal;
  }

  .analytics-consent__button--primary {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent *,
  .analytics-consent *::before,
  .analytics-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
