/* Beger AI Inspire beta.14.21: prevent blank white vertical space on mobile.
   Only the editing wizard needs bottom clearance for its fixed navigation.
   Finished results and their history are content-sized. */
@media (max-width:767px) {
  /* Remove reserved fixed-footer space once a finished result is displayed. */
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-ui-v2.beger-has-result:not(.beger-editing-after-result) {
    padding-bottom:0!important;
  }
  /* The completed result is a single vertical flow; do not stretch it. */
  html body .wb-ai-prompt-widget.beger-design-v14.beger-has-result:not(.beger-editing-after-result) .wb-ai-prompt-layout {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    align-items:start!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14.beger-has-result:not(.beger-editing-after-result) .wb-ai-prompt-layout > .wb-ai-upload-panel {
    display:flex!important;
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    padding-bottom:16px!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14.beger-has-result:not(.beger-editing-after-result) .wb-ai-result-container.visible:not(.is-loading) {
    display:block!important;
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14.beger-has-result:not(.beger-editing-after-result) .beger-result-sidebar {
    display:flex!important;
    flex:0 0 auto!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
    align-self:start!important;
    justify-content:flex-start!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14.beger-has-result:not(.beger-editing-after-result) .beger-result-sidebar > .beger-paint-calculator {
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    margin-bottom:0!important;
  }
  /* Wizard form also follows content height instead of flex-growing inside the page. */
  html body .wb-ai-prompt-widget.beger-design-v14.beger-wizard-enabled:not(.beger-has-result) .wb-ai-prompt-layout > .wb-inner-warpper,
  html body .wb-ai-prompt-widget.beger-design-v14.beger-wizard-enabled.beger-editing-after-result .wb-ai-prompt-layout > .wb-inner-warpper {
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14.beger-wizard-enabled:not(.beger-has-result) .wb-ai-config-panel,
  html body .wb-ai-prompt-widget.beger-design-v14.beger-wizard-enabled.beger-editing-after-result .wb-ai-config-panel {
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14 .beger-wizard-steps {
    height:auto!important;
    min-height:0!important;
    align-items:flex-start!important;
  }
  html body .wb-ai-prompt-widget.beger-design-v14 .beger-wizard-steps > .beger-wizard-dot {
    align-self:flex-start!important;
    height:auto!important;
  }
}
