/* Metaneering cookie notice — Chesham / Van Dyck / Ecru (see cookie-banner-2.html) */
:root {
  --mn-chesham: #175579;
  --mn-chesham-d: #0e3d57;
  --mn-chesham-l: #1e6d9a;
  --mn-vandyck: #664228;
  --mn-vandyck-l: #7d5233;
  --mn-ecru: #f5f0e8;
  --mn-ecru-mute: #c8bfb0;
  --mn-ecru-dim: #9e937f;
  --mn-bg: #0d2a3a;
  --mn-surface: #112e40;
  --mn-border: rgba(23, 85, 121, 0.45);
  --mn-border-h: rgba(23, 85, 121, 0.75);
  --mn-radius: 12px;
  --mn-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  --mn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Consent CTA: light pink accept / muted dark decline */
  --mn-consent-pink: #fce7f3;
  --mn-consent-pink-hover: #fbcfe8;
  --mn-consent-pink-text: #4a044e;
  --mn-consent-decline-bg: #1a2330;
  --mn-consent-decline-text: #64748b;
  --mn-consent-decline-border: #334155;
  --mn-consent-decline-hover-bg: #243044;
}

#mn-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Must stay above #mn-overlay (500010) or fullscreen dim blocks all banner clicks */
  z-index: 600020;
  background: var(--mn-bg);
  border-top: 2px solid var(--mn-chesham-l);
  box-shadow: var(--mn-shadow);
  font-family: var(--mn-font);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

#mn-banner.mn-gone {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.mn-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.mn-icon {
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 3px;
  user-select: none;
}

.mn-body {
  flex: 1;
  min-width: 240px;
}

.mn-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--mn-ecru);
  letter-spacing: 0.01em;
}

.mn-text {
  font-size: 12.5px;
  color: var(--mn-ecru-mute);
  margin: 0;
  line-height: 1.58;
}

.mn-text a {
  color: #5bb3d9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mn-text a:hover {
  color: var(--mn-ecru);
}

.mn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.mn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 85, 121, 0.2);
  border: 1px solid var(--mn-border);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11.5px;
  color: var(--mn-ecru-mute);
}

.mn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6bc98b;
  flex-shrink: 0;
}

.mn-chip code {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  color: #78c8e8;
}

.mn-chip em {
  font-style: italic;
  font-size: 10.5px;
  color: var(--mn-ecru-dim);
}

.mn-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  justify-content: center;
}

.mn-actions--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  width: 100%;
  max-width: 520px;
}

.mn-actions__right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mn-btn-decline {
  background: transparent;
  color: var(--mn-ecru-mute);
  border: 1px solid rgba(200, 191, 176, 0.45);
  font-size: 12.5px;
}

.mn-btn-decline:hover {
  background: rgba(23, 85, 121, 0.2);
  color: var(--mn-ecru);
  border-color: var(--mn-border-h);
}

/* Equal prominence — Accept vs Decline (no “primary only” for accept) */
.mn-consent-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: stretch;
  flex: 1 1 220px;
  max-width: 100%;
}

.mn-actions--consent {
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.mn-actions--consent .mn-btn-info {
  flex: 0 0 auto;
}

.mn-btn.mn-btn-consent {
  min-height: 44px;
  min-width: 0;
  flex: 1 1 0;
  font-size: 13px;
  font-weight: 600;
}

.mn-btn-consent-accept {
  background: var(--mn-consent-pink);
  color: var(--mn-consent-pink-text);
  border: 2px solid rgba(244, 114, 182, 0.45);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.mn-btn-consent-accept:hover {
  background: var(--mn-consent-pink-hover);
  border-color: rgba(219, 39, 119, 0.5);
  color: var(--mn-consent-pink-text);
}

.mn-btn-consent-decline {
  background: var(--mn-consent-decline-bg);
  color: var(--mn-consent-decline-text);
  border: 2px solid var(--mn-consent-decline-border);
  box-shadow: none;
}

.mn-btn-consent-decline:hover {
  background: var(--mn-consent-decline-hover-bg);
  border-color: #475569;
  color: #94a3b8;
}

.mn-box-feet--eq {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: stretch;
  align-items: stretch;
  margin-top: 8px;
}

.mn-box-feet--eq .mn-btn-consent {
  flex: 1 1 calc(50% - 6px);
  min-width: 140px;
}

.mn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mn-font);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 22px;
  min-width: 158px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.mn-btn:active {
  transform: scale(0.97);
}

.mn-btn-ok {
  background: var(--mn-vandyck);
  color: var(--mn-ecru);
}

.mn-btn-ok:hover {
  background: var(--mn-vandyck-l);
}

.mn-btn-info {
  background: transparent;
  color: var(--mn-ecru-mute);
  border: 1px solid var(--mn-border-h);
  font-size: 12px;
  padding: 7px 18px;
  min-width: 158px;
}

.mn-btn-info:hover {
  background: rgba(23, 85, 121, 0.25);
  color: var(--mn-ecru);
}

#mn-overlay {
  position: fixed;
  inset: 0;
  z-index: 500010;
  background: rgba(5, 18, 26, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s;
}

#mn-overlay.mn-gone {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
}

