.tw-combobox {
    position: relative;
}

.tw-combobox-label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
}

.tw-combobox-field {
    position: relative;
}

.tw-combobox-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(127 29 29 / 0.9);
    background: rgb(9 9 9 / 0.96);
    padding: 0.35rem 0.35rem 0.35rem 0.75rem;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.02) inset;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tw-combobox-shell:focus-within {
    border-color: rgb(185 28 28 / 1);
    box-shadow: 0 0 0 3px rgb(248 113 113 / 0.14);
    background: rgb(9 9 9 / 0.96);
}

.tw-combobox-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #e5e7eb;
    outline: none;
}

.tw-combobox-display {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #e5e7eb;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
}

.tw-combobox-input::placeholder {
    color: #94a3b8;
}

.tw-combobox-display:focus-visible {
    outline: none;
}

.tw-combobox-display.is-placeholder {
    color: #94a3b8;
}

.tw-combobox-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: #94a3b8;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
}

.tw-combobox-button:hover {
    background: transparent;
    color: #f8fafc;
}

.tw-combobox-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 30;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgb(64 64 64 / 1);
    background: rgb(6 6 6 / 0.98);
    box-shadow: 0 25px 60px rgb(0 0 0 / 0.45);
}

.tw-combobox-list {
    max-height: 16rem;
    overflow: auto;
    padding: 0.35rem;
}

.tw-combobox-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.375rem;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-size: 0.95rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.tw-combobox-option:hover,
.tw-combobox-option.is-active {
    background: transparent;
    border-color: rgb(82 82 82 / 0.7);
    color: #f8fafc;
}

.tw-combobox-option.is-selected {
    background: transparent;
    border-color: rgb(248 113 113 / 0.58);
    color: #f8fafc;
    font-weight: 600;
}

.tw-combobox-option-check {
    margin-left: 1rem;
    color: rgb(248 113 113 / 1);
    opacity: 0;
}

.tw-combobox-option.is-selected .tw-combobox-option-check {
    opacity: 1;
}

.tw-combobox-empty {
    padding: 0.9rem 0.8rem;
    font-size: 0.875rem;
    color: #64748b;
}
