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

.analytics-consent {
  position: fixed;
  z-index: 90;
  inset: auto clamp(16px, 2vw, 36px) max(16px, env(safe-area-inset-bottom));
  padding: 22px clamp(20px, 3vw, 38px);
  max-height: 72dvh;
  overflow: auto;
  border-radius: 14px;
  color: #faf7f0;
  background: #354832;
  box-shadow: 0 8px 36px #101b1070;
  font: 400 15px/1.55 Onest, sans-serif;
}

.analytics-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px 36px;
}

.analytics-consent h2 {
  margin: 0 0 5px;
  color: inherit;
  font: 700 22px/1.2 Onest, sans-serif;
}

.analytics-consent p {
  margin: 0;
  max-width: 67ch;
  color: inherit;
}

.analytics-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.analytics-consent__actions button {
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid #f6eedc;
  border-radius: 2px;
  background: #f6eedc;
  color: #2a3c2c;
  font: 650 14px/1.3 Onest, sans-serif;
  cursor: pointer;
}

.analytics-consent__actions .analytics-consent__decline {
  background: transparent;
  color: #faf7f0;
}

.analytics-consent__actions button:hover {
  background: #fffaf0;
  color: #2a3c2c;
}

.analytics-consent :focus-visible {
  outline: 2px solid #f6eedc;
  outline-offset: 3px;
}

.studio-footer .analytics-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.studio-footer .analytics-settings:hover {
  color: #e5b48e;
}

@media (min-width: 851px) {
  .analytics-consent {
    font-size: clamp(16px, 1vw, 23px);
    line-height: 1.45;
  }

  .analytics-consent__inner > :first-child {
    flex: 1;
    min-width: 0;
  }

  .analytics-consent h2 {
    font-size: clamp(22px, 1.25vw, 30px);
  }

  .analytics-consent p {
    max-width: none;
  }

  .analytics-consent__actions button {
    min-height: clamp(46px, 3vw, 56px);
    padding-inline: clamp(16px, 1.25vw, 28px);
    font-size: clamp(14px, 0.82vw, 19px);
  }
}

@media (max-width: 850px) {
  .analytics-consent__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .analytics-consent {
    inset-inline: 12px;
    inset-block-end: max(12px, env(safe-area-inset-bottom));
    padding: 18px 16px;
    font-size: 14px;
  }

  .analytics-consent h2 {
    font-size: 20px;
  }

  .analytics-consent__actions {
    width: 100%;
  }

  .analytics-consent__actions button {
    flex: 1;
    padding-inline: 8px;
  }
}
