#brand-sheets-entities {
    display: flex;
    flex-wrap: wrap;
}

.brand-sheets-entities-list.table {
    overflow-x: auto;
    /*
    margin: 0;
    */
}

#brand-sheets-entities .thead {
    display: none;
}

#brand-sheets-entities.thumb .product .name, #brand-sheets-entities.thumb .product .name a {
    text-align: left !important;
}

#brand-sheets-entities.thumb .product .description, #brand-sheets-entities.thumb .product .description a {
    text-align: left !important;
}

#brand-sheets-entities .request-button-wrapper .product-link {
    display: none;
}

#brand-sheets-entities.table .request-button-wrapper .product-link {
    display: block;
}

#brand-sheets-entities.table .thead {
    display: table-row;
}

#brand-sheets-entities.table {
    display: table;
    min-width: 991px;
}

#brand-sheets-entities.table > li {
    display: table-row;
}

#brand-sheets-entities.table > li > div {
    display: table-cell;
}

#brand-sheets-entities.table > li > div {
    padding: 5px 8px;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #888;
    font-size: inherit;
}

#brand-sheets-entities.table > li:nth-child(odd) > div {
    background: #eee;
}

#brand-sheets-entities.table > li.thead > div {
    padding: 10px 8px;
    background: #eee;
    text-align: center;
    border-right: 1px solid #888;
    border-bottom: 1px solid #888;
    font-size: inherit;
    font-weight: bold;
}

#brand-sheets-entities.table > li > div.image {
    width: 100px;
}

#brand-sheets-entities.table > li > div.image a {
    cursor: pointer;
}

#brand-sheets-entities.table > li > div.request-button-wrapper {
    vertical-align: middle;
}

#brand-sheets-entities {
    width: 100%;
}

#brand-sheets-entities.table {
    border: 1px solid #888;
    border-right: none;
}

#brand-sheets-entities.table .request-button-wrapper .button {
    display: block;
    border: 1px solid #ddd;
    white-space: nowrap;
}

#brand-sheets-entities.table .request-button-wrapper .request-button {
    padding: 0px 10px 10px 10px;
    background: #e5efe5;
}

#brand-sheets-entities.table .request-button-wrapper .request-button:hover {
    background: #75ba6d;
    color: #fff;
}

#brand-sheets-entities.table .request-button-wrapper .product-link {
    text-align: center;
    padding: 5px 15px;
    background: #fed151;
}

#brand-sheets-entities.table .request-button-wrapper .product-link:hover {
    background: #75ba6d;
    color: #fff;
}

.callback-form-image-container {
    max-width: 100px;
    min-width: 100px;
}

#brand-sheets-entities .button:active, #brand-sheets-entities .button:focus {
    color: inherit;
}

#brand-sheets-entities .product img {
    margin: 0 auto;
    max-height: 400px;
}

.request-button i {
    height: 35px;
    width: 35px;
}

.request-button i:before {
    font-size: 28px;
    line-height: 60px;
}

.request-button span {
    line-height: 35px;
}

#sheet-entities-request-form .callback-form-data-container {
    padding-left: 15px;
}

#sheet-entities-request-form .callback-form-content_cms {
    padding-top: 15px;
}

#sheet-entities-request-form .actions-toolbar {
    margin-bottom: 25px;
}

#sheets-entities-request-form .g-recaptcha {
    margin: 15px 0;
}

#brand-sheets-entities .product .name, #brand-sheets-entities .product .name a {
    font-weight: 600;
    color: #514e46;
    padding-top: 15px;
}

#brand-sheets-entities .product .name a:hover, #brand-sheets-entities .product .name a:hover {
    color: #ffc107;
}

#brand-sheets-entities.thumb .product .short_description, #brand-sheets-entities.thumb .product .description {
    /* спрятать текст если у более N строк */
    overflow: hidden;
    /* для установки '…' в абсолютную позицию */
    position: relative;
    /* используйте это значение для расчёта высоты блока */
    line-height: 1.2em;
    /* max-height = line-height (1.2) * число строк (3) */
    max-height: 3.6em;
    /* исправлиление проблемы когда последнее слово не соединяется с правой стороны */
    text-align: justify;
    /* место для многоточия '…' */
    padding-right: 1em;
}

