.collection-field {
  min-width: 0;
}

#collection-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 15px 10px 17px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-face);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  text-align: left;
}

#collection-trigger[hidden] {
  display: none;
}

#collection-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#collection-trigger .collection-chevron {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e6edf8;
  color: #344359;
}

#collection-trigger[aria-expanded="true"] {
  border-color: #9b1526;
  box-shadow: inset 0 1px 0 white, 0 0 0 3px #9b15261c;
}

#collection-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

#collection-trigger:focus-visible {
  outline: 2px solid #9b1526;
  outline-offset: 3px;
}

#collection-options {
  position: fixed;
  inset: auto;
  z-index: 30;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  border: 1px solid #b8c7d9;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 6%, #f3f7fef7);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 42px #25395235;
  color: var(--ink);
}

#collection-options [role="option"] {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

#collection-options [aria-selected="true"] {
  background: #fae8e8;
  color: #8e1423;
  font-weight: 700;
}

#collection-options [aria-selected="true"]::after {
  position: absolute;
  right: 15px;
  width: 10px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  content: "";
}

#collection-options .active-option {
  box-shadow: inset 0 0 0 1px #9b1526;
}

@media (hover: hover) {
  #collection-options [role="option"]:hover {
    background: #e6edf8;
  }

  #collection-options [aria-selected="true"]:hover {
    background: #f7dcdc;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #collection-options {
    background: #f5f8fd;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
