/*
Theme Name: NIT Blocksy Child
Theme URI: https://store.nit.bg/
Description: Store-specific child theme for Blocksy.
Author: NIT
Template: blocksy
Version: 0.1.10
Text Domain: nit-blocksy-child
Requires at least: 6.5
Requires PHP: 7.4
*/

.hero-section[data-type="type-2"] {
	width: var(--theme-container-width);
	max-width: var(--theme-normal-container-max-width);
	margin-inline: auto;
}

.two-cols {
	column-count: 2;
	column-gap: 16px;
}

@media (max-width: 768px) {
	.two-cols {
		column-count: 1 !important;
	}
}

/* Keep product reviews and the review form in a single vertical flow. */
.single-product [data-content] .woocommerce-Reviews {
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0;
}

.single-product #review_form {
	position: static;
	top: auto;
}

.single-product .ct-cart-actions {
	column-gap: 10px;
	row-gap: var(--nit-single-purchase-vertical-gap, 10px);
}

.single-product .ct-cart-actions > :is(wc-order-attribution-inputs, .wc-stripe-clear) {
	display: none !important;
}

.single-product .ct-cart-actions > .wc-stripe-product-checkout-container,
.single-product .ct-cart-actions > .wc-stripe-product-checkout-container .wc_stripe_product_payment_methods {
	margin-block: 0 !important;
}

.single-product form.cart .nit-buy-now--single {
	margin: 0 !important;
}

.single-product .nit-contact-sales-wrapper--add {
	margin-top: var(--nit-single-purchase-vertical-gap, 10px) !important;
}

.single-product .nit-contact-sales-wrapper .nit-contact-sales-button--single,
.single-product .ct-cart-actions .nit-contact-sales-button--addon {
	margin-top: 0 !important;
}

/* Ultimate WooCommerce Cart already supplies its own quantity controls. */
.uwcc-item-qty > .quantity > :is(.ct-increase, .ct-decrease) {
	display: none !important;
}

.uwcc-item-qty > .quantity[data-type] {
	flex: 0 0 40px;
	width: 40px !important;
	height: 30px !important;
	min-height: 0;
}

.uwcc-item-qty > .quantity[data-type] > input.qty[type="number"] {
	width: 40px !important;
	height: 30px !important;
	min-height: 0;
	padding: 0 !important;
	border: 0 !important;
}

/* Match Blocksy's standard remove icon in both Ultimate Cart interfaces. */
.uwcc-cart-items-inner .uwcc-item-remove a.uwcc-remove {
	width: 20px;
	height: 20px;
	border: 0 !important;
	border-radius: 0;
	color: var(--theme-text-color, #334155) !important;
}

.uwcc-product-popup-wrap .uwcc-product-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--theme-text-color, #334155) !important;
}

.uwcc-cart-items-inner .uwcc-item-remove a.uwcc-remove > .icon_trash_alt,
.uwcc-product-popup-wrap .uwcc-product-remove > .icon_trash_alt {
	display: none;
}

.uwcc-cart-items-inner .uwcc-item-remove a.uwcc-remove::before,
.uwcc-product-popup-wrap .uwcc-product-remove::before {
	width: 10px;
	height: 10px;
	content: "";
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 0v1.2H1.2v2.4h21.6V1.2h-8.4V0H9.6zM2.8 6l1.8 15.9C4.8 23.1 5.9 24 7.1 24H17c1.2 0 2.2-.9 2.4-2.1L21.2 6H2.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 0v1.2H1.2v2.4h21.6V1.2h-8.4V0H9.6zM2.8 6l1.8 15.9C4.8 23.1 5.9 24 7.1 24H17c1.2 0 2.2-.9 2.4-2.1L21.2 6H2.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.uwcc-cart-items-inner .uwcc-item-remove a.uwcc-remove:hover,
.uwcc-product-popup-wrap .uwcc-product-remove:hover {
	color: #d83428 !important;
}