/* создаём многоточие … */
#brand-sheets-entities.thumb .product .short_description:before, #brand-sheets-entities.thumb .product .description:before {
    /* многоточие в конце */
    content: '…';
    /* абсолютное позиционирование */
    position: absolute;
    /* установить позицию в правый нижний угол блока */
    right: 0;
    bottom: 0;
}

/* спрятать многоточие … если у нас есть текст, который меньше или равен количеству максимальный строк */
#brand-sheets-entities.thumb .product .short_description:after, #brand-sheets-entities.thumb .product .description:after {
    content: "";
    position: absolute;
    /* установить позицию в правый нижний угол блока */
    right: 0;
    /* установить width и height */
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
    /* цвет фона перед блоком */
    background: white;
}

#brand-sheets-entities .product .request-button-wrapper {
    padding-top: 10px;
}

#brand-sheets-entities.thumb .request-button {
    font-size: 13px !important;
}

#brand-sheets-entities.thumb .request-button i {
    width: 18px;
    height: 16px;
}

#brand-sheets-entities.thumb .request-button i:before {
    font-size: 18px;
    line-height: 22px;
}

#brand-sheets-entities .product {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: 20px;
    width: 50%;
    padding: 15px;

}

.brand-sheets-entities-list, .brand-sheets-entities-list

@media (min-width: 430px) {
    #brand-sheets-entities.items-per-row-8 .product {
        border: 1px solid #e7e7e7 !important;
        margin-right: -1px;
        margin-bottom: -1px;
        width: 50%;
        padding: 15px;
    }
}

@media (min-width: 560px) {
    #brand-sheets-entities .product {
        border: 1px solid #e7e7e7;
        margin-right: -1px;
        margin-bottom: -1px;
        width: 25%;
    }

    #brand-sheets-entities.items-per-row-4 .product {
        width: 50%;
    }

    #brand-sheets-entities.items-per-row-5 .product {
        width: 50%;
    }

    #brand-sheets-entities.items-per-row-6 .product {
        width: 33.3333333333333%;
    }

    #brand-sheets-entities.items-per-row-7 .product {
        width: 33.3333333333333%;
    }

    #brand-sheets-entities.items-per-row-8 .product {
        width: 33.3333333333333%;
    }

}

@media (min-width: 992px) {
    #brand-sheets-entities.items-per-row-5 .product {
        width: 33.3333333333333%;
    }

    #brand-sheets-entities.items-per-row-6 .product {
        width: 25%;
    }

    #brand-sheets-entities.items-per-row-8 .product {
        width: 20%;
    }

    #brand-sheets-entities.table-thumb {
        border: 1px solid #888;
        border-right: none;
    }

    #brand-sheets-entities.table-thumb .request-button-wrapper .product-link {
        display: block;
    }

    #brand-sheets-entities.table-thumb .request-button-wrapper .button {
        display: block;
        border: 1px solid #ddd;
        white-space: nowrap;
    }

    #brand-sheets-entities.table-thumb .request-button-wrapper .request-button {
        padding: 0px 10px 10px 10px;
        background: #e5efe5;
    }

    #brand-sheets-entities.table-thumb .request-button-wrapper .request-button:hover {
        background: #75ba6d;
        color: #fff;
    }

    #brand-sheets-entities.table-thumb .request-button-wrapper .product-link {
        text-align: center;
        padding: 5px 15px;
        background: #fed151;
    }

    #brand-sheets-entities.table-thumb .request-button-wrapper .product-link:hover {
        background: #75ba6d;
        color: #fff;
    }

    #brand-sheets-entities.table-thumb .thead {
        display: table-row;
    }

    #brand-sheets-entities.table-thumb {
        display: table;
    }

    #brand-sheets-entities.table-thumb > li {
        display: table-row;
    }

    #brand-sheets-entities.table-thumb > li > div {
        display: table-cell;
    }

    #brand-sheets-entities.table-thumb > li > div {
        padding: 5px 8px;
        border-bottom: 1px solid #ccc;
        border-right: 1px solid #888;
        font-size: inherit;
    }

    #brand-sheets-entities.table-thumb > li:nth-child(odd) > div {
        background: #eee;
    }

    #brand-sheets-entities.table-thumb > li.thead > div {
        padding: 10px 8px;
        background: #eee;
        text-align: center;
        border-right: 1px solid #888;
        border-bottom: 1px solid #888;
        font-size: inherit;
        font-weight: bold;
    }

    #brand-sheets-entities.table-thumb > li > div.image {
        width: 100px;
    }

    #brand-sheets-entities.table-thumb > li > div.request-button-wrapper {
        vertical-align: middle;
    }


}

