/*
 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;
    }
}
/**** END CHECKOUT ****/

/*** VARIATIONS TAB ***/
p.clr-stock-less-than > span {
    border-color: #ee761c !important;
}

p.clr-outofstock > span {
    border-color: #a44 !important;
}
body.single-product div.product-tabs-wrapper div.container {
    max-width: 100%;
}

@media (max-width: 480px) {
    table#clr-variations-table tbody tr:first-of-type {
        display: none;
      }
      
    table#clr-variations-table tbody {
        display: flex;
        flex-wrap: wrap;
        padding: 4px;
      }
      
    table#clr-variations-table tbody tr,  
    table#clr-variations-table tbody td {
        display: block;
        border: 0;
      }
      
    table#clr-variations-table tbody td {
        padding: 4px;
        font-weight: bold;
      }
      
    table#clr-variations-table tbody td:before {
        content: attr(data-name);
        width: 100px;
        display: inline-block;
        text-transform: capitalize;
        font-weight: normal;
      }
      
    table#clr-variations-table tbody td.status {
        position: absolute;
        top: 4px;
        right: 4px;
      }
      
    table#clr-variations-table tbody tr {
        position: relative;
        width: 100%;
        border: 1px solid #E7E7E7;
        padding: 8px;
        margin: 4px;
      }

    table#clr-variations-table tr td,
    table#clr-variations-table tr th {
        text-align:left;
        padding-left: 20px;
    }
}

td.clr-var-table-pa_megethos, 
td.clr-var-table-pa_hroma {
    font-size: large;
}
td.clr-var-table-price{
    font-size: large;
}

/*Breadcrumbs*/
div.wd-breadcrumbs nav.woocommerce-breadcrumb{
    text-transform: uppercase;
    font-size: large;
}
div.wd-breadcrumbs nav.woocommerce-breadcrumb a:after{
    color: #ee761c;
}
/*Swatches*/
div.wd-swatches-product.wd-swatches-single[data-id="pa_megethos"] div.wd-swatch.wd-text {
    border: 2px solid var(--wd-swatch-brd-color);
    background-color: #fcf3e7;
    --wd-swatch-text-size: 24px;
}

div.wd-swatches-product.wd-swatches-single[data-id="pa_hroma"] div.wd-swatch {
	border: 2px solid var(--wd-swatch-brd-color);
}
/*Product Price*/
.woocommerce.single.single-product p.price{
    font-size: 30px;
}
/*Product Attributes*/
.woocommerce.single.single-product table.woocommerce-product-attributes span.wd-attr-name{
    font-size: 16px;
}
/*Product SKU*/
span.clr-single-product-page-sku {
    color: #9e9e9e;
    font-size: x-large;
    display: block;
}

button.clr-add-to-cart {
    font-size: 13pt;
}

/** Hide Billing/Shipping info rows that lack data **/
.clr-billing-shipping-card-header + div.v-list div.v-list-item:has(.v-list-item-title:empty) {
    display: none;
}

.clr-billing-shipping-card-header + div.v-list div.v-list-item:has(.v-list-item-title:empty) + hr.v-divider.v-divider--inset.v-theme--light {
    display: none;
}

@media (max-width: 480px) {
	.clr-var-table-pa_megethos::before,
	.clr-var-table-pa_hroma::before,
	.clr-var-table-price::before {
		font-size: 14px;
		font-weight: 400;
	}
}

@media screen and (min-width: 1024px) {
    #clr-custom-add-variations-to-cart {
        text-align: right !important;
    }
}
/*** END VARIATIONS TAB ***/