.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: auto;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--warm-gray-light);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.analytics-consent__copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.analytics-consent__title,
.analytics-consent__description {
  margin: 0;
}

.analytics-consent__title {
  color: var(--black);
}

.analytics-consent__description {
  max-width: 58ch;
  color: var(--black);
  line-height: 1.5;
}

.analytics-consent__privacy {
  width: fit-content;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.analytics-consent__button {
  min-height: 40px;
  margin: 0;
  border: 0;
  cursor: pointer;
}

.analytics-consent__button--primary {
  color: var(--warm-gray-light);
}

.analytics-consent__button--secondary {
  padding: 8px 4px;
  color: var(--black);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent__privacy:focus-visible,
.analytics-consent__button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

@media (min-width: 675px) {
  .analytics-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .analytics-consent__actions {
    justify-content: flex-end;
  }
}
