/* Keep the category grid decorations outside the browsing-history carousel. */
.page-before-footer .block-viewed-products-grid {
position: relative;
}
.page-before-footer .block-viewed-products-grid .block-title {
display: flex;
align-items: center;
min-height: 44px;
margin: 0 0 10px;
padding-inline: 4px 96px;
background: none;
text-align: start;
}
.page-before-footer .block-viewed-products-grid .block-title strong {
margin: 0;
padding: 0;
background: transparent;
color: var(--sc-ink);
font-size: 22px;
line-height: 1.25;
text-transform: none;
}
.page-before-footer .block-viewed-products-grid .block-content,
.page-before-footer .block-viewed-products-grid .products-grid {
position: static;
}
.catalog-category-view .block-viewed-products-grid .products-grid {
margin: 0;
padding: 0;
}
.page-before-footer .block-viewed-products-grid .block-title::before,
.page-before-footer .block-viewed-products-grid .block-title::after,
.catalog-category-view .block-viewed-products-grid .products-grid::before,
.catalog-category-view .block-viewed-products-grid .products-grid::after,
.page-before-footer .block-viewed-products-grid .product-item-info::before,
.page-before-footer .block-viewed-products-grid .product-item-details::before {
content: none;
}
.page-before-footer .block-viewed-products-grid .products-grid .product-item {
box-sizing: border-box;
margin-block: 0;
margin-inline-start: 0;
padding: 0 4px;
height: auto;
}
.page-before-footer .block-viewed-products-grid .products-grid .product-item-info {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 1px solid var(--sc-line);
border-radius: 8px;
box-shadow: none;
transform: none;
}
.page-before-footer .block-viewed-products-grid .product-item-photo {
border: 0;
}
.page-before-footer .block-viewed-products-grid .product-image-wrapper {
aspect-ratio: 1;
background: #f7f7f7;
}
.page-before-footer .block-viewed-products-grid .product-image-photo {
height: 100% !important; /* The theme forces auto on the old portrait thumbnails. */
object-fit: contain;
transform: none;
}
.page-before-footer .block-viewed-products-grid .product-item-details {
padding: 10px 12px 12px;
}
.page-before-footer .block-viewed-products-grid .product-item-name {
min-height: 0;
margin: 0 0 8px;
}
.page-before-footer .block-viewed-products-grid .product-item-name a {
color: var(--sc-ink);
font-size: 15px;
line-height: 1.35;
overflow-wrap: anywhere;
}
.page-before-footer .block-viewed-products-grid .price-box {
padding: 0;
margin: auto 0 0;
min-height: 0;
}
.page-before-footer .block-viewed-products-grid .swiper-button-prev,
.page-before-footer .block-viewed-products-grid .swiper-button-next {
inset: 0 4px auto auto;
width: 44px;
height: 44px;
margin: 0;
border: 1px solid var(--sc-line);
border-radius: 6px;
box-sizing: border-box;
background-color: #fff;
background-size: 10px 16px;
}
.page-before-footer .block-viewed-products-grid .swiper-button-prev {
right: 52px;
}
