/* Custom dropdown that replaces native <select> menus (see /js/custom-select.js). */
.cs-select {
  position: relative;
  width: 100%;
  font: inherit;
}

.cs-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #f7f9fc;
  color: #031641;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cs-trigger:hover {
  border-color: #b9d6e0;
  background: #fff;
}

.cs-trigger:focus-visible,
.cs-select.is-open .cs-trigger {
  outline: none;
  border-color: #00a6c9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 166, 201, .18);
}

.cs-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cs-select.is-placeholder .cs-label {
  color: #7a8799;
}

.cs-caret {
  flex: 0 0 auto;
  color: #00a6c9;
  font-size: .9rem;
  transition: transform .2s ease;
}

.cs-select.is-open .cs-caret {
  transform: rotate(180deg);
}

.cs-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  display: none;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(3, 22, 65, .18);
}

.cs-select.is-open .cs-menu {
  display: block;
  animation: cs-menu-in .16s ease;
}

@keyframes cs-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.cs-option {
  padding: 11px 12px;
  border-radius: 9px;
  color: #1d2b44;
  font-size: .98rem;
  line-height: 1.35;
  cursor: pointer;
}

.cs-option:hover,
.cs-option.is-active {
  background: #eaf8fc;
  color: #031641;
}

.cs-option.is-selected {
  color: #007c99;
  font-weight: 600;
}

.cs-option.is-selected::after {
  content: "\F26E";
  font-family: "bootstrap-icons";
  float: right;
  color: #00a6c9;
}

.cs-option.is-disabled {
  color: #a0aabb;
  cursor: default;
}

/* Keep the menu inside the quote popup and scroll it if needed. */
.quote-modal-panel .cs-menu {
  max-height: 240px;
}
