/* MSD Custom Select */

/* Hide native select when wrapped */
.custom-select-wrapper select { display: none; }

.custom-select-wrapper { position: relative; width: 100%; }

.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between;
  background: #f5f5f5; border: 1px solid #eee; border-radius: 6px;
  padding: 10px 14px; cursor: pointer; font-size: 15px; color: #333;
  transition: border-color .2s, box-shadow .2s;
  min-height: 44px;
  outline: none;
}
.custom-select-trigger:hover { border-color: #ccc; }
.custom-select-trigger.open { border-color: #1ECB15; box-shadow: 0 0 0 2px rgba(30,203,21,.15); }
.custom-select-trigger:focus { border-color: #1ECB15; box-shadow: 0 0 0 2px rgba(30,203,21,.15); }

.cs-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-label.placeholder { color: #999; }

.cs-arrow {
  width: 0; height: 0; margin-left: 10px; flex-shrink: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #666; transition: transform .2s;
}
.custom-select-trigger.open .cs-arrow { transform: rotate(180deg); }

.custom-select-options {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.12);
  max-height: 250px; overflow-y: auto; z-index: 9999;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s, transform .2s;
  display: none;
}
.custom-select-options.visible { display: block; }
.custom-select-options.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.cs-option {
  padding: 10px 14px; cursor: pointer; font-size: 14px; color: #333;
  transition: background .15s;
}
.cs-option:hover, .cs-option.highlighted { background: #f0f0f0; }
.cs-option.selected { color: #1ECB15; font-weight: 600; }
.cs-option.selected::after { content: ' ✓'; }
.cs-option.disabled { color: #bbb; cursor: default; }
.cs-option.disabled:hover { background: transparent; }

/* Scrollbar */
.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
