/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* Old styles */

a {
    text-decoration: none !important;
    transition: all .3s ease;
}

.woocommerce .product div.entry-summary .price>ins {
    color: green;
    font-weight: 900;
}

/* === Custom Price Display (Było / Oszczędź) === */

.woocommerce .product div.entry-summary .price .price-custom,
.price .price-custom,
.price-custom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 6px 12px !important;
}

.products_wrapper .price .price-custom {
    justify-content: center !important;
}

/* Loop/listing price sizes (smaller than single product) */
.products_wrapper .price .price-custom__current {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.products_wrapper .price .woocommerce-Price-amount {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.products_wrapper .price .price-custom__old,
.products_wrapper .price .price-custom__old .woocommerce-Price-amount {
    font-size: 12px !important;
}

.products_wrapper .price .price-custom__savings,
.products_wrapper .price .price-custom__savings .woocommerce-Price-amount {
    font-size: 12px !important;
}

.products_wrapper .mfn-woo-product-title {
    margin-bottom: 14px !important;
}

.price .price-custom__current,
.price-custom .price-custom__current {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #24317C !important;
    order: 1 !important;
    width: 100% !important;
}

.price .price-custom__old,
.price-custom .price-custom__old {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #999 !important;
    order: 2 !important;
    text-decoration: none !important;
}

.price .price-custom__old del,
.price-custom .price-custom__old del {
    text-decoration: none !important;
}

.price .price-custom__old .woocommerce-Price-amount,
.price-custom .price-custom__old .woocommerce-Price-amount {
    text-decoration: line-through !important;
    font-weight: 400 !important;
    color: #999 !important;
    font-size: 14px !important;
}

.price .price-custom__savings,
.price-custom .price-custom__savings {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2E9E3E !important;
    order: 3 !important;
}

.price .price-custom__savings .woocommerce-Price-amount,
.price-custom .price-custom__savings .woocommerce-Price-amount {
    font-weight: 600 !important;
    color: #2E9E3E !important;
    font-size: 14px !important;
}

/* Hide default del/ins when custom price is active */
.price .price-custom > del,
.price .price-custom > ins,
.price .price-custom > .screen-reader-text,
.price-custom > del,
.price-custom > ins,
.price-custom > .screen-reader-text {
    display: none !important;
}

.woocommerce .star-rating span,
.woocommerce .comment-form-rating p.stars a:before {
    color: #5CC9F5;
}

#comment {
    color: #777c80;
}

#mfn-footer-template h6.title {
    font-weight: 800;
}

table th,
table td {
    text-align: left;
}

table tr>td:first-child {
    font-weight: 700;
}

.woocommerce .product div.entry-summary .price>del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.woocommerce .product.style-default .entry-summary .share-simple-wrapper {
    display: none;
}

.woocommerce .product div.entry-summary h1.product_title {
    padding-top: 50px !important;
}

.payment-methods-list>li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.g-recaptcha-wrapper {
    margin-bottom: 15px;
}

.recaptcha-wrap {
    width: 100%;
    overflow: hidden;
}

.recaptcha-wrap .g-recaptcha {
    transform-origin: 0 0;
    display: block;
}

.grecaptcha-badge {
    box-shadow: none !important;
}

input:not([type="submit"]),
input:not([type="submit"]):focus::placeholder,
textarea,
textarea:focus::placeholder,
option,
select,
select:focus,
option:hover,
option:checked {
    color: #4C4D52 !important;
}

.wpcf7-list-item {
    margin-left: 0;
}

.elementor-9 .elementor-element.elementor-element-9d712a2.elementor-wc-products ul.products li.product span.onsale,
.image_frame span.onsale,
.woocommerce span.onsale,
.shop_slider .shop_slider_ul .item_wrapper span.onsale {
    background-color: #FB7B7B !important;
    padding: 5px 8px;
}

/* === New Google Pay Logo === */

label[for="radio-control-wc-payment-method-options-p24-google-pay"] img {
    max-height: 25px !important;
}

/* === New Google Pay Logo === */

@media only screen and (max-width: 1239px) {
    a[href^=tel]:not(.action_button):not(.button) {
        color: #5CC9F5;
    }
}

