component SelectStyles {
  view {
  }

  style {
    .wire-next--advanced-select {
      position: relative;
      display: grid;
      width: 100%;
      gap: 0.55rem;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }
    .wire-next--advanced-select > label:first-child,
    .wire-next--advanced-select .wire-next__row > label {
      color: var(--wire-color-text);
      font-size: 0.82em;
      font-weight: 700;
    }
    .wire-next--advanced-select .wire-next__row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }
    .wire-next--advanced-select small {
      color: var(--wire-color-muted);
      font-size: 0.72em;
    }
    .wire-next__select-search input,
    .wire-next--advanced-select select {
      width: 100%;
      min-height: 2.6em;
      padding: 0.62em 0.75em;
      border: 1px solid var(--wire-color-border);
      border-radius: var(--wire-radius-sm);
      color: var(--wire-color-text);
      background: var(--wire-color-surface);
      font: inherit;
    }
    .wire-next__search-icon {
      position: absolute;
      top: 50%;
      left: 0.75em;
      z-index: 1;
      color: var(--wire-component-color);
      transform: translateY(-50%);
    }
    .wire-next--advanced-select select:focus-visible,
    .wire-next__select-search input:focus-visible {
      border-color: var(--wire-component-color);
      outline: 2px solid color-mix(in srgb, var(--wire-component-color) 24%, transparent);
      outline-offset: 1px;
    }
    .wire-next--advanced-select select[multiple] {
      min-height: 8rem;
    }
    .wire-next__color-dot {
      width: 0.65rem;
      height: 0.65rem;
      border-radius: 50%;
      background: var(--option-color);
    }
    .wire-next__clear-select,
    .wire-next__create-option,
    .wire-next__load-more {
      width: fit-content;
      padding: 0;
      border: 0;
      color: var(--wire-component-color);
      background: transparent;
      font: inherit;
      font-size: 0.75em;
      font-weight: 700;
      cursor: pointer;
    }
    .wire-next--invalid :is(input, select) {
      border-color: var(--wire-color-danger);
    }
    .wire-next__validation {
      color: var(--wire-color-danger) !important;
    }
    .wire-next__validation:empty {
      display: none;
    }
    .wire-next--advanced-select:has(input.wire-invalid) .wire-next__select-trigger {
      border-color: var(--wire-color-danger);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 16%, transparent);
    }
    .wire-next--advanced-select-fixed select {
      box-shadow: var(--wire-shadow-1);
    }
    .wire-next__select-control {
      position: relative;
    }
    .wire-next__combobox-control > .wire-next__search-icon {
      width: 1rem;
      height: 1rem;
      pointer-events: none;
    }
    .wire-next__combobox-toggle .wire-next__select-chevron {
      position: static;
      transform: none;
    }
    .wire-next--combobox .wire-next__clear-select {
      right: 2.4em;
    }
    .wire-next__select-trigger {
      display: flex;
      width: 100%;
      min-height: 2.75em;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.55em 2.75em 0.55em 0.8em;
      border: 1px solid var(--wire-color-border);
      border-radius: var(--wire-radius-sm);
      color: var(--wire-color-text);
      background: var(--wire-color-bg);
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition:
        border-color var(--wire-motion-base) var(--wire-ease-standard),
        box-shadow var(--wire-motion-base) var(--wire-ease-standard);
    }
    .wire-next--open .wire-next__select-trigger,
    .wire-next__select-trigger:focus-visible {
      border-color: var(--wire-component-color);
      outline: 0;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-component-color) 18%, transparent);
    }
    .wire-next__select-chevron {
      position: absolute;
      top: 50%;
      right: 0.9em;
      color: var(--wire-color-muted);
      pointer-events: none;
      transform: translateY(-54%);
    }
    .wire-next__clear-select {
      position: absolute;
      top: 50%;
      right: 2.15em;
      z-index: 2;
      display: grid;
      width: 1.4em;
      height: 1.4em;
      padding: 0;
      place-items: center;
      border-radius: 50%;
      transform: translateY(-50%);
    }
    .wire-next__clear-select:hover {
      background: var(--wire-color-surface-2);
    }
    .wire-next__select-dropdown {
      position: absolute;
      top: calc(100% + 0.4rem);
      left: 0;
      z-index: 80;
      display: grid;
      width: 100%;
      min-width: min(20rem, 92vw);
      gap: 0.45rem;
      padding: 0.5rem;
      overflow: hidden;
      border: 1px solid var(--wire-color-border);
      border-radius: var(--wire-radius-sm);
      background: var(--wire-color-surface);
      box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 18%);
    }
    .wire-next[data-placement="top"] .wire-next__select-dropdown {
      top: auto;
      bottom: calc(100% + 0.4rem);
    }
    .wire-next__select-dropdown--fixed {
      position: fixed;
      top: auto;
    }
    .wire-next__select-list {
      display: grid;
      max-height: 18rem;
      gap: 0.15rem;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }
    .wire-next__option-group {
      display: grid;
      gap: 0.15rem;
    }
    .wire-next__group-label {
      padding: 0.55rem 0.7rem 0.3rem;
      color: var(--wire-component-color);
      font-size: 0.68em;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .wire-next__select-option {
      position: relative;
      display: grid;
      width: 100%;
      grid-template-columns: minmax(0, 1fr);
      align-items: center;
      gap: 0.65rem;
      padding: 0.58rem 2.5rem 0.58rem 0.7rem;
      border: 0;
      border-radius: calc(var(--wire-radius-sm) * 0.72);
      color: var(--wire-color-text);
      background: transparent;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .wire-next__select-option:has(> img),
    .wire-next__select-option:has(> i:not(.wire-next__check)) {
      grid-template-columns: auto minmax(0, 1fr);
    }
    .wire-next__select-option > span {
      display: grid;
      min-width: 0;
      gap: 0.12rem;
    }
    .wire-next__select-option strong {
      overflow: hidden;
      font-size: 0.82em;
      font-weight: 650;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .wire-next__select-option small {
      overflow: hidden;
      font-size: 0.68em;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .wire-next__select-option img,
    .wire-next__selected-avatar {
      width: 1.65rem;
      height: 1.65rem;
      border-radius: 50%;
      object-fit: cover;
    }
    .wire-next__select-option--active {
      background: var(--wire-color-surface-2);
    }
    .wire-next__select-option--selected {
      color: var(--wire-component-color);
    }
    .wire-next__select-option:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .wire-next__check {
      position: absolute;
      top: 50%;
      right: 0.8rem;
      width: 1rem;
      height: 1rem;
      color: var(--wire-component-color);
      transform: translateY(-50%);
    }
    .wire-next__select-message {
      display: flex;
      min-height: 4rem;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 1rem;
      color: var(--wire-color-muted);
      font-size: 0.78em;
      text-align: center;
    }
    .wire-next__create-option,
    .wire-next__load-more {
      width: 100%;
      padding: 0.65rem;
      border-top: 1px solid var(--wire-color-border);
      text-align: left;
    }
    .wire-next--disabled {
      opacity: 0.62;
    }
    .wire-next__select-trigger .wire-next__select-tags {
      flex-wrap: nowrap;
      overflow: hidden;
    }
    @media (max-width: 640px) {
      .wire-next__select-dropdown {
        min-width: 100%;
      }
    }
  }
}
