.mesh-analytics-consent {
  position: fixed;
  z-index: 1200;
  right: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 30px);
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: clamp(20px, 3vw, 28px);
  color: #f4f7f7;
  background: #0b2235;
  border: 1px solid rgba(216, 199, 163, 0.34);
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(3, 18, 29, 0.36);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

.mesh-analytics-consent__kicker {
  margin: 0 0 10px;
  color: #d8c7a3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mesh-analytics-consent h2 {
  margin: 0 0 10px;
  color: #f4f7f7;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 500;
  line-height: 1.02;
}

.mesh-analytics-consent p {
  margin: 0;
  color: rgba(244, 247, 247, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.mesh-analytics-consent a {
  color: #75d4df;
  text-decoration: underline;
  text-decoration-color: rgba(117, 212, 223, 0.48);
  text-underline-offset: 3px;
}

.mesh-analytics-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.mesh-analytics-consent__button {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mesh-analytics-consent__button--allow {
  color: #071a28;
  background: #4bc6d4;
  border-color: #4bc6d4;
}

.mesh-analytics-consent__button--necessary {
  color: #f4f7f7;
  background: transparent;
  border-color: rgba(244, 247, 247, 0.48);
}

.mesh-analytics-consent__button:hover {
  filter: brightness(1.08);
}

.mesh-analytics-consent__button:focus-visible,
.analytics-settings-link:focus-visible {
  outline: 3px solid #75d4df;
  outline-offset: 3px;
}

.mesh-analytics-consent__button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #f4f7f7;
}

.mesh-analytics-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgba(244, 247, 247, 0.74);
  background: transparent;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}

.analytics-settings-link {
  min-height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.analytics-settings-link:hover {
  color: #75d4df;
}

@media (max-width: 560px) {
  .mesh-analytics-consent {
    right: auto;
    left: 14px;
  }

  .mesh-analytics-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mesh-analytics-consent:not([hidden]) {
    animation: mesh-consent-in 180ms ease-out;
  }

  @keyframes mesh-consent-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
