.gc-select {
    --gc-select-primary: #164475;
    --gc-select-border: #d9d9d9;
    --gc-select-text: rgba(0, 0, 0, 0.88);
    --gc-select-muted: rgba(0, 0, 0, 0.45);
    --gc-select-option-active: rgba(0, 0, 0, 0.04);
    --gc-select-option-selected: #e6f4ff;
    --gc-select-option-selected-hover: #bae0ff;
    position: relative;
    width: 100%;
    min-width: 0;
    color: var(--gc-select-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.gc-select [hidden] {
    display: none !important;
}

.gc-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.gc-select__selector {
    position: relative;
    display: flex;
    min-height: 44px;
    min-width: 0;
    align-items: center;
    padding: 5px 64px 5px 12px;
    border: 1px solid var(--gc-select-border);
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gc-select:not(.is-disabled) .gc-select__selector:hover {
    border-color: var(--gc-select-primary);
}

.gc-select.is-open .gc-select__selector,
.gc-select__selector:focus-within {
    border-color: var(--gc-select-primary);
    box-shadow: 0 0 0 2px rgba(22, 68, 117, 0.14);
}

.gc-select.is-disabled .gc-select__selector {
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.25);
}

.gc-select__selection {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.gc-select__value,
.gc-select__placeholder {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-select__placeholder {
    color: var(--gc-select-muted);
}

.gc-select.is-open:has(.gc-select__search) .gc-select__placeholder {
    display: none;
}

.gc-select.has-search .gc-select__value,
.gc-select.has-search .gc-select__placeholder {
    visibility: hidden;
}

.gc-select__tag {
    position: relative;
    z-index: 3;
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    padding: 2px 7px;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--gc-select-text);
    font: inherit;
    line-height: 1.35;
    pointer-events: auto;
    cursor: pointer;
}

.gc-select__tag:hover {
    background: rgba(0, 0, 0, 0.10);
}

.gc-select__tag span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-select__tag i {
    flex: 0 0 auto;
    color: var(--gc-select-muted);
    font-size: 10px;
}

.gc-select__tag-count {
    color: var(--gc-select-muted);
    font-size: 13px;
}

.gc-select__trigger {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
}

.gc-select__trigger:focus {
    outline: 0;
}

.gc-select__trigger:disabled {
    cursor: not-allowed;
}

.gc-select__clear {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 34px;
    display: inline-grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    color: var(--gc-select-muted);
    cursor: pointer;
}

.gc-select__clear:hover {
    color: var(--gc-select-text);
    background: #f3f3f3;
}

.gc-select__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--gc-select-muted);
    font-size: 11px;
    pointer-events: none;
    transition: transform 160ms ease;
}

.gc-select.is-open .gc-select__arrow {
    transform: translateY(-50%) rotate(180deg);
}

.gc-select__popup {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    padding: 4px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.gc-select .gc-select__search {
    flex: 1 1 40px;
    width: 0;
    min-width: 0;
    min-height: 0;
    height: 26px;
    padding: 0 3px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--gc-select-text);
    font: inherit;
    line-height: 26px;
    pointer-events: auto;
}

.gc-select[data-gc-select-mode="single"] .gc-select__search {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    line-height: inherit;
}

.gc-select__list {
    display: grid;
    max-height: 256px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gc-select__option {
    display: grid;
    min-height: 32px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--gc-select-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-select__option:hover,
.gc-select__option:focus-visible {
    background: var(--gc-select-option-active);
    outline: 0;
}

.gc-select__option.is-selected {
    background: var(--gc-select-option-selected);
    color: var(--gc-select-text);
    font-weight: 600;
}

.gc-select__option.is-selected:hover,
.gc-select__option.is-selected:focus-visible {
    background: var(--gc-select-option-selected-hover);
}

.gc-select__option.is-disabled,
.gc-select__option.is-disabled:hover {
    background: transparent;
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
}

.gc-select[data-gc-select-mode="multiple"] .gc-select__option {
    grid-template-columns: minmax(0, 1fr) 18px;
}

.gc-select__option i {
    color: var(--gc-select-primary);
    opacity: 0;
    font-size: 12px;
}

.gc-select__option > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.gc-select__option.is-selected i {
    opacity: 1;
}

.gc-select__empty {
    margin: 0;
    padding: 14px 10px;
    color: var(--gc-select-muted);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .gc-select__selector,
    .gc-select__arrow {
        transition: none;
    }
}
