.agm-locked { overflow: hidden !important; }

/* Hidden by default - use !important to override any theme styles */
#agm-overlay,
.agm-modal {
  display: none !important;
  visibility: hidden !important;
}

/* Full viewport overlay */
#agm-overlay.agm-open {
  display: block !important;
  visibility: visible !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.65) !important;
  z-index: 2147483000 !important; /* above almost everything */
  pointer-events: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

/* Full viewport modal layer, centered */
.agm-modal.agm-open {
  display: flex !important;
  visibility: visible !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  z-index: 2147483647 !important; /* above overlay */
  pointer-events: none !important; /* clicks go to inner box */
  transform: none !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

/* Modal content box */
.agm-box {
  pointer-events: auto !important;
  width: min(960px, 92vw) !important;
  max-width: 960px !important;
  max-height: 90vh !important;
  overflow: auto !important;
  background: #fff !important;
  border: 6px solid #1a33ff !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.35) !important;
  padding: 24px 24px 30px !important;
  position: relative !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Close X */
.agm-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #111;
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 22px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.agm-header { height: 56px; background: #000; margin: -24px -24px 16px; }
.agm-title { font: 800 42px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; text-align: center; margin: 6px 0 10px; }

.agm-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.agm-footer.agm-three { grid-template-columns: 1fr 1fr 1fr; }

.agm-btn {
  background: #1a33ff;
  color: #fff;
  border: 0;
  padding: 16px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.agm-btn-pri { background: #2e47ff; }

.agm-frame {
  width: 100%;
  height: min(76vh, 760px);
  border: 0;
  display: block;
  background: #f6f7fb;
}
