.ts-wrapper,
.ts-wrapper .ts-control,
.ts-wrapper .ts-control input,
.ts-wrapper .ts-dropdown,
.ts-wrapper .ts-dropdown .option {
    font-size: inherit !important;
}

select[data-controller~="tom-select"]:not(.tomselected) {
    visibility: hidden;
    height: 35px;
}

select.tom-select-color + .ts-wrapper .ts-dropdown .option,
.ts-wrapper:has(select.tom-select-color) .ts-dropdown .option {
    display: block;
    width: 100%;
}

select.tom-select-color + .ts-wrapper .ts-dropdown-content,
.ts-wrapper:has(select.tom-select-color) .ts-dropdown-content {
    display: block;
}

select.tom-select-color + .ts-wrapper .ts-dropdown .tom-select-color-option,
.ts-wrapper:has(select.tom-select-color) .ts-dropdown .tom-select-color-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

select.tom-select-color + .ts-wrapper .ts-dropdown .tom-select-color-option__swatch,
.ts-wrapper:has(select.tom-select-color) .ts-dropdown .tom-select-color-option__swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #000;
}

select.tom-select-color + .ts-wrapper .ts-control .item,
.ts-wrapper:has(select.tom-select-color) .ts-control .item {
    display: inline-flex;
    align-items: center;
}

select.tom-select-color + .ts-wrapper .ts-control .tom-select-color-option,
.ts-wrapper:has(select.tom-select-color) .ts-control .tom-select-color-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

select.tom-select-color + .ts-wrapper .ts-control .tom-select-color-option__swatch,
.ts-wrapper:has(select.tom-select-color) .ts-control .tom-select-color-option__swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #000;
}
