/* Checkbox dropdown for library filters (inc/multi-select.php, src/shared/multi-select.js). */
.ms { position: relative; display: inline-flex; min-width: 0; }
.ms .ms-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 100%; min-width: 200px;
  height: 44px; padding: 0 16px 0 18px; margin: 0; cursor: pointer;
  background: #fff; border: 1px solid #DFE6F0; border-radius: 999px; color: #0D2844; box-shadow: none;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ms .ms-btn > [data-ms-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms .ms-btn:hover { border-color: #00A9ED; }
.ms .ms-btn:focus-visible { outline: none; border-color: #00A9ED; box-shadow: 0 0 0 3px rgba(0, 169, 237, 0.15); }
.ms .ms-btn[data-active] { background: #0D2844; border-color: #0D2844; color: #fff; }
.ms .ms-chev { flex: none; color: #016699; transition: transform 0.15s ease; }
.ms .ms-btn[data-active] .ms-chev { color: #fff; }
.ms .ms-btn[aria-expanded="true"] .ms-chev { transform: rotate(180deg); }
.ms .ms-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ms .ms-panel {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 100%; width: max-content; max-width: min(340px, 90vw);
  padding: 8px; background: #fff; border: 1px solid #DFE6F0; border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(10, 26, 51, 0.45);
}
.ms .ms-panel[hidden] { display: none; }
.ms .ms-panel > .ms-opt:first-child { margin-top: 0; }
.ms .ms-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 14px; line-height: 1.3; color: #0D2844;
}
.ms .ms-opt:hover { background: #F4F6F8; }
.ms .ms-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #0D2844; cursor: pointer; }
.ms .ms-opt input:focus-visible { outline: 2px solid #00A9ED; outline-offset: 2px; }
.ms .ms-opt-label { flex: 1; }
.ms .ms-opt-count { flex: none; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: #EEF2F7; color: #5B6B85; font-size: 12px; font-weight: 600; text-align: center; }
/* Long lists (speakers) scroll inside the panel. */
.ms .ms-panel:has(.ms-opt:nth-of-type(9)) { max-height: min(420px, 60vh); overflow-y: auto; }
.ms .ms-foot {
  position: sticky; bottom: -8px; display: flex; justify-content: space-between; gap: 8px;
  margin: 6px -8px -8px; padding: 10px 10px; background: #fff; border-top: 1px solid #E6ECF5; border-radius: 0 0 14px 14px;
}
.ms .ms-clear, .ms .ms-done {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; line-height: 1;
}
.ms .ms-clear { background: #fff; border: 1px solid #DFE6F0; color: #0D2844; }
.ms .ms-clear:hover { border-color: #016699; color: #016699; }
.ms .ms-done { background: #0D2844; border: 1px solid #0D2844; color: #fff; }
.ms .ms-done:hover { background: #016699; border-color: #016699; }
.ms .ms-clear:focus-visible, .ms .ms-done:focus-visible { outline: 2px solid #00A9ED; outline-offset: 2px; }

@media (max-width: 640px) {
  .ms, .ms .ms-btn { width: 100%; min-width: 0; }
  .ms .ms-panel { width: 100%; max-width: none; }
}
