/*
Theme Name: Borbila Child
Theme URI: https://www.borbila.com
Description: Child theme for Hello Elementor.
Author: Borbila
Author URI: https://www.borbila.com
Template: hello-elementor
Version: 1.0.0
Text Domain: borbila-child
*/

/* WooCommerce checkout/cart primary buttons */
.woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: #14963a !important;
	border-color: #14963a !important;
	color: #ffffff !important;
	opacity: 1 !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: #0f7f30 !important;
	border-color: #0f7f30 !important;
	color: #ffffff !important;
}

/* Hide post add-to-cart "View cart" links */
.woocommerce a.added_to_cart,
.woocommerce-page a.added_to_cart,
.single-product .summary a.added_to_cart,
.woocommerce a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.woocommerce a.added_to_cart.wc_forward,
.woocommerce-page a.added_to_cart.wc_forward {
	display: none !important;
	visibility: hidden !important;
}

/* Equal-height Elementor product loop cards */
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-loop-container {
	align-items: start !important;
	grid-auto-rows: auto !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-loop-container > .e-loop-item.product {
	display: flex !important;
	height: auto !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .e-loop-item.product > .elementor-166,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166.e-loop-item.product,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-a86d1d0 {
	display: flex !important;
	flex-direction: column !important;
	height: auto !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-a86d1d0 > .e-con-inner {
	display: flex !important;
	flex: 0 0 auto !important;
	flex-direction: column !important;
	height: auto !important;
	width: 100% !important;
	justify-content: flex-start !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-9f927c4,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-ea70087,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-4a96b90 {
	flex: 0 0 auto !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-4a96b90 a {
	display: block !important;
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	overflow: hidden !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-4a96b90 img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-02e5650 {
	display: flex !important;
	flex: 0 0 auto !important;
	flex-direction: column !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce {
	min-height: 38px !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce .elementor-heading-title,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce .elementor-heading-title a {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	overflow: hidden !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-286422f {
	min-height: 22px !important;
	margin-bottom: 0 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-286422f .price {
	margin-bottom: 0 !important;
	line-height: 1.2 !important;
}

/* Elementor product loop review + price/view layout */
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-rating-row {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	min-height: 18px !important;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-stars {
	display: inline-block !important;
	color: #f59e0b !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: 1px !important;
	line-height: 1 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-price-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	width: 100% !important;
	min-height: 24px !important;
	margin: 2px 0 4px !important;
	padding: 0 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-price-row .elementor-element.elementor-element-286422f {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-price-row .price {
	margin: 0 !important;
	color: #068307 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: left !important;
	white-space: nowrap !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-price-row .price .woocommerce-Price-currencySymbol {
	font-weight: 800 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-link,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-link:visited {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #6b7280 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-link:hover,
.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-link:focus {
	color: #0f7f30 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-link svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	fill: currentColor !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-count {
	display: inline-block !important;
	color: currentColor !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-04e2789 {
	--container-widget-height: initial !important;
	--container-widget-flex-grow: 0 !important;
	--container-widget-align-self: initial !important;
	--flex-grow: 0 !important;
	--justify-content: space-between !important;
	--align-items: center !important;
	--gap: 0px 8px !important;
	--row-gap: 0px !important;
	--column-gap: 8px !important;
	flex: 0 0 auto !important;
	flex-grow: 0 !important;
	align-self: stretch !important;
	height: auto !important;
	min-height: 0 !important;
	margin-top: -22px !important;
	width: 100% !important;
}

.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-04e2789 > .e-con-inner {
	align-items: center !important;
	height: auto !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 767px) {
	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-a86d1d0 > .e-con-inner {
		padding: 8px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-065e4ce {
		min-height: 31px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-286422f {
		min-height: 18px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-rating-row {
		min-height: 16px !important;
		margin-top: 5px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-stars {
		font-size: 13px !important;
		letter-spacing: 0.5px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-price-row {
		gap: 6px !important;
		min-height: 21px !important;
		margin-bottom: 3px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-price-row .price {
		font-size: 13px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-link svg {
		width: 14px !important;
		height: 14px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .mango-loop-view-count {
		font-size: 12px !important;
	}

	.woocommerce.elementor-widget-loop-grid[data-widget_type="loop-grid.product"] .elementor-166 .elementor-element.elementor-element-04e2789 {
		margin-top: 2px !important;
	}
}
