/*!
RTL Editor Styles for Car Expert Theme
Styles for Gutenberg editor in RTL languages
*/

/* RTL Editor Basic Styles */
.block-editor-writing-flow {
  direction: rtl;
  text-align: right;
}

/* Block Alignment RTL */
.wp-block[data-align="right"] {
  text-align: left;
}

.wp-block[data-align="left"] {
  text-align: right;
}

/* Paragraph Block RTL */
.wp-block-paragraph {
  text-align: right;
}

/* Heading Blocks RTL */
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
  text-align: right;
}

/* List Block RTL */
.wp-block-list {
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
}

/* Quote Block RTL */
.wp-block-quote {
  border-right: 4px solid #0073aa;
  border-left: none;
  padding-right: 20px;
  padding-left: 0;
  margin-right: 0;
  margin-left: 20px;
}

/* Image Block RTL */
.wp-block-image {
  text-align: right;
}

.wp-block-image figcaption {
  text-align: right;
}

/* Gallery Block RTL */
.wp-block-gallery {
  direction: rtl;
}

/* Button Block RTL */
.wp-block-button {
  text-align: right;
}

/* Columns Block RTL */
.wp-block-columns {
  direction: rtl;
}

/* Media Text Block RTL */
.wp-block-media-text.has-media-on-the-right {
  direction: rtl;
}

/* Table Block RTL */
.wp-block-table {
  text-align: right;
}

.wp-block-table td,
.wp-block-table th {
  text-align: right;
}

/* Code Block RTL - Keep LTR for code */
.wp-block-code {
  direction: ltr;
  text-align: left;
}

/* Preformatted Block RTL - Keep LTR for code */
.wp-block-preformatted {
  direction: ltr;
  text-align: left;
}
