.analytics-consent-banner,
.analytics-consent-settings {
  box-sizing: border-box;
  color: #201a19;
  background: #fff;
  border: 1px solid #8c7771;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(32 26 25 / 22%);
  font-family: inherit;
  letter-spacing: 0;
}

.analytics-consent-banner {
  position: fixed;
  z-index: 10000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(430px, calc(100vw - 24px));
  padding: 16px;
}

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

.analytics-consent-banner p,
.analytics-consent-settings p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
}

.analytics-consent-banner strong,
.analytics-consent-settings strong {
  font-weight: 600;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.analytics-consent-actions button,
.analytics-settings-link {
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #9b2d30;
  border-radius: 6px;
  color: #fff;
  background: #9b2d30;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
}

.analytics-consent-actions button.border {
  color: #6b2023;
  background: #fff;
}

.analytics-consent-actions button.transparent,
.analytics-settings-link {
  min-height: 32px;
  padding: 4px 8px;
  border-color: transparent;
  color: #6b2023;
  background: transparent;
  text-decoration: underline;
}

.analytics-consent-actions button:focus-visible,
.analytics-settings-link:focus-visible,
.analytics-legal a:focus-visible {
  outline: 3px solid #d6a100;
  outline-offset: 2px;
}

.analytics-consent-settings {
  width: min(520px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 24px));
  padding: 20px;
}

.analytics-consent-settings::backdrop {
  background: rgb(32 26 25 / 55%);
}

.analytics-consent-settings h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.analytics-consent-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 12px 0;
  border-block: 1px solid #dfd2cf;
  cursor: pointer;
}

.analytics-consent-option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.analytics-consent-option span,
.analytics-consent-option small {
  display: block;
}

.analytics-consent-option small {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.analytics-legal {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 8px 0 2px !important;
}

.analytics-settings-link {
  display: inline;
  width: auto;
}

.analytics-static-page {
  width: min(900px, calc(100% - 24px));
  margin: 110px auto 30px;
  padding: 20px;
}

.analytics-static-page h1 {
  font-size: 2rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.analytics-static-page h2 {
  margin-top: 24px;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.analytics-static-page p,
.analytics-static-page li {
  font-size: 1rem;
  line-height: 1.55;
}

.analytics-static-page li {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .analytics-consent-banner {
    right: 6px;
    bottom: max(6px, env(safe-area-inset-bottom));
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    overflow-y: auto;
    padding: 12px;
  }

  .analytics-consent-actions button {
    flex: 1 1 120px;
  }

  .analytics-consent-settings {
    padding: 16px;
  }

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

  .analytics-static-page {
    margin-top: 90px;
    padding: 14px;
  }

  .analytics-static-page h1 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent-banner,
  .analytics-consent-settings {
    scroll-behavior: auto;
  }
}
