.select {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1C2A3B;
  background: #EAEFF3;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.select.is-empty .select-text {
  color: #3E4A56;
}
.select:hover {
  background: #FFFFFF;
}
.select:focus-visible, .select.is-open {
  background: #FFFFFF;
  border-color: #1C2A3B;
  box-shadow: 0 0 0 3px rgba(28, 42, 59, 0.15);
  outline: none;
}
.select.is-invalid {
  border-color: #AC2219;
}
.select.is-invalid:focus-visible, .select.is-invalid.is-open {
  box-shadow: 0 0 0 3px rgba(172, 34, 25, 0.15);
}
.select.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.select .select-icon {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
}
.select .select-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.select .select-arrow {
  flex: none;
  color: #3E4A56;
  transition: transform 140ms ease;
}
.select.is-open .select-arrow {
  transform: rotate(180deg);
}

.select-panel {
  --select-mobile-query: "(max-width: 767px)";
  --select-row-height: 40px;
  --select-mobile-gap: 24px;
  position: fixed;
  inset: auto;
  margin: 0;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 180px;
  overflow: hidden;
}
.select-panel:not(:popover-open) {
  display: none;
}
.select-panel {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(29, 32, 36, 0.12);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1C2A3B;
}
.select-panel .select-search {
  flex: none;
  padding: 8px;
  border-bottom: 1px solid #C2C6CC;
}
.select-panel .select-search > input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #1C2A3B;
  background: #EAEFF3;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}
.select-panel .select-search > input::placeholder {
  color: #3E4A56;
}
.select-panel .select-search > input:focus {
  background: #FFFFFF;
  border-color: #1C2A3B;
}
.select-panel .select-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.select-panel .select-message,
.select-panel .select-loading {
  padding: 12px;
  color: #3E4A56;
  text-align: center;
}
.select-panel .select-footer {
  flex: none;
  padding: 8px;
  border-top: 1px solid #C2C6CC;
  text-align: right;
}
.select-panel.is-mobile {
  inset: 0 !important;
  margin: auto !important;
  width: min(420px, 100% - var(--select-mobile-gap) * 2) !important;
  height: fit-content !important;
  max-height: calc(100% - var(--select-mobile-gap) * 2);
  box-shadow: 0 8px 32px rgba(29, 32, 36, 0.18);
}

.select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  user-select: none;
}
.select-option:hover, .select-option.is-active {
  background: #EAEFF3;
}
.select-option.is-selected {
  color: #1C2A3B;
  font-weight: 600;
}
.select-option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.select-option .select-option-check {
  flex: none;
  color: #3E4A56;
}
.select-option.is-selected .select-option-check {
  color: #1C2A3B;
}
.select-option .select-option-icon {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
}
.select-option .select-option-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
