/* Beger v1.4.1 UI refinements — no impact on Elementor/editor backend. */
html body .wb-ai-prompt-widget.beger-design-v14 .beger-wizard-progress,
html body .wb-ai-prompt-widget.beger-design-v14 .beger-wizard-progress-fill,
html body .wb-ai-prompt-widget.beger-design-v14 .beger-mobile-dock-status,
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-config-header {display:none!important}
html body .wb-ai-prompt-widget.beger-design-v14:not(.beger-has-result) .wb-ai-status-bar {display:none!important}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-choice-warning {margin:10px 0 8px!important;padding:12px 14px!important;border-radius:12px!important;border:1.5px solid #d68a85!important;background:#fff3f1!important;color:#9d3434!important;font-weight:700!important;font-size:14px!important;line-height:1.5!important}
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-toggle-group {display:none!important}
/* Furniture choice belongs to the final review, where auto-advance cannot hide it. */
html body .beger-review-dialog .beger-review-furniture {display:flex!important;align-items:center!important;gap:12px!important;cursor:pointer!important;border:1px solid #dce5f3!important;background:#f8faff!important;padding:15px!important;margin:16px 0 0!important;border-radius:15px!important;min-height:72px!important;position:relative!important}
html body .beger-review-dialog .beger-review-furniture-copy {display:flex!important;flex:1!important;flex-direction:column!important;gap:2px!important;min-width:0!important}
html body .beger-review-dialog .beger-review-furniture-copy strong {font-size:15px!important;line-height:1.45!important;font-weight:750!important;color:#21334d!important}
html body .beger-review-dialog .beger-review-furniture-copy small {font-size:12px!important;line-height:1.4!important;color:#66778c!important}
html body .beger-review-dialog .beger-review-furniture-input {position:absolute!important;right:17px!important;top:50%!important;width:49px!important;height:29px!important;transform:translateY(-50%)!important;opacity:0!important;z-index:2!important;cursor:pointer!important;margin:0!important}
html body .beger-review-dialog .beger-review-furniture-track {display:block!important;flex:0 0 49px!important;width:49px!important;height:29px!important;border-radius:999px!important;background:#d8e1f0!important;position:relative!important;transition:background .18s ease!important}
html body .beger-review-dialog .beger-review-furniture-track::after {content:''!important;display:block!important;position:absolute!important;top:4px!important;left:4px!important;width:21px!important;height:21px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px #0002!important;transition:transform .18s ease!important}
html body .beger-review-dialog .beger-review-furniture-input:checked + .beger-review-furniture-track {background:#3269b5!important}
html body .beger-review-dialog .beger-review-furniture-input:checked + .beger-review-furniture-track::after {transform:translateX(20px)!important}
html body .beger-review-dialog .beger-review-furniture-input:focus-visible + .beger-review-furniture-track {outline:3px solid #1c3c78!important;outline-offset:3px!important}
@media(max-width:767px){html body .wb-ai-prompt-widget.beger-design-v14 .beger-mobile-upload-guide h3{font-size:23px!important} html body .beger-review-dialog .beger-review-furniture{padding:13px!important}}


/* v1.4.2: A single visual step pattern on mobile. Before this change,
   the photo panel stayed visible ABOVE the active Step 2-4, so Step 1 and
   Step 2 were both presented as active headings. */
@media (max-width: 767px) {
  /* Step 1 and every later Step share the same mint counter, four-circle
     navigation and action heading instead of a giant standalone title. */
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14 .beger-mobile-upload-guide {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    margin:0 0 12px!important;
  }
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14 .beger-mobile-upload-guide > .beger-wizard-counter {
    display:inline-block!important;
    align-self:flex-start!important;
    width:auto!important;
    font-size:15px!important;
    margin:0 0 18px!important;
  }
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14 .beger-mobile-step-nav {
    display:flex!important;
    width:100%!important;
    margin-bottom:20px!important;
    gap:3px!important;
  }
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14 .beger-mobile-upload-guide .beger-mobile-step-title {
    font-size:24px!important;
    color:var(--b14-ink)!important;
    font-weight:750!important;
    line-height:1.4!important;
    margin:0 0 16px!important;
    text-shadow:none!important;
  }
  /* Show exactly ONE active step. Preserve the image panel during
     generation and after the result has been created. */
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14:not(.beger-generation-active):not(.beger-has-result)[data-wizard-step="2"] .wb-ai-prompt-layout > .wb-ai-upload-panel,
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14:not(.beger-generation-active):not(.beger-has-result)[data-wizard-step="3"] .wb-ai-prompt-layout > .wb-ai-upload-panel,
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14:not(.beger-generation-active):not(.beger-has-result)[data-wizard-step="4"] .wb-ai-prompt-layout > .wb-ai-upload-panel {
    display:none!important;
  }
  html body .wb-ai-prompt-widget.beger-wizard-enabled.beger-design-v14 .beger-mobile-upload-guide .beger-wizard-dot {
    min-width:0!important;
  }
}

/* Programmatic focus moves screen-reader context to each new step without
   an unintended black browser focus box around a noninteractive heading. */
html body .wb-ai-prompt-widget.beger-design-v14 .beger-wizard-title:focus { outline:none!important; box-shadow:none!important; }
