/* Custom dropdown - div-based, no native select */
.custom-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: CreatoDisplay, var(--font-creato-display), sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #1f2937;
  line-height: 1.4;
  text-align: left;
  outline: none;
  gap: 8px;
}

.custom-dropdown[data-minimal] .custom-dropdown__trigger {
  font-size: 15px;
}

.custom-dropdown__trigger:hover {
  color: #28241e;
}

.custom-dropdown__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-dropdown__chevron {
  flex-shrink: 0;
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.custom-dropdown__trigger:hover .custom-dropdown__chevron {
  color: #6b7280;
}

.custom-dropdown__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 100%;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  padding: 4px 0;
}

.custom-dropdown__option {
  padding: 10px 16px;
  font-family: CreatoDisplay, var(--font-creato-display), sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.custom-dropdown__option:hover {
  background-color: #f9fafb;
}

.custom-dropdown__option--selected {
  background-color: #f3f4f6;
  color: #111827;
  font-weight: 500;
}

/* Scrollbar */
.custom-dropdown__list::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown__list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.custom-dropdown__list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.custom-dropdown__list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Search variant - grey list to match #F5F5F5 panels */
.custom-dropdown--search .custom-dropdown__trigger {
  color: #28241e;
}

.custom-dropdown--search .custom-dropdown__list {
  background: #f5f5f5;
  border: none;
}

.custom-dropdown--search .custom-dropdown__option {
  color: #28241e;
}

.custom-dropdown--search .custom-dropdown__option:hover {
  background-color: #ebebeb;
}

.custom-dropdown--search .custom-dropdown__option--selected {
  background-color: #e8e8e8;
}

/* Advance variant - light grey list */
.custom-dropdown--advance {
  min-width: 140px;
}

.custom-dropdown--advance .custom-dropdown__trigger {
  color: #1f2937;
  font-size: 14px;
}

.custom-dropdown--advance .custom-dropdown__list {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.custom-dropdown--advance .custom-dropdown__option {
  color: #1f2937;
  font-size: 14px;
}

.custom-dropdown--advance .custom-dropdown__option:hover {
  background-color: #f3f4f6;
}

.custom-dropdown--advance .custom-dropdown__option--selected {
  background-color: #e5e7eb;
}
