










pb-filter-modal { display: contents; }


.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);         
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 1.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}


.smodal {
  width: 100%;
  max-width: 28.75rem;
  
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(0.875rem) scale(0.975);
  transition: transform 0.26s var(--ease);
}
.overlay.open .smodal { transform: none; }
.smodal.wide { max-width: 48rem; }




@media (max-width: 767.98px) {
  .overlay { background: rgb(0 0 0 / 0.66); padding: 1rem; align-items: flex-start; }
  .smodal { border-radius: 12px; box-shadow: 0 32px 64px rgb(0 0 0 / 0.5); max-height: calc(100dvh - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .overlay,
  .smodal { transition: none; }
  .smodal { transform: none; }
}











.sm-body {
  
  padding: 1.25rem;
  
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.sm-foot { padding: 0.875rem 1.25rem; border-top: 0.0625rem solid var(--border); }


.fm-foot { display: flex; gap: 0.625rem; justify-content: flex-end; }
