/* BRW_STULYA_MOBILE_LIST_V48 — mattress-like mobile card, stulya only */

.tile {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.tile .img,
.tile a.img {
    display: block;
    width: 100%;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow: hidden !important;
    background: #fff;
}

.tile .img .masterslider-cat,
.tile .img .ms-container,
.tile .img .ms-view,
.tile .img .ms-slide {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
}

.tile .img img,
.tile a.img > img,
.tile .masterslider-cat img,
.tile .ms-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 260px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.tile .footer.card-info {
    padding-top: 0 !important;
}

.tile .card-info__head {
    padding: 8px 10px 4px !important;
    margin: 0 !important;
}

.tile .card-info__head-wrapp {
    margin: 0 !important;
}

.tile .card-info__name {
    display: block;
    margin: 0 !important;
    line-height: 1.35;
}

.tile .card-info__sub {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 5px 10px 10px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.tile .card-info__description.add-products {
    display: none !important;
}

.tile .card-info__price.add-price {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* V47 renders the authoritative chair price itself.
   Hide the legacy async/best-price badge so only one price remains. */
.tile .price-wrapp,
.tile [data-bestpriceprocess] {
    display: none !important;
}

.brw-stulya-mobile-commerce {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.brw-stulya-mobile-price {
    display: inline-block;
    margin-right: auto;
    white-space: nowrap;
    font-weight: 700;
    line-height: 36px;
}

.brw-stulya-mobile-buy {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    white-space: nowrap;
}

/* BRW_STULYA_SEARCH_LIKE_PAGER_V61_2
 * Local chair pagination visually aligned with the BRW mobile search pager.
 */
.brw-stulya-search-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
    margin: 38px auto 34px;
    padding: 0 12px;
    box-sizing: border-box;
}

.brw-stulya-search-pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 45px;
    width: 45px;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #d9dde2;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none;
}

.brw-stulya-search-pager__item:hover,
.brw-stulya-search-pager__item:focus {
    color: #111;
    text-decoration: none !important;
}

.brw-stulya-search-pager__item--active {
    border-color: #dc1d26;
    background: #dc1d26;
    color: #fff;
    font-weight: 600;
}

.brw-stulya-search-pager__item--active:hover,
.brw-stulya-search-pager__item--active:focus {
    color: #fff;
}

.brw-stulya-search-pager__arrow {
    font-size: 22px;
    font-weight: 300;
}

.brw-stulya-search-pager__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 46px;
    color: #777;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 389px) {
    .brw-stulya-search-pager {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .brw-stulya-search-pager__item {
        flex-basis: 41px;
        width: 41px;
        height: 44px;
    }

    .brw-stulya-search-pager__ellipsis {
        flex-basis: 19px;
        width: 19px;
        height: 44px;
    }
}
