/*
 Theme Name:   Clustermart
 Description:  Clustermart Theme
 Author:       Cluster CIS
 Author URI:   https://cluster.gr
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  clustermart
*/
/**** CART ****/
body.woocommerce-cart table.woocommerce-cart-form__contents th,
body.woocommerce-cart table.woocommerce-cart-form__contents td {
	text-align: center;
}
body.woocommerce-cart table.shop_table td div.quantity {
	float: unset;
	display: block;
}
@media (min-width: 1024px) {
	body.woocommerce-cart .woocommerce {
		padding: 0 120px;
	}
	body.woocommerce-cart .cart-collaterals {
		display: flex;
		justify-content: end;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals {
		width: 28%;
	}

	body.woocommerce-cart table.woocommerce-cart-form__contents td.actions {
		border-bottom: unset;
	}
	body.woocommerce-cart table.woocommerce-cart-form__contents td.actions button {
		width: 100%;
		background-color: var(--btn-accented-bgcolor);
		color: white;
	}

	body.woocommerce-cart table.woocommerce-cart-form__contents td.actions button:hover {
		background-color: black;
	}
}

/**** END CART ****/
/**** CHECKOUT ****/
/*** Checkout ***/

div#payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods div.payment_box,
div.checkout-order-review div.wd-table-wrapper {
    border: 1px solid #cacaca;
}

/** Hide system billing info **/
body.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-billing-fields {
    display: none;
}

#clr-checkout-billing-info > table,
#clr-checkout-shipping-info > table {
    line-height: 1;
    margin-bottom: 0;
}

#clr-checkout-billing-info {
    background: #f6f6f6;
    border-radius: 8px;
    margin-top: -40px;
    padding: 0 10px;
}

#clr-checkout-shipping-info {
    background: #f6f6f6;
    border-radius: 8px;
    padding: 0 10px;
}
body.woocommerce-checkout .woocommerce-additional-fields #order_comments {
    border-radius: 8px;
}
body.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 16px;
}

body.woocommerce-checkout .wd-shipping-details {
    margin-bottom: 15px;
}
/** END Hide system billing info **/

/** Hide shipping **/
div.woocommerce-shipping-fields h3#ship-to-different-address {
    display: none;
}

div.woocommerce-shipping-fields > div > div:not(#thwma-shipping-alt_field) {
    display: none !important;
}

div#payment.woocommerce-checkout-payment ul.wc_payment_methods.payment_methods.methods div.payment_box::before {
    border: solid #cacaca;
    border-width: 1px 0 0 1px;
    top: -6px;
} 

div.checkout-order-review::before,
div.checkout-order-review::after {
    display: none;
}

div.checkout-order-review {
    border-radius: 8px;
}

:is(.checkout_coupon,.login.hidden-form) {
    max-width: unset; 
}

div.woocommerce-info:has(a.showcoupon) {
    text-align: center;
}

/** Squeeze order comments **/
body.woocommerce-checkout textarea {
    min-height: 100px;
}
/** END Squeeze order comments **/
/** END Hide shipping **/

/*** Hotfix for customer discounts ***/
body.woocommerce-checkout .shop_table .clr-checkout-review-lines {
    margin-bottom: unset;
}

@media screen and (max-width: 1920px) {
    body.woocommerce-checkout .shop_table .woocommerce-Price-amount.amount + .clr-checkout-review-lines:not(.clr-total) {
        margin-top: 26px;
    }
}

@media screen and (min-width: 481px) and (max-width: 912px) {
    body.woocommerce-checkout .shop_table .woocommerce-Price-amount.amount + .clr-checkout-review-lines:not(.clr-total) {
        margin-top: 26px;
    }
    .clr-order-info-container {
        display: flex;
        flex-wrap: wrap;
    }

    .clr-order-info-container >.vc_column-inner, .clr-order-info-container > .vc_column-inner > div.wpb_wrapper{
        display: flex;
    }

    .clr-order-info-box {
        flex: 1 0 40%;
    }
    .clr-order-info-container.clr-has-inner-sections {
        flex: 1 0 100%;
    }
    .clr-order-info-container.clr-has-inner-sections .clr-order-info-box:first-child {
        flex-grow: 2;
        padding-right: 28px;
    }
}


/*** Hide checkout "ΥΠΟΣΥΝΟΛΟ" heading in table ***/
body.woocommerce-checkout .shop_table th.product-total {
    display: none;
}
body.woocommerce-checkout .shop_table tr.woocommerce-shipping-totals.shipping {
    display: none;
}
/**** END CHECKOUT ****/

/**** B2B ACCOUNT ****/
.page-id-34 .wd-toolbar {
	display: none;
}

/**** QUICK BUY ****/
/*.clr-quick-buy-input-div {
	width: 100%;
}
*/

/**** MOBILE ****/

/*** Header (mobile) ***/

.wd-page-wrapper .whb-col-mobile {
	flex: unset;
}

@media screen and (max-width: 380px) {
	.wd-page-wrapper .whb-col-mobile .whb-8cezsca4fh8fcwlqmngl {
		font-size: xx-small;
	}
	
	.wd-page-wrapper .whb-col-mobile .whb-sgk2rlc3ffr8dzvhai78 {
		font-size: xx-small;
	}
}

@media screen and (min-width: 381px) and (max-width: 480px) {
	.wd-page-wrapper .whb-col-mobile .whb-8cezsca4fh8fcwlqmngl {
		font-size: x-small;
	}
	
	.wd-page-wrapper .whb-col-mobile .whb-sgk2rlc3ffr8dzvhai78 {
		font-size: x-small;
	}
}
/*** End header (mobile) ***/

/*** Footer (mobile) ***/

@media screen and (max-width: 480px) {
	footer .wd-copyrights.copyrights-wrapper .wd-col-end img {
		width: 80px !important;
	}	
}

/*** End footer (mobile) ***/

/**** END MOBILE ****/

/**** HEADER ****/

li#menu-item-66429 .nav-link-text {
	color: red;
}

li#menu-item-66429:hover .nav-link-text::after,
li#menu-item-66429.current-menu-item .nav-link-text::after,
li#menu-item-66429 .nav-link-text::after {
	background-color: red;
}
/**** END HEADER ****/

/**** SINGLE PRODUCT PAGE ****/
.clr_offer_end {
    background-color: #108559;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}

body.single-product  .single-product-page p.stock {
	margin-top: 10px;
}
/**** END SINGLE PRODUCT PAGE ****/

.clr-new-product.product-label.small-font-size {
    background-color: #108559;
    color: white;
}

body.archive .wd-content-area.site-content.wd-grid-col:has(.woocommerce-no-products-found) {
	--wd-col-lg: 12 !important;
}