/*
* Theme Name: Reabilitacija-visiems
* WooCommerce styles override
*/
.woocommerce .quantity .qty, 
.woocommerce .woocommerce-ordering select,
.woocommerce div.product form.cart .variations select,
.woocommerce input, 
.woocommerce form .form-row textarea,
.wc-block-components-button,
.woocommerce-button,
.woocommerce div.product form.cart .button {
    border-radius: 32px;
    outline: none !important;
    border: 1px solid;
}
.woocommerce-page .select2-container .select2-search__field, 
.woocommerce-page .select2-container .select2-selection {
    border-radius: 32px !important;
    border-color: #000;
}
.woocommerce-page .select2-container .select2-dropdown {
    top: -23px;
}
.wp-block-woocommerce-customer-account {
    border-radius: 16px;
}

.woocommerce-shop footer {
    margin-top: 0;
}
.woocommerce.wc-block-catalog-sorting select.orderby {
    padding: 4px 30px 4px 8px;
    border-radius: 4px;
	min-height: 30px;
}
.wc-blocks-components-form-token-field-wrapper .components-form-token-field__input-container input[type=text].components-form-token-field__input {
    min-height: unset;
}
.wc-block-product-template__responsive {
    grid-gap: 0;
}

h2.wc-block-mini-cart__title {
    font-size: 23px;
}

/*Product*/
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 9;
}
span.onsale {
    background-color: var(--wp--preset--color--custom-primary) !important;
}
.woocommerce div.product div.images {
    margin-bottom: 0;
}
.single-product div.product form.cart {
    margin-bottom: 0 !important;
}
.products-block-post-template li>div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/*Categories shortcode*/
body:not(.home) .woocommerce-shop ul.products {
    display: flex;
    flex-wrap: wrap;
}
.woocommerce ul.products li.product .woocommerce-loop-category__title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    font-size: 20px;
	z-index: 9;
	text-align: center;
}
body:not(.home) li.product-category {
    margin: 0 !important;
    width: 100% !important;
    max-width: calc(20% - 2px);
    border: 1px solid #f1f2f2;
}
li.product-category img {
    margin: 0 !important;
}
.woocommerce-shop ul.products,
li.product-category p {
    margin: 0;
}

/*Checkout*/
.wc-block-components-formatted-money-amount,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-weight: 400;
}
.woocommerce-page table.shop_table {
    width: 100% !important;
}
label[for="payment_method_paysera"] {
    display: inline-flex;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .wc-block-product-template__responsive {
        display: flex;
        flex-wrap: wrap;
    }
    li.product-category,
    .wc-block-product-template__responsive>li {
        max-width: 33%;
    }
	ul.products-block-post-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
    
}
@media screen and (max-width: 781px) {
	.wc-block-catalog-sorting, .wc-block-catalog-sorting * {
		width: 100%;
	}
    .wc-block-product-template.is-flex-container>li .wp-block-group .wp-block-column *,
	.products-block-post-template li .wp-block-group .wp-block-column *	{
        text-align: center !important;
    }
    .product-gallery-column {
        border-right: 0;
    }
	ul.products-block-post-template {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}
@media screen and (max-width: 768px) {
    li.product-category {
        max-width: calc(50% - 2px) !important;
        width: 100%;
    }
    .wc-block-product-template__responsive>li {
        max-width: 50%;
        width: 100%;
    }
    .wc-block-product-template__responsive>li .wp-block-columns {
        gap: 0;
    }
    .wc-block-product-template__responsive>li .wp-block-columns .add_to_cart_button {
        margin-top: 10px;
    }
}