/* Теги-радиокнопки в панели настроек витрин (Ресурсы → Иконки, Иллюстрации): размер, стиль, фон.
   Подписи группы («Размер:», «Фон:») нет — название группы в aria-label у .page-settings-panel__item.
   Разметка: .page-settings-panel__item.tag-inputs > label.tag-input > input[type=radio] + span */

/* Рамка фокуса тега и обводка выбранного цвета (иллюстрации) выступают на 4px, а у .search-block
   (icons-search.css) overflow: hidden и поле 2px — у крайнего левого обрезались. flow-root держит тот же BFC */
.search-block:has(.tag-inputs) {
    display: flow-root;
    overflow: visible;
}

.page-settings-panel__item.tag-inputs > *:not(:last-child) {
    margin-right: 8px;
}

.tag-input {
    position: relative;
    display: inline-flex;
}

.tag-input input {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
}

.tag-input span {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    color: var(--k-color-text-neutral-heavy, rgba(21, 21, 29, 0.9608));
    background-color: var(--k-color-shape-faint-neutral-alpha, rgba(21, 24, 50, 0.0588));
    pointer-events: none;
}

.tag-input:hover input:not(:checked):not(:disabled) + span {
    background-color: var(--k-color-shape-faint-neutral-alpha-hover, rgba(21, 23, 42, 0.1137));
}

.tag-input input:checked + span {
    color: var(--k-color-text-on-accent-bold-heavy, rgba(255, 255, 255, 0.88));
    background-color: var(--k-color-shape-bold-accent, #3c3d43);
}

/* Недоступный вариант (у иконок — стиль, которого нет в выбранном размере) */
.tag-input input:disabled {
    cursor: default;
}

.tag-input input:disabled + span {
    color: var(--k-color-text-neutral-faint, rgba(21, 22, 35, 0.3373));
}

.tag-input input:focus-visible {
    outline: 2px solid var(--k-color-line-accent-bold, #46474e);
    outline-offset: 2px;
}
