.cmf-wrap { margin: 10px 0; }
.cmf-form-title{ font-weight:700; margin: 0 0 12px; }

.cmf-filter{ border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: 0; margin: 0 0 12px; background:#fff; }
.cmf-filter-summary{ cursor:pointer; padding: 10px 12px; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.cmf-filter[open] .cmf-filter-summary{ border-bottom: 1px solid rgba(0,0,0,.08); }
.cmf-filter-body{ padding: 10px 12px; }

.cmf-actions { display:flex; gap:10px; align-items:center; }

.cmf-checkboxes{
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow: auto;
}

.cmf-select{
    width: 100%;
    min-height: 120px;
    max-height: 300px;
}

.cmf-date-choice{ display:flex; align-items:center; gap:10px; }
.cmf-date-choice input{ margin: 0; }
.cmf-date-presets{ display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.cmf-date-range{ display:flex; flex-direction:column; gap:10px; }
.cmf-date-field{ display:flex; flex-direction:column; gap:4px; max-width: 260px; }
.cmf-date-hint{ margin: 0; font-size: 12px; opacity: .75; }
.cmf-date-apply{ margin-top: 4px; width: 140px; }

.cmf-list { margin: 12px 0 0; padding-left: 18px; }

.cmf-sort-wrap{
  margin: 0 0 12px;
}

.cmf-sort{
  width: 100%;
  max-width: 100%;
}

.cmf-results-toolbar{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 12px;
  width: 100%;
}

.cmf-results-toolbar-right{
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmf-sort-label{
  white-space: nowrap;
  margin: 0;
}

.cmf-sort-main{
  width: auto;
  min-width: 220px;
  max-width: 100%;
}

.cmf-results-toolbar--moved{
  margin: 0 0 16px;
}


/* Add accordion arrows */
.cmf-filter-summary::after{
  content:"▾";
  font-size:14px;
  margin-left:auto;
}

details:not([open]) > .cmf-filter-summary::after{
  content:"▸";
}

/* Disable accordion on date filter */
.cmf-filter-date > summary{
  cursor:default;
  pointer-events:none;
}

.cmf-filter-date[open] > .cmf-filter-summary::after{
  content:"";
}

