.linked-products {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.linked-product {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    border-radius: 8px;
    max-width: 60px;


    a {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-decoration: none;

        .linked-product-color {
            font-size: 10px;
            font-weight: 600;
            text-align: center;
            line-height: 110%;
            opacity: .5;
        }
    }

    img {
        border: 1px solid var(--Input-Border, var(--bde-palette-color-1-94b748f0-4992-4c94-9f94-d3d378df9e3d));
        aspect-ratio: 1/1;
        border-radius: 6px;
        padding: 2px;
    }

    &.active a img {
        border-color: var(--bde-palette-color-1-94b748f0-4992-4c94-9f94-d3d378df9e3d);
        outline: solid 1px var(--bde-body-text-color);
    }

}

.linked-product.active .linked-product-color {
    opacity: 1;
}

.product-loop .linked-product {
    max-width: 25px;
    height: 25px;

    img {
        padding: 1px;
        border-radius: 3px;
    }

    &.active {
        border-color: var(--bde-palette-color-1-94b748f0-4992-4c94-9f94-d3d378df9e3d);
    }
}

.product-loop .linked-products {
    gap: 3px;
}

.product-loop .linked-product.more a {
    text-decoration: none;
    font-size: 11px;
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bde-links-color);
    border: 1px solid var(--bde-palette-color-1-94b748f0-4992-4c94-9f94-d3d378df9e3d);
    border-radius: 3px;
}

.product-loop .linked-product.more a span {
    opacity: .5;
}

@media (max-width:757px) {
    .linked-product {
        max-width: 50px;
    }
}