﻿/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/* Lalalu homepage: trust + brands spacing fix */
.section-html.section-block:has(.lalalu-trust) {
    margin-bottom: 0 !important;
}

.section-html.section-block:has(.lalalu-trust) .lalalu-trust {
    margin-bottom: 24px !important;
}

.section-html.section-block:has(.brands-showcase) .brands-showcase {
    width: auto !important;
    left: auto !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

@media (max-width: 640px) {
    .section-html.section-block:has(.lalalu-trust) .lalalu-trust {
        margin-bottom: 18px !important;
    }
}

/* Remove white gap before footer under the last homepage constructor section */
body.home .site-main > .section-block:last-child,
body.blog .site-main > .section-block:last-child,
body.front-page .site-main > .section-block:last-child,
.site-content:has(.site-main > .section-block:last-child) .site-main > .section-block:last-child {
    margin-bottom: 0 !important;
}

body.home .site-main > .section-block.section-posts:last-child .post-cards,
body.blog .site-main > .section-block.section-posts:last-child .post-cards,
body.front-page .site-main > .section-block.section-posts:last-child .post-cards,
.site-content:has(.site-main > .section-block.section-posts:last-child) .site-main > .section-block.section-posts:last-child .post-cards {
    margin-bottom: 0 !important;
}

body.home .block-after-site:empty,
body.blog .block-after-site:empty,
body.front-page .block-after-site:empty {
    display: none !important;
}

body.home .block-after-site,
body.blog .block-after-site,
body.front-page .block-after-site {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.home #page,
body.blog #page,
body.front-page #page,
body.lalalu-home-constructor #page,
body.home .site-content,
body.blog .site-content,
body.front-page .site-content,
body.lalalu-home-constructor .site-content,
.site-content:has(.site-main > .section-block:last-child),
body.home .site-content-inner,
body.blog .site-content-inner,
body.front-page .site-content-inner,
body.lalalu-home-constructor .site-content-inner,
body.home .content-area,
body.blog .content-area,
body.front-page .content-area,
body.lalalu-home-constructor .content-area,
body.home .site-main,
body.blog .site-main,
body.front-page .site-main,
body.lalalu-home-constructor .site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.lalalu-home-constructor,
body:has(.site-main > .section-block:last-child) {
    margin-bottom: 0 !important;
}

body.lalalu-home-constructor .site-footer-container,
body:has(.site-main > .section-block:last-child) .site-footer-container {
    position: static !important;
    bottom: auto !important;
}

body.home .site-footer-container,
body.blog .site-footer-container,
body.front-page .site-footer-container,
body.lalalu-home-constructor .site-footer-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    background: #efefef !important;
}

body.home .site-footer,
body.home .site-footer-inner,
body.home .footer-bottom,
body.blog .site-footer,
body.blog .site-footer-inner,
body.blog .footer-bottom,
body.front-page .site-footer,
body.front-page .site-footer-inner,
body.front-page .footer-bottom,
body.lalalu-home-constructor .site-footer,
body.lalalu-home-constructor .site-footer-inner,
body.lalalu-home-constructor .footer-bottom {
    margin-top: 0 !important;
    border-top: 0 !important;
}
