/* Tom Select skin matching this site's .form-select / .form-select-sm look
   (white box, 6px corners, same focus ring as bootstrap-5.0.2.css's .form-control:focus).
   Loaded alongside the base tom-select.css theme - this only restyles it. */

.ts-wrapper.form-select,
.ts-wrapper.form-select-sm {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
}

.ts-control {
  background-color: #fff;
  color: #212529;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  min-height: calc(1.5em + 0.75rem + 2px);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}
.ts-wrapper.form-select-sm .ts-control {
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  font-size: 0.875rem;
  min-height: calc(1.5em + 0.5rem + 2px);
  background-position: right 0.5rem center;
  background-size: 14px 10px;
}
.ts-wrapper.focus .ts-control {
  border-color: #8ad3ef;
  box-shadow: 0 0 0 0.25rem rgba(21, 166, 223, 0.25);
}
.ts-control > input {
  color: #212529;
  font-size: inherit;
}

.ts-dropdown {
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #fff;
  /* header.php wraps <header> in .hh, which gets position:sticky + z-index:10
     at >=990px (see the inline <style> at the top of header.php) - that caps
     the whole nav/megamenu at an effective z-index of 10 from outside it, so
     this has to stay below 10 (not header.php's own .u-header z-index:1001,
     which only matters for stacking inside .hh) for an open dropdown to
     never draw over the nav/megamenu. */
  z-index: 5;
}
.ts-dropdown .optgroup-header { font-weight: 600; font-style: italic; font-size: calc(1em + 4px); color: #6c757d; background: #fff; }
.ts-dropdown .option { color: #212529; }
.ts-dropdown .active { background-color: #e7f6fd; color: #212529; }
