/* Mailster Persian UI layer. Email content/canvas direction is intentionally untouched. */
html[dir="rtl"] body,
html[dir="rtl"] body .mailster-wrap,
html[dir="rtl"] body [class*="mailster-"] {
	font-family: "IRANYekanWebFn", Tahoma, "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] .mailster-wrap,
html[dir="rtl"] #mailster,
html[dir="rtl"] .mailster-settings,
html[dir="rtl"] .mailster-dashboard,
html[dir="rtl"] .mailster-setup,
html[dir="rtl"] .mailster-modal,
html[dir="rtl"] .mailster-notice {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .mailster-wrap input[type="email"],
html[dir="rtl"] .mailster-wrap input[type="url"],
html[dir="rtl"] .mailster-wrap input[type="number"],
html[dir="rtl"] .mailster-wrap input[type="tel"],
html[dir="rtl"] .mailster-wrap input[name*="key"],
html[dir="rtl"] .mailster-wrap input[name*="token"],
html[dir="rtl"] .mailster-wrap code,
html[dir="rtl"] .mailster-wrap pre,
html[dir="rtl"] .mailster-wrap .code,
html[dir="rtl"] .mailster-wrap .mailster-code,
html[dir="rtl"] .mailster-wrap .regular-text.code {
	direction: ltr;
	text-align: left;
	unicode-bidi: embed;
}

html[dir="rtl"] .mailster-wrap table,
html[dir="rtl"] .mailster-wrap th,
html[dir="rtl"] .mailster-wrap td,
html[dir="rtl"] .mailster-wrap .form-table th,
html[dir="rtl"] .mailster-wrap .form-table td {
	text-align: right;
}

html[dir="rtl"] .mailster-wrap .alignleft,
html[dir="rtl"] .mailster-wrap .mailster-align-left {
	float: right;
}

html[dir="rtl"] .mailster-wrap .alignright,
html[dir="rtl"] .mailster-wrap .mailster-align-right {
	float: left;
}

html[dir="rtl"] .mailster-wrap .button .dashicons:first-child,
html[dir="rtl"] .mailster-wrap .button .mailster-icon:first-child,
html[dir="rtl"] .mailster-wrap label > .dashicons:first-child {
	margin-inline: 0 0.35em;
}

html[dir="rtl"] .mailster-wrap .button .dashicons:last-child,
html[dir="rtl"] .mailster-wrap .button .mailster-icon:last-child {
	margin-inline: 0.35em 0;
}

html[dir="rtl"] .mailster-wrap .notice-dismiss,
html[dir="rtl"] .mailster-modal .notice-dismiss,
html[dir="rtl"] #TB_closeWindowButton {
	right: auto;
	left: 0;
}

html[dir="rtl"] #TB_ajaxWindowTitle {
	float: right;
	padding: 0 10px 0 33px;
}

html[dir="rtl"] .mailster-conditions > .mailster-help {
	right: auto;
	left: 0.5em;
}

html[dir="rtl"] .mailster-wrap .select2-container,
html[dir="rtl"] .mailster-wrap .select2-selection,
html[dir="rtl"] .mailster-wrap .select2-results,
html[dir="rtl"] .mailster-wrap .components-base-control,
html[dir="rtl"] .mailster-wrap .components-panel__body,
html[dir="rtl"] .mailster-wrap .components-popover__content {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .mailster-wrap .select2-container .select2-search--inline .select2-search__field {
	margin-left: 0;
	margin-right: 5px;
}

html[dir="rtl"] .mailster-wrap .components-input-control__suffix,
html[dir="rtl"] .mailster-wrap .components-combobox-control__suggestions-container {
	direction: rtl;
}

/* Workflow connectors and the newsletter design canvas depend on LTR coordinates. */
html[dir="rtl"] .mailster-automation-editor,
html[dir="rtl"] .mailster-workflow-canvas,
html[dir="rtl"] .mailster-automation-canvas,
html[dir="rtl"] #mailster_template #iframe-wrap,
html[dir="rtl"] #mailster_template iframe {
	direction: ltr;
}

html[dir="rtl"] .mailster-automation-editor input,
html[dir="rtl"] .mailster-automation-editor textarea,
html[dir="rtl"] .mailster-automation-editor label,
html[dir="rtl"] .mailster-workflow-canvas [class*="label"],
html[dir="rtl"] .mailster-workflow-canvas [class*="title"] {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .fixed-optionbar #module-selector {
	right: auto;
	left: 321px;
}

html[dir="rtl"] #mailster_template .show-modules #iframe-wrap {
	margin-right: 0;
	margin-left: 200px;
}

html[dir="rtl"] .contextual-help-tabs .active {
	border-right: 0;
	border-left: 2px solid #72aee6;
}

html[dir="rtl"] #social-services .social-service-remove,
html[dir="rtl"] .customfield-move-up,
html[dir="rtl"] .customfield-move-down,
html[dir="rtl"] .customfield-remove,
html[dir="rtl"] .user-info .detail code {
	float: left;
}

html[dir="rtl"] .user-info .detail,
html[dir="rtl"] .mailster-tags {
	margin-right: 0;
	margin-left: 20px;
}

html[dir="rtl"] #paste-import.focus {
	left: auto;
	right: -10px;
}

html[dir="rtl"] .export-order,
html[dir="rtl"] .export-order-middle {
	float: right;
}

/* Gutenberg form and automation editors may render outside .mailster-wrap. */
html[dir="rtl"] body.post-type-mailster-workflow .interface-interface-skeleton,
html[dir="rtl"] body.post-type-mailster-workflow .components-popover,
html[dir="rtl"] body.post-type-mailster-form .interface-interface-skeleton,
html[dir="rtl"] body.post-type-mailster-form .components-popover {
	font-family: "IRANYekanWebFn", Tahoma, "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] body.post-type-mailster-workflow .interface-complementary-area,
html[dir="rtl"] body.post-type-mailster-workflow .components-panel,
html[dir="rtl"] body.post-type-mailster-workflow .components-modal__content,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-conditions-modal,
html[dir="rtl"] body.post-type-mailster-form .interface-complementary-area,
html[dir="rtl"] body.post-type-mailster-form .components-panel,
html[dir="rtl"] body.post-type-mailster-form .components-modal__content {
	direction: rtl;
	text-align: right;
}

/* Keep workflow line/branch calculations LTR while making each card readable in Persian. */
html[dir="rtl"] body.post-type-mailster-workflow .block-editor-block-list__layout,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-workflow-conditions,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-step-conditions,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-step-triggers {
	direction: ltr;
}

html[dir="rtl"] body.post-type-mailster-workflow .mailster-step,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-step-inner,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-step-label,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-step-info,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-step-meta,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-comment,
html[dir="rtl"] body.post-type-mailster-workflow .mailster-stop {
	direction: rtl;
	text-align: right;
}
.postbox.verified .valid {
    display: none !important;
}