.mn-box {
  background: var(--mn-surface);
  border: 1px solid var(--mn-chesham-l);
  border-top: 3px solid var(--mn-vandyck);
  border-radius: var(--mn-radius);
  box-shadow: var(--mn-shadow);
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 32px;
  font-family: var(--mn-font);
}

.mn-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mn-box-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--mn-ecru);
  margin: 0;
}

.mn-x {
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-size: 22px;
  color: var(--mn-ecru-dim);
  transition: color 0.2s;
}

.mn-x:hover {
  color: var(--mn-ecru);
}

.mn-note {
  background: rgba(23, 85, 121, 0.18);
  border: 1px solid rgba(23, 85, 121, 0.5);
  border-left: 3px solid var(--mn-chesham-l);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #7ec5e8;
  line-height: 1.58;
  margin-bottom: 18px;
}

.mn-note strong {
  color: #a8d8ee;
}

.mn-p {
  font-size: 12.5px;
  color: var(--mn-ecru-mute);
  line-height: 1.6;
  margin: 0 0 14px;
}

.mn-p a {
  color: #5bb3d9;
}

.mn-p strong {
  color: var(--mn-ecru);
}

.mn-p--small {
  font-size: 11.5px;
  color: var(--mn-ecru-dim);
  margin-bottom: 20px;
}

.mn-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 18px;
}

.mn-tbl th {
  background: rgba(23, 85, 121, 0.2);
  color: var(--mn-ecru-dim);
  font-weight: 600;
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--mn-border);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mn-tbl td {
  color: var(--mn-ecru-mute);
  padding: 9px 10px;
  border-bottom: 1px solid rgba(23, 85, 121, 0.15);
  vertical-align: top;
  line-height: 1.45;
}

.mn-tbl tr:last-child td {
  border-bottom: none;
}

.mn-tbl code {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  color: #78c8e8;
  font-size: 11.5px;
}

.mn-badge {
  display: inline-block;
  background: rgba(102, 66, 40, 0.2);
  border: 1px solid rgba(102, 66, 40, 0.5);
  color: #c4916a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mn-box-feet {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mn-box-feet--split {
  justify-content: space-between;
}

.mn-chip--optional {
  border-style: dashed;
}

.mn-dot--amber {
  background: #d4a574;
}

.mn-badge--warn {
  background: rgba(212, 165, 116, 0.25);
  color: #f0d4b8;
  border: 1px solid rgba(212, 165, 116, 0.45);
}

#mn-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  /* Above overlay (500010) when banner is dismissed */
  z-index: 600015;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mn-chesham);
  border: 2px solid var(--mn-chesham-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  user-select: none;
  transition: opacity 0.3s, transform 0.2s, background 0.2s, border-color 0.2s;
}

#mn-float.mn-show {
  opacity: 1;
  pointer-events: all;
}

#mn-float:hover {
  transform: scale(1.1);
  background: var(--mn-vandyck);
  border-color: var(--mn-vandyck-l);
}

@media (max-width: 600px) {
  .mn-inner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }

  .mn-actions--split,
  .mn-actions--consent {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  .mn-consent-pair {
    flex-direction: column;
    width: 100%;
  }

  .mn-actions {
    flex-direction: row;
    width: 100%;
  }

  .mn-btn {
    flex: 1;
    min-width: 0;
  }

  .mn-box {
    padding: 20px 16px;
  }

  .mn-box-feet {
    flex-direction: column;
  }

  .mn-box-feet .mn-btn {
    width: 100%;
  }
}
