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

.analytics-consent {
  position: fixed;
  z-index: 12000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  background: #ffffff;
  color: #202124;
  border-top: 5px solid #a7226e;
  box-shadow: 0 -10px 34px rgb(32 33 36 / 20%);
  font-family: "Archivo", Arial, sans-serif;
}

.analytics-consent__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.analytics-consent__copy h2 {
  margin: 0 0 8px;
  color: #202124;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.analytics-consent__copy p {
  max-width: 780px;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.analytics-consent__copy a {
  color: #155c60;
  font-weight: 700;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.analytics-consent__button {
  min-height: 48px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 7px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.analytics-consent__button--reject {
  border-color: #155c60;
  background: #ffffff;
  color: #155c60;
}
.analytics-consent__button--allow { background: #a7226e; }
.analytics-consent__button:hover { filter: brightness(0.9); }

.analytics-consent__button:focus-visible,
.analytics-consent__copy a:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid #ffdc7c;
  outline-offset: 3px;
}

.cookie-settings-link {
  appearance: none;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (min-width: 760px) {
  .analytics-consent { padding: 22px 28px; }
  .analytics-consent__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
  }
  .analytics-consent__actions {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    margin-top: 0;
  }
}

@media (max-width: 339px) {
  .analytics-consent__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent__button { transition: none; }
}
