/* MOOPSI – Video Products Toggle (front-end) */
.moopsi-video-filter-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0;
  width:100%;
}

.moopsi-video-filter-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 12px;
  border:1px solid #d9d9d9;
  background:#fff;
  color:#343434;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  user-select:none;
  transition:background-color .12s ease, border-color .12s ease, color .12s ease;
  border-radius:0;
  width:100%;
  flex:1 1 100%;
  box-sizing:border-box;
}
.moopsi-video-filter-pill:focus{outline:2px solid rgba(52,52,52,.25); outline-offset:2px;}
.moopsi-video-filter-pill:hover{border-color:#d8d8d8;}
.moopsi-video-filter-pill .moopsi-video-left{display:flex; align-items:center; gap:8px;}
.moopsi-video-filter-pill .moopsi-video-box{
  width:12px; height:12px;
  border:1px solid #cfcfcf;
  background:#fff;
  display:inline-block;
}
.moopsi-video-filter-pill.is-on .moopsi-video-box{background:#343434; border-color:#343434;}
.moopsi-video-filter-pill .moopsi-video-right{display:flex; align-items:center; gap:8px;}
.moopsi-video-filter-pill .moopsi-video-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  padding:2px 8px;
  border:1px solid #e5e5e5;
  background:#fafafa;
  font-weight:700;
  font-size:12px;
  line-height:1.2;
  border-radius:0;
  width:100%;
  flex:1 1 100%;
  box-sizing:border-box;
}
.moopsi-ajax-progress{
  width:100%;
  height:2px;
  background:transparent;
  position:relative;
  overflow:hidden;
  margin-top:-6px;
}
.moopsi-ajax-progress-bar{
  position:absolute;
  left:0;
  top:0;
  height:2px;
  width:30%;
  background:#343434;
  transform:translateX(-110%);
}
.moopsi-video-filter-wrap.is-loading .moopsi-ajax-progress{background:rgba(52,52,52,.08);}
.moopsi-video-filter-wrap.is-loading .moopsi-ajax-progress-bar{
  animation:moopsiVidToggleProgress 900ms linear infinite;
}
@keyframes moopsiVidToggleProgress{
  0%{transform:translateX(-110%);}
  100%{transform:translateX(430%);}
}
.moopsi-video-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:#6b6b6b;
}
.moopsi-video-clear{
  color:#343434;
  text-decoration:underline;
  font-weight:600;
}
.moopsi-video-clear:hover{opacity:.85;}
/* Admin-only debug overlay */
#moopsi-vidtoggle-debug{
  position:fixed;
  bottom:12px;
  right:12px;
  z-index:99999;
  background:#fff;
  border:1px solid #e5e5e5;
  padding:8px 10px;
  font-size:12px;
  color:#343434;
  max-width:320px;
  pointer-events:none;
  border-radius:0;
  width:100%;
  flex:1 1 100%;
  box-sizing:border-box;
}
#moopsi-vidtoggle-debug strong{font-weight:700;}
#moopsi-vidtoggle-debug .muted{color:#777;}


.moopsi-video-filter-pill:focus-visible{outline:2px solid rgba(52,52,52,.25); outline-offset:2px;}
.moopsi-video-clear:focus-visible{outline:2px solid rgba(52,52,52,.25); outline-offset:2px;}

@media (prefers-reduced-motion: reduce){
  .moopsi-ajax-progress-bar{animation:none !important;}
}


/* Phase 29: screen-reader only */
.moopsi-vt-sr{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
