:root {
  --y-font-size: 14px;
  --y-font-size-sm: 12px;
  --y-font-size-lg: 16px;
  --y-font-size-xl: 18px;
  --y-text-color: rgba(0, 0, 0, 0.85);
  --y-shadow-color: rgba(0, 0, 0, 0.3);
  --y-primary-color: rgb(20, 184, 166);
  --y-success-color: rgb(16, 185, 129);
  --y-info-color: rgb(59, 130, 246);
  --y-warning-color: rgb(251, 146, 60);
  --y-error-color: rgb(220, 38, 38);
  --y-disabled-opacity: 0.3;
  --y-placeholder-color: var(--y-shadow-color);
  --y-split-line-color: rgb(231, 230, 230);
  --y-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  --y-radius: 4px;
  --y-radius-lg: 8px;
  --y-border: 1px solid var(--y-shadow-color);
  --y-focus-shadow: 0 0 0 1.8px rgba(0, 0, 0, 0.2);
}

:root {
  --y-select-radius: var(--y-radius);
  --y-select-dropdown-shadow: var(--y-shadow);
  --y-select-dropdown-radius: var(--y-radius);
  --y-select-selected-color: var(--y-primary-color);
}

.y-select {
  position: relative;
  cursor: pointer;
  display: inline-block;
  vertical-align: bottom;
}
.y-select .y-select-trigger {
  position: relative;
  color: rgba(0, 0, 0, 0.85);
  width: 100%;
  font-size: 14px;
  overflow: hidden;
  border: var(--y-border);
  border-radius: 4px;
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 32px;
  transition: all 0.2s;
}
.y-select .y-select-trigger .y-select-arrow-icon {
  display: inline-block;
  align-self: auto;
  position: absolute;
  right: 8px;
  top: 5px;
  font-size: 18px;
  color: var(--y-shadow-color);
}
.y-select.y-select-active .y-select-trigger {
  color: var(--y-shadow-color);
  box-shadow: var(--y-focus-shadow);
}
.y-select-small .y-select-trigger {
  height: 28px;
  padding-right: 28px;
}
.y-select-small .y-select-trigger .y-select-arrow-icon {
  right: 6px;
  top: 2px;
}
.y-select-large .y-select-trigger {
  height: 42px;
}
.y-select-large .y-select-trigger .y-select-arrow-icon {
  font-size: 20px;
  right: 8px;
  top: 7px;
}
.y-select-disabled {
  opacity: var(--y-disabled-opacity);
  cursor: not-allowed;
}
.y-select-placeholder {
  color: var(--y-placeholder-color);
}
.y-select-empty {
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--y-shadow-color);
}
.y-select-empty-icon {
  font-size: 24px;
}
.y-select-dropdown {
  position: absolute;
  background: #fff;
  display: inline-block;
  box-sizing: border-box;
  box-shadow: var(--y-select-dropdown-shadow);
  border-radius: var(--y-select-dropdown-radius);
  padding: 5px 0;
  max-height: 300px;
  overflow-y: overlay;
  z-index: 999;
  width: fit-content;
  font-size: 14px;
}
.y-select-dropdown .y-select-option {
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  padding: 0 14px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.85);
  transition: all 0.2s;
}
.y-select-dropdown .y-select-option:hover:not(.y-select-option-selected) {
  background-color: #cecece;
}
.y-select-dropdown .y-select-option.y-select-option-selected {
  font-weight: 500;
  background-color: var(--y-select-selected-color);
  color: #fff;
}
.y-select-dropdown::-webkit-scrollbar-thumb {
  background: #e4dfdf;
  border-radius: 100px;
}
.y-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #cdcdcd;
}
.y-select-dropdown::-webkit-scrollbar {
  background: transparent;
  width: 8px;
}

.dropdown-fade-enter-active,
.dropdown-fade-leave-active {
  transition: all 0.2s 0.1s;
}

.dropdown-fade-enter-from,
.dropdown-fade-leave-to {
  opacity: 0;
  transform: scaleY(0.85);
}