.sgr-modal-open { overflow: hidden; }
.sgr-modal {
  position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(0, 0, 0, .58);
}
.sgr-modal__panel {
  width: min(100%, 560px); max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 32px; border-radius: 8px; background: #fff;
  color: #222; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); text-align: center;
}
.sgr-modal__panel h2 { margin: 0 0 16px; }
.sgr-modal__panel p { margin: 0 0 24px; white-space: normal; }
.sgr-modal .sgr-modal__panel button.sgr-modal__close {
  appearance: none;
  min-width: 203px; max-width: 100%; padding: 12px 24px; border: 0;
  border-radius: 50px !important; background-color: #ff5001 !important; color: #fff !important;
  font-family: MilligramMacro-BoldItalic, sans-serif; font-size: 22px;
  font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.sgr-modal .sgr-modal__panel button.sgr-modal__close:hover { background-color: #dc4500 !important; }
.sgr-modal .sgr-modal__panel button.sgr-modal__close:active { transform: translateY(1px); }
.sgr-modal .sgr-modal__panel button.sgr-modal__close:focus-visible { outline: 3px solid #ff5001; outline-offset: 3px; }

@media (max-width: 600px) {
  .sgr-modal { align-items: flex-start; padding: 16px; overflow-y: auto; }
  .sgr-modal__panel {
    max-height: calc(100dvh - 32px); margin: auto 0; padding: 24px 18px;
  }
  .sgr-modal__panel h2 { font-size: clamp(24px, 8vw, 32px); line-height: 1.15; }
  .sgr-modal .sgr-modal__panel button.sgr-modal__close { width: 100%; min-width: 0; font-size: 20px; }
}
