@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  background: #f0f0f0;
  color: #0a0a0a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.morph-select {
  --morph-select-bg: #ebebe9;
  --morph-select-ink: #101010;
  --morph-select-fg: rgba(255, 250, 242, 0.92);
  --morph-select-fg-soft: rgba(255, 255, 255, 0.78);
  --morph-select-fg-dim: rgba(255, 255, 255, 0.55);
  --morph-select-margin: 40px;
  --morph-select-gap: 12px;
  --morph-select-list-max-height: 252px;
  --morph-select-font: "Switzer", -apple-system, BlinkMacSystemFont, sans-serif;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background-color: var(--morph-select-bg);
  font-family: var(--morph-select-font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.morph-select__field {
  position: relative;
  width: 280px;
}

.morph-select__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.morph-select__stack {
  position: relative;
}

.morph-select__goo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.morph-select__filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.morph-select__trigger-shape,
.morph-select__panel-shape {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--morph-select-ink);
  transform-origin: 50% 0%;
  will-change: transform, width, height;
}

.morph-select__trigger-shape {
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

.morph-select__trigger-surface {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--morph-select-ink);
  pointer-events: none;
}

.morph-select__panel-shape {
  border-radius: 16px;
}

.morph-select__content {
  position: relative;
  z-index: 1;
}

.morph-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: none;
  background: transparent;
  color: var(--morph-select-fg);
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

.morph-select__trigger:focus-visible {
  outline: 2px solid #fd551d;
  outline-offset: 2px;
  border-radius: 999px;
}

.morph-select__value {
  position: relative;
  overflow-x: visible;
  overflow-y: clip;
  height: 1.3em;
  line-height: 1.3em;
}

.morph-select__value-text {
  display: block;
  font-size: 15px;
  font-weight: 380;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translateY(0%);
}

.morph-select__value-text--next {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.morph-select__caret {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
  transform-origin: 50% 50%;
}

.morph-select__panel {
  position: absolute;
  top: calc(100% + var(--morph-select-gap));
  left: 0;
  width: 100%;
  z-index: 2;
}

[data-morph-select][data-direction="up"] .morph-select__panel {
  top: auto;
  bottom: calc(100% + var(--morph-select-gap));
}

[data-morph-select][data-direction="up"] .morph-select__panel-shape {
  top: auto;
  bottom: 0;
}

.morph-select__viewport {
  position: relative;
  max-height: var(--morph-select-list-max-height);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.morph-select__viewport::-webkit-scrollbar {
  width: 6px;
}

.morph-select__viewport::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.morph-select__viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100vw;
}

.morph-select__viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.morph-select__list {
  position: relative;
  z-index: 1;
  padding: 6px;
  list-style: none;
  margin: 0;
  outline: none;
}

.morph-select__highlight {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
}

.morph-select__option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
}

.morph-select__option-label {
  position: relative;
  display: block;
}

.morph-select__option-text {
  display: block;
  font-size: 14px;
  font-weight: 380;
  letter-spacing: -0.01em;
  color: var(--morph-select-fg-soft);
  white-space: nowrap;
  opacity: 0;
  padding-left: 0;
  transition: padding-left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-select__option:hover .morph-select__option-text,
.morph-select__option.is-active .morph-select__option-text {
  padding-left: 6px;
}

.morph-select__option[aria-selected="true"] .morph-select__option-text {
  color: var(--morph-select-fg);
}

@media (max-width: 479px) {
  .morph-select {
    --morph-select-margin: 20px;
  }

  .morph-select__field {
    width: calc(100% - var(--morph-select-margin) * 2);
    max-width: 280px;
  }
}