@media only screen and (max-width: 767px) {

    .content_wrapper .section_wrapper,
    .container,
    .four.columns .widget-area {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (min-width: 302px) {
    .recaptcha-wrap .g-recaptcha {
        transform: scale(1);
        width: 302px !important;
        height: 78px !important;
    }
}

@media (max-width: 300px) {
    .recaptcha-wrap .g-recaptcha {
        transform: scale(0.99);
        width: 298px !important;
        height: 77px !important;
    }
}

@media (max-width: 280px) {
    .recaptcha-wrap .g-recaptcha {
        transform: scale(0.93);
        width: 281px !important;
        height: 73px !important;
    }
}

@media (max-width: 240px) {
    .recaptcha-wrap .g-recaptcha {
        transform: scale(0.79);
        width: 239px !important;
        height: 62px !important;
    }
}

/* Old styles END */

.home {
    #Header_wrapper {
        display: none;
    }
    #Content {
        padding-top: 0 !important;
    }
}

@media only screen and (max-width: 767px) {

    .content_wrapper .section_wrapper,
    .container,
    .four.columns .widget-area {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-product-details__short-description {
        font-size: 15px !important;
    }

    .product_title.entry-title {
        font-size: 28px !important;
        line-height: 31px !important;
    }
}

.hero-video {
    height: 100%;
}

.hero-video video {
    position: absolute;
}

.home .content_wrapper .section_wrapper,
.home .container,
.home .four.columns .widget-area,
.single-product .content_wrapper .section_wrapper,
.single-product .container,
.single-product .four.columns .widget-area {
    max-width: 100% !important;
}


/* Single Product Styles */

.product_wrapper {
    max-width: 1440px;
    margin: 0 auto;
    .mcb-column-inner {
        margin: 0 16px 20px;
    }
}

.jq-tabs.tabs_wrapper {
    max-width: 1140px !important;
    margin: 0 auto;
}

.related.products {
    max-width: 1172px !important;
    margin: 0 auto;
    padding: 0 16px;
}


/* Payment Methods Footer */
.payment-methods-list {
    .uid-ru0cw3hf, .uid-i3zzakz8 {
        img {
            width: 67px !important;
        }
    }
}

.elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
}

/* Omnibus – Lowest price from last 30 days */
.woocommerce p.omnibus-lowest-price,
p.omnibus-lowest-price {
    font-size: 12px !important;
    color: #777 !important;
    margin: 4px 0 10px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

.woocommerce p.omnibus-lowest-price .woocommerce-Price-amount,
p.omnibus-lowest-price .woocommerce-Price-amount,
p.omnibus-lowest-price bdi {
    font-weight: 700 !important;
    color: #555 !important;
    font-size: 12px !important;
}

.woocommerce p.omnibus-lowest-price--loop,
p.omnibus-lowest-price--loop {
    font-size: 11px !important;
    margin: 2px 0 6px !important;
}

.woocommerce p.omnibus-lowest-price--loop .woocommerce-Price-amount,
p.omnibus-lowest-price--loop .woocommerce-Price-amount,
p.omnibus-lowest-price--loop bdi {
    font-size: 11px !important;
}

/* Search results – price sizing (listing, not single-product) */

/* Regular price (no sale) */
.search-results .price > .woocommerce-Price-amount,
.search-results .price > span > .woocommerce-Price-amount {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #24317C !important;
}

/* Sale price (custom format) */
.search-results .price-custom .price-custom__current,
.search-results .price .price-custom__current {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.search-results .price-custom .price-custom__old,
.search-results .price-custom .price-custom__old .woocommerce-Price-amount,
.search-results .price .price-custom__old,
.search-results .price .price-custom__old .woocommerce-Price-amount {
    font-size: 12px !important;
}

.search-results .price-custom .price-custom__savings,
.search-results .price-custom .price-custom__savings .woocommerce-Price-amount,
.search-results .price .price-custom__savings,
.search-results .price .price-custom__savings .woocommerce-Price-amount {
    font-size: 12px !important;
}

/* Overflow auto for parent of certificate table */
*:has(> .tabela_certyfikaty) {
    overflow: auto;
}

.pswp__bg {
    background: #fff !important;
}

/* Mobile sidebar menu – add bottom padding so sticky footer doesn't cover last items */
@media (max-width: 768px) {
    .mfn-header-tmpl-menu-sidebar-wrapper {
        padding-bottom: 70px !important;
    }
}

/* Search results – mobile fixes */
@media (max-width: 768px) {
    .search-results .post-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-results .section_wrapper,
    .search-results .content_wrapper .section_wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}