/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Fixes to the shoptimizer theme and plugisn
Template: shoptimizer
Version: 2.5
*/


/* thank you */

body.woocommerce-order-received .entry-content:not(.wc-tab) p.woocommerce-thankyou-order-received {
    color: white;
    background: #74b8a9;
}


/* Make header logo width 35px */

@media (max-width: 992px) {
    body.theme-shoptimizer .site-header .custom-logo-link img,
    body.wp-custom-logo .site-header .custom-logo-link img {
        height: 35px !important;
    }
}

@media (max-width: 992px) {
    /* mobile menu fixes */
    body .main-navigation ul.menu li.menu-item-has-children.full-width>.sub-menu-wrapper li.menu-item-has-children>a,
    body .main-navigation ul.menu li.menu-item-has-children.full-width>.sub-menu-wrapper li.heading>a {
        margin-top: 0;
        opacity: .6;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 1px;
        line-height: 1.6;
        font-family: IBM Plex Sans;
        text-transform: uppercase;
    }
    .mobile-extra ul,
    .mobile-extra p {
        padding-left: 10px;
    }
    .menu-primary-menu-container {
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom: 1px solid #eee;
    }
    .mobile-extra h4 {
        padding-top: 12px;
    }
    /* fix issue with price covered by photo */
    body .site-main .elementor-element.elementor-products-grid .product-label {
        z-index: 2;
    }
    /* fix issue with margin on home page product list */
    body .site-main .elementor-element.elementor-products-grid ul.products {
        width: calc(100% + 30px);
        margin-left: -15px;
    }
    .elementor-element.elementor-products-grid ul.products li.product {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0px;
        padding-bottom: 30px;
    }
    .elementor-element.elementor-products-grid .shoptimizer-sorting {
        margin-bottom: 30px;
    }
}


/* blog cateogries should be hierarchical */

#secondary .widget ul.children {
    margin-bottom: 0px;
    margin-top: 0px;
}

#secondary .widget ul.children li.cat-item {
    margin-left: 20px;
    margin-bottom: 0px;
}

#secondary .widget.widget_categories ul li.cat-item {
    margin-top: 0.2em;
}

#secondary .widget.widget_categories>ul>li.cat-item {
    margin-bottom: 0.5em;
}

.widget ul,
body ul.products li.product.product-category img {
    margin-bottom: 0;
}


/* hide tabs buttons */

body ul.tabs.wc-tabs {
    display: none;
}

body div.wc-tab {
    display: block !important;
}

#tab-additional_information {
    display: none !important;
}


/* cookie notiece fixes */

.cookie-notice-container {
    text-align: left;
}

.cookie-notice-container h2,
a {
    color: white;
}

.cookie-notice-container a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.cn-buttons-container {
    width: 100%;
    text-align: right;
}

.cookie-notice-container #cn-accept-cookie {
    background-color: #fff;
    color: black;
    font-size: 14px;
    font-weight: 400;
    line-height: 40px;
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
    text-decoration: none;
}

.cn-close-icon {
    position: absolute;
    right: 15px;
    top: 0;
    margin-top: 10px;
}


/* colors of checkout button pw giftcards */

form.checkout_coupon button[type=submit],
#pwgc-redeem-gift-card-form input[type=submit] {
    color: #111;
    background-color: #f8f8f8;
    font-weight: 400;
}

form.checkout_coupon button[type=submit]:hover,
#pwgc-redeem-gift-card-form input[type=submit]:hover {
    background-color: #111;
    color: #fff;
}


/* Make Product h1 & h2 smaller */

@media (max-width: 767px) {
    .single-product .site-content h1 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .site .related-wrapper>section>h2 {
        padding-top: 25px;
        font-size: 22px;
    }
}


/* unknown */

section.matching {
    margin-bottom: 30px;
}


/* Adjusted style after moving short down and  styles to product addons */


/* remove border and margin of stock amount*/

.content-area p.stock {
    margin-top: 0px;
    margin-bottom: 0;
    padding-top: 0px;
    border-top: none;
    margin-bottom: 1em;
}


/* fixes to Product addons */

.wcpa_form_item {
    margin-bottom: 1em;
}

.wcpa_form_item>label {
    font-weight: 600;
}

.wcpa_form_outer {
    margin: 0 0 0em;
    font-size: 15px;
}

.wcpa_form_outer .wcpa_form_item .wcpa_checkbox label {
    z-index: inherit;
}


/* fix for the broken grid-layout */

@media (max-width: 770px) {
    #commercegurus-pdp-gallery.cg-grid-layout {
        margin-left: 0px!important;
        margin-right: 0px!important;
    }
}

#commercegurus-pdp-gallery.cg-grid-layout {
    margin-left: 0px!important;
    margin-right: 0px!important;
}


.pwp-omnibus-price__info {
	clear:both;
}

.woocommerce-table--order-downloads td {
    padding: 10px 20px 10px 0;
    border-bottom: 1px solid #eee;
}

/* addd styles aug 6 2025*/

body.tax-product_cat header.woocommerce-products-header {
    display: none;
}

body .shoptimizer-mini-cart-wrap .cart-drawer-below {
    font-weight: bold;
    color: #e8a756;
    font-size: 14px;
}

body.single-product 
div.woocommerce.columns-4.matching-items:empty:after
{
	content:"✕ Niestety nie mamy już dostępnych pasujących produktów."
}

body.single-product 
div.woocommerce.columns-4.matching-items:empty ~
.bottom-buttons .browse-all {
	display: none
}

footer h5 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

footer .wp-block-group ul {
  	margin-bottom: 20px;
}

/* search mobile */
@media (max-width: 992px) {
    .m-search-bh .site-search, .m-search-toggled .site-search {
        height: 45px;
        padding-bottom: 0;
    }
    .m-search-bh .site-header .col-full {
        margin-bottom: 45px;
    }
}

/* smart coupons */
#coupons_list {
	margin-bottom: 2em;
}
body .shoptimizer-mini-cart-wrap .widget_shopping_cart_content .cart-drawer-below {
	text-align:left;

}

/****************************/
/* guttenberg buttons  & home */

.wp-block-button a {
   font-size: 17px;
   padding: 12px 24px;
   min-width: 150px;
   border-radius: 4px;
   font-weight: 600;
   border-bottom: 0;
   margin: 20px auto; 
}
.wp-block-button__link {
	background-color: #74b8a9;
	border-radius: 4px;
	font-size:1em;
	font-weight: 600;
}
/* prevent your theme 'link' settings from overriding button text color */

.wp-block-button a:hover {
    color: white;    
		filter: hue-rotate(0deg) saturate(1.5);
}
/* fix blog listing on home */
ul.wp-block-latest-posts.wp-block-latest-posts__list {
    margin: 0;
}

.alignfull {
	width:100vw;
	margin-left: calc(50% - 50vw);
}
.page-template-template-fullwidth-no-heading .alignwide {
  width: calc(100% + 160px);
	margin-left: calc(0% - 80px);
}


.page-template-template-fullwidth-no-heading .site-content h2 {
    margin-bottom: 1em;
}
