/* SPB only: keep the EnvyBox discount form usable on narrow screens. */
@media (max-width: 919px) {
  body .white-saas-generator {
    box-sizing: border-box !important;
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto !important;
    max-width: 640px !important;
    height: auto !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body .white-saas-generator-container {
    width: 100% !important;
    height: auto !important;
  }
  body .white-saas-generator-left-block {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 48px 20px 12px !important;
    box-sizing: border-box !important;
  }
  body .white-saas-generator-image { display: none !important; }
  body .white-saas-generator-text-general {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
  }
  body .white-saas-generator-text-general-span {
    font-size: clamp(16px, 4.8vw, 20px) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }
  body .white-saas-generator-right-block {
    float: none !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px 20px 20px !important;
    box-sizing: border-box !important;
  }
  body .white-saas-generator-close-button {
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    text-align: center !important;
    z-index: 3 !important;
    color: #333 !important;
  }
  body .white-saas-generator-group-input { font-size: 16px !important; }
  body .white-saas-generator-btn-success,
  body .white-saas-generator-btn-cancel { min-height: 44px !important; }
  body .white-saas-generator-close-button:focus-visible,
  body .white-saas-generator-group-input:focus-visible {
    outline: 2px solid #333;
    outline-offset: -3px;
  }
}
