:root {
  --pf-select-line: rgba(148, 184, 211, .14);
  --pf-select-line-strong: rgba(148, 184, 211, .24);
  --pf-select-text: #eefaff;
  --pf-select-soft: #9bb1c3;
  --pf-select-muted: #70879a;
  --pf-select-cyan: #25d9e8;
  --pf-select-emerald: #2ce0a4;
  --pf-select-ease: cubic-bezier(.22, .8, .22, 1);
}

.pf-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pf-select {
  position: relative;
  min-width: 0;
  width: 100%;
  font-family: inherit;
}

.pf-select__trigger {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--pf-select-line);
  border-radius: 13px;
  color: var(--pf-select-text);
  background: rgba(255, 255, 255, .035);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition:
    border-color .2s var(--pf-select-ease),
    background-color .2s var(--pf-select-ease),
    box-shadow .2s var(--pf-select-ease);
}

.pf-select__trigger:hover,
.pf-select.is-open .pf-select__trigger {
  border-color: rgba(37, 217, 232, .46);
  background: rgba(37, 217, 232, .05);
}

.pf-select.is-open .pf-select__trigger,
.pf-select__trigger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37, 217, 232, .08);
}

.pf-select__value {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-select__value > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-select__flag,
.pf-select-option__flag {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.pf-select__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--pf-select-muted);
  border-bottom: 2px solid var(--pf-select-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--pf-select-ease);
}

.pf-select.is-open .pf-select__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.pf-select-portal {
  position: fixed !important;
  z-index: 2147483647 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--pf-select-line-strong);
  border-radius: 16px;
  color: var(--pf-select-text);
  background: rgba(7, 22, 35, .985);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, .52),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(24px);
  font-family: inherit;
  animation: pfSelectDropIn .18s var(--pf-select-ease);
}

@keyframes pfSelectDropIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pf-select-options {
  display: grid;
  gap: 2px;
}

.pf-select-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  color: var(--pf-select-soft);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    color .16s ease,
    background-color .16s ease;
}

.pf-select-option:hover,
.pf-select-option:focus-visible,
.pf-select-option.is-active {
  outline: 0;
  color: var(--pf-select-text);
  background: rgba(37, 217, 232, .09);
}

.pf-select-option.is-selected {
  color: var(--pf-select-emerald);
  background: rgba(44, 224, 164, .09);
}

.pf-select-option.is-disabled,
.pf-select-option:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pf-select-option__text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-select-option__meta {
  margin-left: auto;
  color: var(--pf-select-muted);
  font-size: 11px;
  font-weight: 750;
}

.pf-select-search-wrap {
  position: sticky;
  z-index: 2;
  top: -8px;
  margin: -8px -8px 6px;
  padding: 8px;
  background: rgba(7, 22, 35, .985);
}

.pf-select-search {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--pf-select-line);
  border-radius: 11px;
  outline: 0;
  color: var(--pf-select-text);
  background: rgba(255, 255, 255, .035);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.pf-select-search:focus {
  border-color: rgba(37, 217, 232, .46);
  box-shadow: 0 0 0 4px rgba(37, 217, 232, .08);
}

.pf-select-search::placeholder {
  color: var(--pf-select-muted);
}

.pf-select-empty {
  padding: 18px 12px;
  color: var(--pf-select-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 767px) {
  .pf-select-portal {
    max-height: min(55vh, 420px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-select__trigger,
  .pf-select__chevron,
  .pf-select-option,
  .pf-select-portal {
    animation: none !important;
    transition: none !important;
  }
}
