// RTL support
#{$wrapper-class} {

	.added_to_cart {
		text-align: left;
	}

	.wc-forward::after {
		content: "\ea40"; // left arrow
	}

}

#{$controls-class} {

	.multi-cart-message {
		text-align: left;
	}

}

#{$table-class} {

	// Align the add to cart column right (but not in child rows)
	td.col-buy,
	th.col-buy,
	td.col-button:last-child {
		text-align: left;
	}

	.product {
		.cart {
			select {
				@include swap-padding(1em, 0.5em);
			}
		}

		.with-quantity .quantity + button.button {
			@include swap-margin(0, 3px);
		}
	}

	.wpt_variations_form {
		.variations {
			& + .single_variation_wrap {
				@include swap-margin(0, 3px);
			}

			select {
				@include swap-margin(0, 2px);
			}
		}
	}

	.multi-cart {
		@include swap-padding($multi-check-width, 0);

		.multi-cart-check {
			left: 0;
			right: auto;

			input[type="checkbox"] {
				right: auto;
				left: 6px;
			}
		}
	}

	.child {
		.wpt_variations_form {
			.single_variation {
				@include swap-margin(0, 3px);
			}
		}

		.multi-cart {
			padding-left: 0;

			.multi-cart-check {
				left: auto;
				right: 0;

				input[type="checkbox"] {
					left: auto;
					right: 6px;
				}
			}
		}

		&.purchasable .multi-cart {
			@include swap-padding(0, $multi-check-width);
		}

	}

}

// Responsive modal
div.dtr-modal-content #{$table-class} {

	.multi-cart {
		padding-left: 0;
	}

}

// WooCommerce Product Addons
#{$table-class} {

	.addons-inline {
		.wc-pao-addons-container + .add-to-cart-button {
			margin-left: 0;
			margin-right: 3px;
		}

		.wc-pao-addon-container {
			margin-left: 0;
			margin-right: 8px;
			text-align: right;

			.wc-pao-addon-description,
			& > label,
			.form-row > label {
				text-align: right;
			}

			input[type="checkbox"],
			input[type="radio"] {
				margin-right: 7px;
				margin-left: 0;
				float: left;
			}
		}
	}

	.addons-options-inline .wc-pao-addon-container {

		input[type="checkbox"],
		input[type="radio"] {
			margin-left: 4px;
			margin-right: 0;
			float: none;
		}

		.form-row + .form-row {
			margin-left: 0;
			margin-right: 10px;
		}
	}

	.addons-block {

		&.addons-options-block .wc-pao-addon-container {
			input[type="checkbox"],
			input[type="radio"] {
				margin-left: 0;
				margin-right: 7px;
				float: left;
			}
		}
	}

}

// WooCommerce Variations and Swatches
#{$table-class} .cart .swatch-anchor {
	text-align: right;
}