@media (min-width: 1200px) {
    body.catalog-category-entities #maincontent.container {
        width: 1170px;
    }

    #brand-sheets-entities.items-per-row-4 .product {
        width: 33.3333333333333%;
    }

    #brand-sheets-entities.items-per-row-5 .product {
        width: 25%;
    }

    #brand-sheets-entities.items-per-row-6 .product {
        width: 20%;
    }

    #brand-sheets-entities.items-per-row-7 .product {
        width: 20%;
    }

    #brand-sheets-entities.items-per-row-8 .product {
        width: 16.666666666666664%;
    }
}

@media (min-width: 1610px) {
    body.catalog-category-entities #maincontent.container {
        width: 1550px;
    }

    #brand-sheets-entities.items-per-row-4 .product {
        width: 25%;
    }

    #brand-sheets-entities.items-per-row-5 .product {
        width: 20%;
    }

    #brand-sheets-entities.items-per-row-6 .product {
        width: 16.666666666666664%;
    }

    #brand-sheets-entities.items-per-row-7 .product {
        width: 14.2857142%;
    }

    #brand-sheets-entities.items-per-row-8 .product {
        width: 12.5%;
    }
}

@media (max-width: 991px) {
    #brand-sheets-entities.table-thumb .product .name, #brand-sheets-entities.table-thumb .product .name a {
        text-align: left !important;
    }

    #brand-sheets-entities.table-thumb .product .description, #brand-sheets-entities.table-thumb .product .description a {
        text-align: left !important;
    }

    #brand-sheets-entities.table-thumb .request-button {
        font-size: 13px !important;
    }

    #brand-sheets-entities.table-thumb .request-button i {
        width: 18px;
        height: 16px;
    }

    #brand-sheets-entities.table-thumb .request-button i:before {
        font-size: 18px;
        line-height: 22px;
    }

    #brand-sheets-entities.table-thumb .product .description, #brand-sheets-entities.table-thumb .product .short_description {
        /* спрятать текст если у более N строк */
        overflow: hidden;
        /* для установки '…' в абсолютную позицию */
        position: relative;
        /* используйте это значение для расчёта высоты блока */
        line-height: 1.2em;
        /* max-height = line-height (1.2) * число строк (3) */
        max-height: 3.6em;
        /* исправлиление проблемы когда последнее слово не соединяется с правой стороны */
        text-align: justify;
        /* место для многоточия '…' */
        padding-right: 1em;
    }

    /* создаём многоточие … */
    #brand-sheets-entities.table-thumb .product .short_description:before {
        /* многоточие в конце */
        content: '…';
        /* абсолютное позиционирование */
        position: absolute;
        /* установить позицию в правый нижний угол блока */
        right: 0;
        bottom: 0;
    }

    /* спрятать многоточие … если у нас есть текст, который меньше или равен количеству максимальный строк */
    #brand-sheets-entities.table-thumb .product .short_description:after {
        content: "";
        position: absolute;
        /* установить позицию в правый нижний угол блока */
        right: 0;
        /* установить width и height */
        width: 1em;
        height: 1em;
        margin-top: 0.2em;
        /* цвет фона перед блоком */
        background: white;
    }

}
