/* phpcs:ignoreFile */
/* Smart Coupons RTL adjustments for Persian WordPress sites. */

html[dir="rtl"] .coupon-container,
html[dir="rtl"] #coupon-selector,
html[dir="rtl"] .coupon-preview,
html[dir="rtl"] .wc-sc-product-page-gift-form,
html[dir="rtl"] #sc-cc,
html[dir="rtl"] .sc-sgc-success,
html[dir="rtl"] .screen-container {
	direction: rtl;
}

html[dir="rtl"] div#sc_shortcode_update,
html[dir="rtl"] a#single_multi,
html[dir="rtl"] div#smart_coupons_tabs h2 .sc-quick-links,
html[dir="rtl"] .wc-sc-call-for-credit-container .wc-sc-label,
html[dir="rtl"] .wc-sc-call-for-credit-container .wc-sc-input {
	float: left;
}

html[dir="rtl"] div#coupon-selector {
	float: right;
	padding: 1em 0 1em 1em;
	border-right: 1px solid #e6e6e6;
	border-left: 0;
}

html[dir="rtl"] .coupon-preview {
	float: right;
	padding: 1em 1em 1em 0;
}

html[dir="rtl"] #coupon-selector #coupon-option label select,
html[dir="rtl"] #coupon-option #search-panel #search-results span,
html[dir="rtl"] .wc_sc_schedule_gift_sending_wrapper.show,
html[dir="rtl"] .sc_bulk_description textarea#woocommerce-coupon-description {
	margin-right: 0;
	margin-left: unset;
}

html[dir="rtl"] #coupon-option #search-panel #search-results span,
html[dir="rtl"] .wc_sc_schedule_gift_sending_wrapper.show {
	margin-right: 10px;
}

html[dir="rtl"] .wc_sc_schedule_gift_sending_wrapper.show {
	margin-right: 2em;
}

html[dir="rtl"] label[for="smart_coupons_sell_store_credit_at_less_price"] span.woocommerce-help-tip,
html[dir="rtl"] label[for="smart_coupons_schedule_store_credit"] span.woocommerce-help-tip {
	float: right;
	margin: 1px -1.7em 1px 4px !important;
}

html[dir="rtl"] tr.wc_sc_custom_design_css_wrapper .CodeMirror + span.wc-sc-coupon-preview-container {
	right: 415px;
	left: auto;
}

html[dir="rtl"] .gift-certificate-show-form input[type="radio"] {
	margin-right: 1em;
	margin-left: 0;
}

html[dir="rtl"] .show_hide_list {
	margin-right: 25px;
	margin-left: 0;
	padding-right: 0;
	padding-left: initial;
}

html[dir="rtl"] .wc_sc_total_available_store_credit {
	text-align: left;
}

html[dir="rtl"] .forminp-wc_sc_radio_with_html .wc_sc_setting_coupon_design li {
	padding: 10px 5px 5px 10px;
}

html[dir="rtl"] .wc-settings-row-wc_sc_store_notice_position fieldset ul li {
	margin-left: 3rem;
	margin-right: 0;
}

html[dir="rtl"] #wc-sc-add-restriction.button {
	margin-right: 1em;
	margin-left: 0;
}

html[dir="rtl"] .wc-wp-version-gte-70 .currency-cell.currency-left .currency-symbol {
	right: 1em;
	left: auto;
}

html[dir="rtl"] .sc-sgc-success-summary dl {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] #sc-cc .space-x-1 > :not(template) ~ :not(template) {
	--space-x-reverse: 1;
}

html[dir="rtl"] #sc-cc .border-l {
	border-right-width: 1px;
	border-left-width: 0;
}

html[dir="rtl"] #sc-cc .float-right {
	float: left;
}

html[dir="rtl"] #sc-cc .mr-1 { margin-left: .25rem; margin-right: 0; }
html[dir="rtl"] #sc-cc .ml-1 { margin-right: .25rem; margin-left: 0; }
html[dir="rtl"] #sc-cc .mr-2 { margin-left: .5rem; margin-right: 0; }
html[dir="rtl"] #sc-cc .ml-2 { margin-right: .5rem; margin-left: 0; }
html[dir="rtl"] #sc-cc .mr-3 { margin-left: .75rem; margin-right: 0; }
html[dir="rtl"] #sc-cc .ml-3 { margin-right: .75rem; margin-left: 0; }
html[dir="rtl"] #sc-cc .pl-2 { padding-right: .5rem; padding-left: 0; }
html[dir="rtl"] #sc-cc .pl-2\.5 { padding-right: .625rem; padding-left: 0; }
html[dir="rtl"] #sc-cc .left-14 { right: 3.5rem; left: auto; }

html[dir="rtl"] .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	right: auto;
	left: 0;
	transform: translate(-50%, -50%);
}

html[dir="rtl"] .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
	padding-right: 24px;
	padding-left: 12px;
}

html[dir="rtl"] .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
	margin-right: auto;
	margin-left: 0;
	text-align: left;
}

html[dir="rtl"] .wc-block-components-product-price--align-left {
	text-align: right;
}

html[dir="rtl"] .wp-block-woocommerce-smart-coupons-send-coupon-form .components-radio-control .components-radio-control__input {
	margin: .3em 0 .3em .3em;
}

html[dir="rtl"] .wp-block-woocommerce-smart-coupons-send-coupon-form span.components-text {
	margin-right: 0;
	margin-left: 1em;
}

html[dir="rtl"] .screen-container .btn-previous {
	padding: 10px 0 10px 20px;
}

html[dir="rtl"] .screen-container .btn-next {
	padding: 10px 20px 10px 15px;
}

@media screen and (max-width: 767px) {
	html[dir="rtl"] tr.wc_sc_custom_design_css_wrapper .CodeMirror + span.wc-sc-coupon-preview-container {
		right: auto;
	}
}
