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

.analytics-consent {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 1000;
  box-sizing: border-box;
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.3rem;
  color: #172a32;
  background: #fffefb;
  border: 1px solid #aebbc0;
  border-radius: 0.6rem;
  box-shadow: 0 0.45rem 2rem rgb(14 35 43 / 18%);
  font: 1rem/1.5 system-ui, sans-serif;
  text-align: left;
}

.analytics-consent__title {
  margin: 0 0 0.55rem;
  color: inherit;
  font: 600 1.1rem/1.35 system-ui, sans-serif;
}

.analytics-consent__description {
  margin: 0 0 0.65rem;
  color: inherit;
  font-size: 0.94rem;
}

.analytics-consent__status {
  margin: 0 0 1rem;
  color: #3c515a;
  font-size: 0.85rem;
}

.analytics-consent__status:empty {
  display: none;
}

.analytics-consent__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.analytics-consent__button,
.analytics-consent__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid #48636d;
  border-radius: 0.3rem;
  background: #fffefb;
  color: #183a48;
  font: 600 0.91rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.analytics-consent__button {
  flex: 1 1 11rem;
}

.analytics-consent__button:hover,
.analytics-consent__close:hover {
  color: #102d37;
  background: #eef3f3;
}

.analytics-consent button:focus-visible,
[data-analytics-settings]:focus-visible {
  outline: 3px solid #1d6b83;
  outline-offset: 3px;
}

button[data-analytics-settings] {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

@media (max-width: 420px) {
  .analytics-consent {
    inset: auto 0.65rem 0.65rem;
    width: auto;
    padding: 1rem;
  }
}
