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

.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 20px;
  color: #fdfbf7;
  background: #173f3a;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgb(16 37 34 / 28%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.analytics-consent__copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.analytics-consent__copy p {
  margin: 0;
  color: rgb(253 251 247 / 78%);
  font-size: 13px;
  line-height: 1.5;
}

.analytics-consent__copy a {
  color: #fdfbf7;
}

.analytics-consent__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.analytics-consent__button,
.analytics-settings-button {
  font: inherit;
}

.analytics-consent__button {
  min-height: 40px;
  padding: 9px 14px;
  color: #fff;
  background: #d94f3d;
  border: 1px solid #d94f3d;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

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

.analytics-consent__button--quiet {
  color: #fdfbf7;
  background: transparent;
  border-color: rgb(253 251 247 / 36%);
}

.analytics-consent__button--quiet:hover {
  background: rgb(253 251 247 / 9%);
  border-color: rgb(253 251 247 / 60%);
}

.analytics-settings-button {
  display: inline;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.analytics-settings-button:hover {
  opacity: 0.8;
}

.footer__links .analytics-settings-button {
  display: block;
  width: max-content;
  margin: 11px 0;
  color: rgb(255 255 255 / 72%);
  font-size: 14px;
  text-decoration: none;
}

.footer__links .analytics-settings-button:hover {
  color: #fff;
  opacity: 1;
}

.analytics-consent__button:focus-visible,
.analytics-settings-button:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

@media (max-width: 660px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    width: calc(100% - 24px);
    padding: 16px;
  }

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

@media (max-width: 380px) {
  .analytics-consent__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
