:host {
    display: block;
}

.ecommerce-filter-row {
    cursor: pointer;
}

.ecommerce-filter-row:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--p-primary-color) 48%, transparent);
    outline-offset: -2px;
}

.ecommerce-filter-row--active > td {
    background: color-mix(in srgb, var(--p-primary-color) 9%, var(--p-content-background));
    box-shadow:
        inset 0 1px 0 var(--p-primary-color),
        inset 0 -1px 0 var(--p-primary-color);
}

.ecommerce-filter-row--active > td:first-child {
    box-shadow:
        inset 1px 0 0 var(--p-primary-color),
        inset 0 1px 0 var(--p-primary-color),
        inset 0 -1px 0 var(--p-primary-color);
}

.ecommerce-filter-row--active > td:last-child {
    box-shadow:
        inset -1px 0 0 var(--p-primary-color),
        inset 0 1px 0 var(--p-primary-color),
        inset 0 -1px 0 var(--p-primary-color);
}

.ecommerce-source-cell {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.ecommerce-source-cell__favicon {
    border-radius: 0.18rem;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
}

.ecommerce-source-cell__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecommerce-source-cell__link {
    color: var(--p-text-muted-color);
    flex-shrink: 0;
    margin-left: -0.35rem;
    opacity: 0;
    overflow: hidden;
    transition:
        margin-left 160ms ease,
        opacity 160ms ease,
        width 160ms ease,
        color 160ms ease;
    width: 0;
}

.ecommerce-filter-row:hover .ecommerce-source-cell__link,
.ecommerce-source-cell__link:focus-visible {
    margin-left: 0;
    opacity: 1;
    width: 0.75rem;
}

.ecommerce-source-cell__link:hover {
    color: var(--p-text-color);
}

.ecommerce-source-cell__link-icon {
    font-size: 10px;
}
