.sgr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

html.sgr-modal-open,
body.sgr-modal-open {
  overflow: hidden;
}

body.sgr-modal-open {
  touch-action: none;
  overscroll-behavior: contain;
}

.sgr-modal__content {
  background: var(--wp--preset--color--base, #fff);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: var(--wp--preset--color--contrast, #000);
}

.sgr-modal__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--wp--preset--color--contrast, #000);
}

.sgr-modal__description {
  margin: 0 0 24px;
  color: var(--wp--preset--color--contrast-2, #666);
  font-size: 1rem;
}

.sgr-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sgr-modal__button {
  border: 1px solid var(--wp--preset--color--contrast, #000);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  color: var(--wp--preset--color--contrast, #000);
  transition: all 0.2s ease;
}

.sgr-modal__button--primary {
  background: #7600CA;
  color: #fff;
  border-color: #7600CA;
}

.sgr-modal__button--primary:hover {
  background: #5e00a3;
  border-color: #5e00a3;
}

.sgr-modal__button--secondary {
  background: var(--wp--preset--color--secondary, #f6f7f7);
  color: var(--wp--preset--color--secondary-contrast, #000);
  border: none;
}

.sgr-modal__button--secondary:hover {
  background: var(--wp--preset--color--secondary-hover, #edeff0);
}

@media (min-width: 640px) {
  .sgr-modal__actions {
    flex-direction: row;
    justify-content: center;
  }
}
