/* Baskibu Designer 0.25.25 — calm feedback + overlay-safe quality drawer + scoped template UX */

/* --------------------------------------------------------------------------
   1) Quality drawer must be a true overlay. Its off-canvas transform must never
      increase the editor's scroll width or nudge the workspace left/right.
   -------------------------------------------------------------------------- */
.bbd-app.bbd-02525-ux-final{
  max-width:100vw!important;
  overflow-x:hidden!important;
  overscroll-behavior-x:none!important;
}
@supports (overflow:clip){
  .bbd-app.bbd-02525-ux-final{overflow-x:clip!important}
}
.bbd-app.bbd-02525-ux-final .bbd-quality-drawer,
.bbd-app.bbd-02525-ux-final .bbd-quality-drawer-backdrop{
  will-change:transform,opacity!important;
}

/* --------------------------------------------------------------------------
   2) Product-scoped/template-first products already have a curated library.
      Generic sector chips add noise and imply unrelated templates are available.
      Search + orientation remain because they are still useful inside the set.
   -------------------------------------------------------------------------- */
.bbd-app.bbd-02525-product-scoped-templates .bbd-template-pro-filters{
  display:none!important;
}
.bbd-app.bbd-02525-product-scoped-templates [data-panel-content="templates"] .bbd-search-field{
  margin-bottom:2px!important;
}

/* --------------------------------------------------------------------------
   3) Routine confirmations become one quiet micro-status pill. Errors/warnings
      remain rich and explicit; only low-risk success/info/progress feedback is
      condensed so editing does not feel like a stream of modal notifications.
   -------------------------------------------------------------------------- */
.bbd-app.bbd-02525-ux-final > .bbd-v90-toast-region{
  gap:6px!important;
}
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress{
  width:auto!important;
  max-width:min(310px,calc(100vw - 28px))!important;
  min-height:38px!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  gap:8px!important;
  padding:6px 10px 6px 7px!important;
  border-radius:12px!important;
  border:1px solid rgba(15,23,42,.10)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.10),0 1px 4px rgba(15,23,42,.04)!important;
  backdrop-filter:blur(12px) saturate(1.08)!important;
  -webkit-backdrop-filter:blur(12px) saturate(1.08)!important;
}
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success .bbd-v90-toast__icon,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info .bbd-v90-toast__icon,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress .bbd-v90-toast__icon{
  width:24px!important;height:24px!important;border-radius:8px!important;
}
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success .bbd-v90-toast__icon svg,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info .bbd-v90-toast__icon svg,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress .bbd-v90-toast__icon svg{
  width:15px!important;height:15px!important;
}
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success .bbd-v90-toast__copy,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info .bbd-v90-toast__copy,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress .bbd-v90-toast__copy{
  display:block!important;min-width:0!important;
}
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success .bbd-v90-toast__copy strong,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info .bbd-v90-toast__copy strong,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress .bbd-v90-toast__copy strong{
  display:block!important;font-size:11.5px!important;line-height:1.2!important;font-weight:760!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success .bbd-v90-toast__copy small,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info .bbd-v90-toast__copy small,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress .bbd-v90-toast__copy small,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success .bbd-v90-toast__close,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info .bbd-v90-toast__close,
.bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress .bbd-v90-toast__close{
  display:none!important;
}

@media (min-width:761px){
  .bbd-app.bbd-02525-ux-final > .bbd-v90-toast-region{
    right:18px!important;bottom:16px!important;width:auto!important;max-width:min(320px,calc(100vw - 36px))!important;
    align-items:flex-end!important;
  }
}
@media (max-width:760px){
  .bbd-app.bbd-02525-ux-final > .bbd-v90-toast-region{
    top:68px!important;left:50%!important;right:auto!important;bottom:auto!important;
    width:auto!important;max-width:calc(100vw - 24px)!important;transform:translateX(-50%)!important;
    align-items:center!important;
  }
  .bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-success,
  .bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-info,
  .bbd-app.bbd-02525-ux-final .bbd-v90-toast.is-progress{
    max-width:calc(100vw - 24px)!important;
  }
}
