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

.analytics-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 1200;
  padding: 16px;
  color: #183153;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #cbd9e6;
  box-shadow: 0 -12px 32px rgba(24, 49, 83, 0.16);
}

.analytics-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.analytics-consent strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.analytics-consent p {
  max-width: 720px;
  margin: 0 0 4px;
  color: #55657a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.analytics-consent a,
.analytics-preferences {
  color: #183153;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 10px 16px;
  color: #183153;
  background: #ffffff;
  border: 1px solid #aebfd0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.analytics-consent__actions .analytics-consent__accept {
  color: #ffffff;
  background: #183153;
  border-color: #183153;
}

.analytics-consent__actions button:focus-visible,
.analytics-preferences:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.analytics-preferences {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 900;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd9e6;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(24, 49, 83, 0.14);
  cursor: pointer;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .analytics-consent__content,
  .analytics-consent__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-consent__content {
    gap: 14px;
  }

  .analytics-consent__actions {
    gap: 8px;
  }

  .analytics-consent__actions button {
    width: 100%;
  }

  .analytics-preferences {
    right: 10px;
    bottom: 76px;
  }
}
