/* Streamcio 1.7.3 hotfix · combobox kanałów i ról z wyszukiwarką wewnątrz */
.streamcio-combobox {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 7px 0 6px;
}

.streamcio-combobox-trigger {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 10px 13px;
    border: 1px solid var(--border, rgba(135, 151, 184, .24));
    border-radius: 10px;
    background: rgba(4, 10, 25, .42);
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.streamcio-combobox-trigger:hover {
    border-color: rgba(128, 145, 181, .45);
    background: rgba(7, 14, 34, .62);
}

.streamcio-combobox-trigger:focus-visible,
.streamcio-combobox.is-open .streamcio-combobox-trigger {
    outline: 0;
    border-color: rgba(113, 143, 255, .78);
    box-shadow: 0 0 0 3px rgba(86, 112, 255, .14);
    background: rgba(7, 14, 34, .78);
}

.streamcio-combobox-trigger.is-invalid {
    border-color: rgba(248, 113, 113, .8);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.streamcio-combobox-trigger:disabled {
    opacity: .56;
    cursor: not-allowed;
}

.streamcio-combobox-kind {
    display: grid;
    place-items: center;
    color: #f8fafc;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.streamcio-combobox-value {
    min-width: 0;
    overflow: hidden;
    color: #f8fafc;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.streamcio-combobox-trigger.is-placeholder .streamcio-combobox-value {
    color: var(--muted, #98a5ba);
    font-weight: 600;
}

.streamcio-combobox-chevron {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.streamcio-combobox-chevron::before {
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 6px solid #dbe5f5;
    content: '';
    transition: transform .16s ease;
}

.streamcio-combobox.is-open .streamcio-combobox-chevron::before {
    transform: rotate(180deg);
}

.streamcio-combobox-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.streamcio-combobox-panel {
    position: fixed;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(113, 143, 255, .48);
    border-radius: 12px;
    background: #080f21;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.streamcio-combobox-panel[hidden] {
    display: none !important;
}

.streamcio-combobox-search {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    align-items: center;
    flex: 0 0 auto;
    min-height: 42px;
    border: 1px solid rgba(135, 151, 184, .28);
    border-radius: 9px;
    background: rgba(2, 7, 18, .72);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.streamcio-combobox-search:focus-within {
    border-color: rgba(113, 143, 255, .72);
    box-shadow: 0 0 0 3px rgba(86, 112, 255, .12);
}

.streamcio-combobox-search-icon {
    display: grid;
    place-items: center;
    color: var(--muted, #9ca8bd);
    font-size: 16px;
}

.streamcio-combobox-search-input {
    min-width: 0;
    height: 40px;
    padding: 0 4px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #f8fafc;
    font: inherit;
    font-weight: 600;
}

.streamcio-combobox-search-input::-webkit-search-cancel-button {
    display: none;
}

.streamcio-combobox-search-input::placeholder {
    color: var(--muted, #8e9ab0);
    opacity: .9;
}

.streamcio-combobox-search-clear {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .07);
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.streamcio-combobox-search-clear:hover,
.streamcio-combobox-search-clear:focus-visible {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    outline: 0;
}

.streamcio-combobox-options {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    max-height: 292px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.streamcio-combobox-option {
    display: grid;
    grid-template-columns: 20px 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e6edf8;
    font: inherit;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.streamcio-combobox-option:hover,
.streamcio-combobox-option:focus-visible {
    outline: 0;
    background: rgba(124, 92, 255, .14);
}

.streamcio-combobox-option[aria-selected="true"] {
    background: rgba(124, 92, 255, .2);
    color: #fff;
}

.streamcio-combobox-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.streamcio-combobox-option-marker {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(145, 126, 255, .55);
    border-radius: 50%;
    color: #bdaeff;
    font-size: 11px;
    line-height: 1;
}

.streamcio-combobox-panel.is-multiple .streamcio-combobox-option-marker {
    border-radius: 5px;
}

.streamcio-combobox-option-kind {
    color: #cad5e6;
    font-weight: 900;
    text-align: center;
}

.streamcio-combobox-option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.streamcio-combobox-empty {
    flex: 0 0 auto;
    padding: 11px 10px 9px;
    color: #ffbd75;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

html[data-theme="light"] .streamcio-combobox-trigger,
body.light-theme .streamcio-combobox-trigger {
    background: rgba(255, 255, 255, .84);
}

html[data-theme="light"] .streamcio-combobox-value,
html[data-theme="light"] .streamcio-combobox-kind,
body.light-theme .streamcio-combobox-value,
body.light-theme .streamcio-combobox-kind {
    color: #182033;
}

html[data-theme="light"] .streamcio-combobox-panel,
body.light-theme .streamcio-combobox-panel {
    border-color: rgba(94, 75, 215, .28);
    background: #fff;
    box-shadow: 0 18px 45px rgba(37, 44, 68, .18);
}

html[data-theme="light"] .streamcio-combobox-search,
body.light-theme .streamcio-combobox-search {
    background: #f7f8fc;
}

html[data-theme="light"] .streamcio-combobox-search-input,
html[data-theme="light"] .streamcio-combobox-option,
body.light-theme .streamcio-combobox-search-input,
body.light-theme .streamcio-combobox-option {
    color: #182033;
}

@media (max-width: 640px) {
    .streamcio-combobox-trigger {
        min-height: 50px;
        font-size: 16px;
    }

    .streamcio-combobox-search-input {
        font-size: 16px;
    }

    .streamcio-combobox-panel {
        max-width: calc(100vw - 20px);
    }
}

.streamcio-combobox-option[hidden],
.streamcio-combobox-search-clear[hidden],
.streamcio-combobox-empty[hidden] {
    display: none !important;
}
