.ui-row {
    position: relative;
    display: flex;
    gap: var(--space-x2);
    align-items: center;
    padding: var(--space) 0;
    font: var(--theme-paragraph-20-medium);
    letter-spacing: var(--theme-paragraph-20-letter-spacing);
    cursor: pointer;
    border-bottom: 1px solid var(--theme-divider-20);
}

.ui-row[disabled] {
    pointer-events: none;
    cursor: not-allowed;
}

.ui-row__leading,
.ui-row__label,
.ui-row__sublabel,
.ui-row__trailing {
    position: relative;
    color: var(--theme-label-color);
}

.ui-row__label {
    display: flex;
    flex: 1;
    flex-direction: column;
    font-weight: var(--theme-font-weight-medium);
    color: var(--theme-text-10);
}

.ui-row__sublabel {
    font-weight: var(--theme-font-weight-light);
    color: var(--theme-text-10);
}

.ui-row__label *,
.ui-row__sublabel * {
    font: inherit;
    letter-spacing: inherit;
}

.ui-row[disabled] .ui-row__leading,
.ui-row[disabled] .ui-row__label,
.ui-row[disabled] .ui-row__sublabel,
.ui-row[disabled] .ui-row__trailing {
    color: var(--theme-text-30);
}

.ui-row[selected]:not([disabled]) .ui-row__leading,
.ui-row[selected]:not([disabled]) .ui-row__label,
.ui-row[selected]:not([disabled]) .ui-row__sublabel,
.ui-row[selected]:not([disabled]) .ui-row__trailing {
    color: var(--theme-emphasis-text);
}

.ui-row:hover,
.ui-row[selected] {
    border-color: transparent;
}

.ui-row::before {
    position: absolute;
    top: 0;
    left: calc(var(--space) * -1);
    display: block;
    width: calc(100% + var(--space-x2));
    height: 100%;
    content: '';
    background-color: var(--theme-emphasis-40);
    border-radius: var(--theme-border-radius-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ui-row[t-variant="warning"]::before {
    background-color: var(--theme-warning-40);
}

.ui-row[t-variant="neutral"]::before {
    background-color: var(--theme-fill-40);
}

.ui-row:not([selected]):active::before {
    background-color: var(--theme-emphasis-30);
}

.ui-row[t-variant="warning"]:active::before {
    background-color: var(--theme-warning-30);
}

.ui-row[t-variant="neutral"]:active::before {
    background-color: var(--theme-fill-30);
}

/* stylelint-disable-next-line no-descending-specificity */
.ui-row:hover::before,
.ui-row[selected]:not([disabled])::before {
    opacity: 1;
}
