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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  width: min(760px, calc(100% - 36px));
  margin-left: auto;
  padding: 19px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #0b152c;
  color: #fff;
  box-shadow: 0 22px 70px rgba(5, 13, 29, .3);
  font-family: Montserrat, Arial, sans-serif;
}

.analytics-consent-copy {
  min-width: 0;
}

.analytics-consent-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.analytics-consent-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  line-height: 1.55;
}

.analytics-consent-copy a {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .4);
}

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

.analytics-consent button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: 700 9px/1 Montserrat, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.analytics-consent button:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .13);
}

.analytics-consent .analytics-consent-accept {
  border-color: #ed1f3a;
  background: #ed1f3a;
}

.analytics-consent .analytics-consent-accept:hover {
  border-color: #ff3f56;
  background: #ff2c46;
}

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

.analytics-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
  cursor: pointer;
}

@media (max-width: 680px) {
  .analytics-consent {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: calc(100% - 16px);
    padding: 15px;
    grid-template-columns: 1fr;
    gap: 13px;
    border-radius: 14px;
  }

  .analytics-consent-copy strong {
    font-size: 12px;
  }

  .analytics-consent-copy p {
    font-size: 9px;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .analytics-consent button {
    width: 100%;
    min-height: 42px;
    padding: 0 9px;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .analytics-consent-actions {
    grid-template-columns: 1fr;
  }
}
