#mc-buy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(2, 6, 23, .84);
  backdrop-filter: blur(10px);
  isolation: isolate;
}

#mc-buy-modal.open { display: flex; }

#mc-buy-modal .mc-buy-dialog {
  width: 70vw;
  height: 80vh;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(16, 185, 129, .08);
  display: flex;
  flex-direction: column;
}

#mc-buy-modal .mc-buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #111827, #0b1220);
  flex-shrink: 0;
}

#mc-buy-modal .mc-buy-head-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#mc-buy-modal .mc-buy-head span#mc-buy-modal-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: none;
  color: #f8fafc;
}

#mc-buy-modal .mc-buy-head-sub {
  font-size: .72rem;
  color: #6ee7b7;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#mc-buy-modal .mc-buy-head-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  margin-left: 12px;
}

#mc-buy-modal .mc-buy-head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  font-size: .62rem;
  font-weight: 800;
  color: #1e293b;
}

#mc-buy-modal .mc-buy-head-badge--visa { color: #1a1f71; }
#mc-buy-modal .mc-buy-head-badge--mc { color: #eb001b; }

#mc-buy-modal .mc-buy-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.2rem;
  flex-shrink: 0;
}

#mc-buy-modal .mc-buy-close:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

#mc-buy-modal iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0b1220;
}

#mc-buy-stripe-hint {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1210;
  max-width: min(640px, calc(100vw - 32px));
  display: none;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, .35);
  background: rgba(17, 24, 39, .98);
  color: #cbd5e1;
  font-size: .86rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  text-align: center;
}

#mc-buy-stripe-hint.open { display: block; }
#mc-buy-stripe-hint a { color: #6ee7b7; font-weight: 700; }
#mc-buy-stripe-hint button {
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  #mc-buy-modal .mc-buy-dialog {
    width: 94vw;
    height: 92vh;
  }
}

#mc-buy-modal .mc-buy-dialog.mc-buy-dialog--lab {
  border-color: rgba(245, 158, 11, .32);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .58), 0 0 48px rgba(245, 158, 11, .1);
}

#mc-buy-modal .mc-buy-dialog.mc-buy-dialog--lab .mc-buy-head {
  background: linear-gradient(180deg, #1a1208, #0b1220);
}

#mc-buy-modal .mc-buy-dialog.mc-buy-dialog--lab .mc-buy-head-sub {
  color: #fcd34d;
}

#mc-buy-modal .mc-buy-dialog.mc-buy-dialog--lab iframe {
  background: #070b14;
}

body.mc-checkout-modal-open footer[data-metacore-footer="ecosystem-map-v3"] {
  z-index: 1;
}
