@use '../../../1-helpers/functions.scss';

.elementor-widget-container {

	// single product slider
	.flex-viewport {
		margin-bottom: 20px;
	}

	.flex-control-thumbs {
		margin: 0 -10px;

		li {
			padding: 0 10px 10px 10px;
		}
	}
}

// quantity input
.elementor-add-to-cart--align-justify {

	.quantity[data-type='type-1'] {
		flex: 0 0 100px;
	}

	.quantity[data-type='type-2'] {
		flex: 0 0 130px;
	}
}

.elementor-widget-woocommerce-cart .woocommerce {

	.quantity[data-type] {

		.input-text {
			text-align: center;
			max-height: initial;
		}

		span {
			color: var(--quantity-arrows-initial-color, #fff);

			&:hover {
				color: var(--quantity-arrows-hover-color, #fff);
			}
		}
	}
}

// product tabs
.woocommerce div.product.elementor .woocommerce-tabs .woocommerce-Tabs-panel.panel {
	margin: 0;
}

// cart page
.woocommerce-cart-form table.cart {

	.actions {

		.coupon {
			@include functions.media-breakpoint-down(sm) {
				flex-direction: column !important;
			}
		}
	}
}

// product card
[data-products="type-2"] .product {
	padding-inline: 20px !important;
	padding-bottom: 20px !important;

	figure {
		margin-inline: -20px !important;
	}
}

:is(.ct-woo-card-actions, .ct-woo-card-extra) :is(a, button) {
	margin: 0 !important;
}

// products shortcode
.elementor-element [data-products] .product > figure {
	margin-bottom: var(--product-element-spacing, 10px) !important;
}