/* =====================================================
   Select2 Styling for Category Filter
   Author: Nahid Mahamud
   ===================================================== */

/* Base select container */
.ctg-filter-widget + .select2-container {
  width: 100%;
}

/* Main select box */
.ctg-filter-widget + .select2-container .select2-selection--single {
  height: 44px;
  border: 1px solid #d1d5db;      /* light gray border */
  border-radius: 8px;
  background-color: #ffffff;
  display: flex;
  align-items: center;            /* vertical centering */
  padding: 0 12px;
  box-sizing: border-box;
}

/* Rendered text */
.ctg-filter-widget + .select2-container 
.select2-selection__rendered {
  color: #111827;
  font-size: 15px;
  line-height: normal;
  padding-left: 0;
}

/* Arrow alignment */
.ctg-filter-widget + .select2-container 
.select2-selection__arrow {
  height: 100%;
  right: 10px;
}

/* Hover state */
.ctg-filter-widget + .select2-container 
.select2-selection--single:hover {
  border-color: #9ca3af;
}

/* Focus / open state */
.ctg-filter-widget + .select2-container--open 
.select2-selection--single {
  border-color: #6d5dfc;
  box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.15);
}

/* Dropdown results scroll */
.select2-container--default 
.select2-results > .select2-results__options {
  max-height: 260px;
  overflow-y: auto;
}

/* Dropdown option */
.select2-container--default 
.select2-results__option {
  font-size: 14px;
  padding: 8px 12px;
}

/* Selected / highlighted option */
.select2-container--default 
.select2-results__option--highlighted[aria-selected] {
  background-color: #6d5dfc;
  color: #ffffff;
}
