/* Consent banner for Google Analytics (assets/hello/consent.js), shared by the homepage and partner pages.
   A discreet bar along the bottom edge, as on the satellite sites. */
.mi-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

.mi-consent.is-visible {
  transform: translateY(0);
}

.mi-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.mi-consent-text {
  flex: 1;
  margin: 0;
}

.mi-consent-text a {
  margin-inline-start: 4px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.mi-consent-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.mi-consent-button {
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mi-consent-accept {
  background: #019b5f;
  color: #fff;
}

.mi-consent-accept:hover {
  background: #017a4b;
}

.mi-consent-decline {
  border-color: rgba(15, 23, 42, 0.18);
  background: transparent;
  color: #475569;
}

.mi-consent-decline:hover {
  background: rgba(15, 23, 42, 0.05);
}

.mi-consent-button:focus-visible {
  outline: 2px solid #019b5f;
  outline-offset: 2px;
}

[data-theme='dark'] .mi-consent {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.97);
  color: #cbd5e1;
}

[data-theme='dark'] .mi-consent-decline {
  border-color: rgba(255, 255, 255, 0.24);
  color: #cbd5e1;
}

[data-theme='dark'] .mi-consent-decline:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .mi-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
  }

  .mi-consent-buttons {
    justify-content: center;
  }
}

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