.analyticsConsentPanel {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 920px;
  max-height: calc(100vh - 24px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 22px;
  color: #ffffff;
  background: #143c2d;
  border: 2px solid #e7d8ad;
  box-shadow: 0 18px 60px rgb(8 31 22 / 34%);
  font-family: "PingFang HK", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}

.analyticsConsentContent strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.25rem;
}

.analyticsConsentContent p {
  margin: 0;
  color: rgb(255 255 255 / 86%);
  font-size: 1.125rem;
  line-height: 1.7;
}

.analyticsConsentContent a {
  display: inline-block;
  margin-top: 10px;
  color: #e7d8ad;
  font-size: 1.125rem;
  text-underline-offset: 4px;
}

.analyticsConsentActions {
  display: grid;
  gap: 10px;
  min-width: 150px;
}

.analyticsConsentActions button,
.analyticsSettingsButton {
  min-height: 50px;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
}

.analyticsConsentAccept {
  color: #143c2d;
  background: #e7d8ad;
  border: 2px solid #da8134;
}

.analyticsConsentDecline {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 58%);
}

.analyticsSettingsButton {
  display: block;
  position: static;
  width: fit-content;
  margin: 24px 18px 28px auto;
  color: #ffffff;
  background: #143c2d;
  border: 1px solid #e7d8ad;
  box-shadow: 0 8px 24px rgb(8 31 22 / 20%);
}

.analyticsConsentPanel button:focus-visible,
.analyticsConsentPanel a:focus-visible,
.analyticsSettingsButton:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #143c2d;
}

@media (max-width: 680px) {
  .analyticsSettingsButton {
    font-size: 1rem;
    margin: 18px 14px 26px auto;
    min-height: 48px;
  }

  .analyticsConsentPanel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .analyticsConsentActions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .analyticsConsentPanel {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .analyticsConsentActions {
    grid-template-columns: 1fr;
  }
}
