/* Tasmeem theme: Arabic and right-to-left layout adjustments. */

html[lang^="ar"] {
  --font-family-base: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-family-display: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

html[dir="rtl"],
body.rtl {
  direction: rtl;
}

html[dir="rtl"] body,
body.rtl {
  text-align: right;
  line-height: 1.8;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl p,
body.rtl li,
body.rtl label,
body.rtl button,
body.rtl input,
body.rtl textarea,
body.rtl select {
  letter-spacing: normal;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
  line-height: 1.45;
}

html[dir="rtl"] p,
html[dir="rtl"] li,
body.rtl p,
body.rtl li {
  line-height: 1.85;
}

html[dir="rtl"] .bannerContainer .banner_heading,
html[dir="rtl"] .inner_banner_title,
html[dir="rtl"] .product_collection_heading,
body.rtl .bannerContainer .banner_heading,
body.rtl .inner_banner_title,
body.rtl .product_collection_heading {
  font-weight: 400;
  line-height: 1.4;
}

/* Keep the header menu panel aligned to the RTL edge of its trigger. */
html[dir="rtl"] .header_menu_dropdown,
body.rtl .header_menu_dropdown {
  margin-left: 0;
}

html[dir="rtl"] .header_menu_panel,
body.rtl .header_menu_panel {
  right: auto;
  left: 0;
}

html[dir="rtl"] .header-shop-page .shop_header_actions,
body.rtl .header-shop-page .shop_header_actions {
  gap: clamp(20px, 2.4vw, 30px);
}

html[dir="rtl"] .header_menu_toggle_icon span,
body.rtl .header_menu_toggle_icon span {
  right: 0;
  left: auto;
}

html[dir="rtl"] .swiper-button-prev img,
html[dir="rtl"] .swiper-button-next img,
body.rtl .swiper-button-prev img,
body.rtl .swiper-button-next img {
  transform: scaleX(-1);
}

html[dir="rtl"] .header_menu_list,
html[dir="rtl"] .header_menu_social,
html[dir="rtl"] .footer_nav_list,
html[dir="rtl"] .footer_newsletter_form,
body.rtl .header_menu_list,
body.rtl .header_menu_social,
body.rtl .footer_nav_list,
body.rtl .footer_newsletter_form {
  text-align: right;
}

html[dir="rtl"] .ml_auto,
body.rtl .ml_auto {
  margin-left: 0;
  margin-right: auto;
}

/* Text overlays and editorial content follow Arabic reading order. */
html[dir="rtl"] .banner_content,
html[dir="rtl"] .banner_heading,
html[dir="rtl"] .inner_banner,
html[dir="rtl"] .rich_text_content_section,
body.rtl .banner_content,
body.rtl .banner_heading,
body.rtl .inner_banner,
body.rtl .rich_text_content_section {
  text-align: right;
}

/* Inputs use RTL text alignment while addresses and email remain LTR. */
html[dir="rtl"] input:not([type="email"]):not([type="url"]):not([type="tel"]),
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body.rtl input:not([type="email"]):not([type="url"]):not([type="tel"]),
body.rtl textarea,
body.rtl select {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
body.rtl input[type="email"],
body.rtl input[type="url"],
body.rtl input[type="tel"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] a[href^="tel:"],
body.rtl a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .contact_form_section_left,
html[dir="rtl"] .contact_form_section_intro,
html[dir="rtl"] .contact_form_section_heading,
html[dir="rtl"] .contact_form_section_description,
html[dir="rtl"] .contact_form_section_detail,
html[dir="rtl"] .contact_form_section_social,
body.rtl .contact_form_section_left,
body.rtl .contact_form_section_intro,
body.rtl .contact_form_section_heading,
body.rtl .contact_form_section_description,
body.rtl .contact_form_section_detail,
body.rtl .contact_form_section_social {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .contact_form_embed_form,
body.rtl .contact_form_embed_form {
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

html[dir="rtl"] .contact_form_embed_form .wpcf7-form,
html[dir="rtl"] .contact_form_embed_form .wpcf7-form p,
html[dir="rtl"] .contact_form_section_field,
body.rtl .contact_form_embed_form .wpcf7-form,
body.rtl .contact_form_embed_form .wpcf7-form p,
body.rtl .contact_form_section_field {
  direction: rtl;
  text-align: right;
}

html[lang^="ar"] .contact_form_embed_form input,
html[lang^="ar"] .contact_form_embed_form textarea,
html[dir="rtl"] .contact_form_embed_form input,
html[dir="rtl"] .contact_form_embed_form textarea,
body.rtl .contact_form_embed_form input,
body.rtl .contact_form_embed_form textarea {
  text-align: right !important;
}

html[dir="rtl"] .contact_form_embed_form input::placeholder,
html[dir="rtl"] .contact_form_embed_form textarea::placeholder,
body.rtl .contact_form_embed_form input::placeholder,
body.rtl .contact_form_embed_form textarea::placeholder {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

html[dir="rtl"] .contact_form_embed_form input[type="tel"]::placeholder,
body.rtl .contact_form_embed_form input[type="tel"]::placeholder {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: left !important;
}

html[dir="rtl"] .rich_text_content_section_body ul,
body.rtl .rich_text_content_section_body ul {
  direction: rtl;
  list-style: none;
  padding-left: 0;
  padding-right: 0;
  text-align: right;
}

html[dir="rtl"] .rich_text_content_section_body ol,
body.rtl .rich_text_content_section_body ol {
  direction: rtl;
  list-style: none;
  padding-left: 0;
  padding-right: 0;
  text-align: right;
}

html[dir="rtl"] .rich_text_content_section_body ul > li,
body.rtl .rich_text_content_section_body ul > li,
html[dir="rtl"] .rich_text_content_section_body ol > li,
body.rtl .rich_text_content_section_body ol > li {
  position: relative;
  direction: rtl;
  list-style: none;
  padding-left: 0;
  padding-right: 1.5em;
  text-align: right;
}

html[dir="rtl"] .rich_text_content_section_body ul li::after,
html[dir="rtl"] .rich_text_content_section_body ol li::after,
body.rtl .rich_text_content_section_body ul li::after,
body.rtl .rich_text_content_section_body ol li::after {
  content: "";
  position: absolute;
  top: 0.88em;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #595959;
  transform: translateY(-50%);
}

html[dir="rtl"] .rich_text_content_section_body .sameline,
body.rtl .rich_text_content_section_body .sameline {
  display: flex;
  align-items: center;
  flex-direction: row;
  direction: rtl;
  gap: 12px;
  min-width: 0;
  margin: 12px 0;
  color: #272727;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-style: normal;
  line-height: 110%;
  letter-spacing: -0.72px;
  font-size: 18px;
}

html[dir="rtl"] .rich_text_content_section_body .sameline img,
body.rtl .rich_text_content_section_body .sameline img {
  width: auto !important;
  height: 20px !important;
  flex: 0 0 auto;
  object-fit: contain;
}

html[dir="rtl"] .rich_text_content_section_body .sameline a,
body.rtl .rich_text_content_section_body .sameline a {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
  font: inherit;
}

@media (max-width: 1800px) {
  html[dir="rtl"] .rich_text_content_section_body .sameline,
  html[dir="rtl"] .rich_text_content_section_body .sameline a,
  body.rtl .rich_text_content_section_body .sameline,
  body.rtl .rich_text_content_section_body .sameline a {
    font-size: 17px;
  }
}

@media (max-width: 1440px) {
  html[dir="rtl"] .rich_text_content_section_body .sameline,
  html[dir="rtl"] .rich_text_content_section_body .sameline a,
  body.rtl .rich_text_content_section_body .sameline,
  body.rtl .rich_text_content_section_body .sameline a {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  html[dir="rtl"] .rich_text_content_section_body .sameline,
  body.rtl .rich_text_content_section_body .sameline {
    gap: 10px;
  }
}

html[dir="rtl"] .service_listing_content,
body.rtl .service_listing_content {
  margin-left: 0;
  margin-right: 170px;
}

@media (max-width: 1440px) {
  html[dir="rtl"] .service_listing_content,
  body.rtl .service_listing_content {
    margin-right: 120px;
  }
}

@media (max-width: 1200px) {
  html[dir="rtl"] .service_listing_content,
  body.rtl .service_listing_content {
    margin-right: 80px;
  }
}

@media (max-width: 820px) {
  html[dir="rtl"] .service_listing_content,
  body.rtl .service_listing_content {
    margin-right: 0;
  }
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a img,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a img,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a img {
  transform: scale(-1, 1) !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form select,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form select,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form select,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .select2-selection__rendered,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .select2-selection__rendered,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .select2-selection__rendered {
  direction: rtl !important;
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form textarea,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form textarea,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form textarea {
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item {
  position: relative !important;
  direction: rtl !important;
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-name,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-price,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-name,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-price,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-name,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-price {
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table th,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table td,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table th,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table td,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table th,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table td {
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table .woocommerce-orders-table__cell-order-actions > a.mg-link,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table .woocommerce-orders-table__cell-order-actions > a.mg-link,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table .woocommerce-orders-table__cell-order-actions > a.mg-link {
  direction: ltr !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table .woocommerce-orders-table__cell-order-actions > a.mg-link img,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table .woocommerce-orders-table__cell-order-actions > a.mg-link img,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table .woocommerce-orders-table__cell-order-actions > a.mg-link img {
  transform: scale(-1, 1) !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .progress-steps,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .progress-steps,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .progress-steps {
  direction: rtl !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .progress-step::after,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .progress-step::after,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .progress-step::after,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .step-circle.completed::before,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .step-circle.completed::before,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .item-progress-tracker .step-circle.completed::before {
  right: 50% !important;
  left: auto !important;
}

html[lang^="ar"] body.woocommerce .woocommerce-message a.wc-forward,
html[dir="rtl"] body.woocommerce .woocommerce-message a.wc-forward,
body.rtl.woocommerce .woocommerce-message a.wc-forward {
  margin-left: 12px !important;
}

@media (max-width: 1024px) {
  html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table tbody > tr > td::before,
  html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table tbody > tr > td::before,
  body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .return-order-wrapper .mg-table tbody > tr > td::before {
    text-align: right !important;
  }
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-remove,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-remove,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .tinv-wishlist .wishlist_item .product-remove {
  position: absolute !important;
  top: 10px !important;
  right: auto !important;
  left: 10px !important;
  z-index: 5 !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input .show-password-input,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input .show-password-input,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input .show-password-input {
  right: auto !important;
  left: 14px !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input input[type="password"],
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input input[type="password"],
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input input[type="password"] {
  direction: ltr !important;
  text-align: left !important;
  padding-right: 14px !important;
  padding-left: 56px !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input-wrapper .password-toggle-btn,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input-wrapper .password-toggle-btn,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input-wrapper .password-toggle-btn {
  right: auto !important;
  left: 10px !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input-wrapper input[type="password"],
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input-wrapper input[type="password"],
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content .password-input-wrapper input[type="password"] {
  direction: ltr !important;
  text-align: left !important;
  padding-right: 14px !important;
  padding-left: 56px !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .woocommerce-password-strength,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form #pass-strength-result,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .woocommerce-password-strength,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form #pass-strength-result,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .woocommerce-password-strength,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form #pass-strength-result {
  text-align: right !important;
  font-size: 12px !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .woocommerce-password-hint,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .woocommerce-password-hint,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content form .woocommerce-password-hint {
  text-align: right !important;
  font-size: 12px !important;
}

html[dir="rtl"] .shop_detail_share,
html[dir="rtl"] .shop_detail_favorite,
body.rtl .shop_detail_share,
body.rtl .shop_detail_favorite {
  left: 40px;
  right: inherit;
}

html[lang^="ar"] main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions > a.mg-link,
html[dir="rtl"] main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions > a.mg-link,
body.rtl main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions > a.mg-link {
  margin-right: 10px !important;
  margin-left: 0 !important;
}

html[lang^="ar"] main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.mg-link img,
html[dir="rtl"] main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.mg-link img,
body.rtl main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.mg-link img {
  transform: scaleX(-1);
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table th,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table td,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table th,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table td,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table th,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table td {
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .mg-order-actions,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .mg-order-actions,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .mg-order-actions {
  direction: rtl !important;
  justify-content: flex-start !important;
}

html[lang^="ar"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address,
html[dir="rtl"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address,
body.rtl.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address,
html[lang^="ar"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address p,
html[dir="rtl"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address p,
body.rtl.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address p {
  direction: rtl !important;
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--phone,
html[dir="rtl"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--phone,
body.rtl.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--phone,
html[lang^="ar"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--email,
html[dir="rtl"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--email,
body.rtl.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--email {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: isolate;
}

html[lang^="ar"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--phone::before,
html[dir="rtl"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--phone::before,
body.rtl.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--phone::before,
html[lang^="ar"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--email::before,
html[dir="rtl"] body.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--email::before,
body.rtl.woocommerce-account .woocommerce-customer-details .addresses .woocommerce-column address .woocommerce-customer-details--email::before {
  position: static !important;
  float: none !important;
  margin: 0 !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"],
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"],
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] {
  display: inline-flex !important;
  direction: ltr !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  gap: 6px;
}

html[lang^="ar"] body.woocommerce-account a[href*="return-orders"],
html[lang^="ar"] body.woocommerce-account a[href*="return-tracking"],
html[dir="rtl"] body.woocommerce-account a[href*="return-orders"],
html[dir="rtl"] body.woocommerce-account a[href*="return-tracking"],
body.rtl.woocommerce-account a[href*="return-orders"],
body.rtl.woocommerce-account a[href*="return-tracking"] {
  color: #000 !important;
}

html[lang^="ar"] body.woocommerce-account a[href*="return-orders"] img,
html[lang^="ar"] body.woocommerce-account a[href*="return-orders"] svg,
html[lang^="ar"] body.woocommerce-account a[href*="return-orders"] i,
html[lang^="ar"] body.woocommerce-account a[href*="return-tracking"] img,
html[lang^="ar"] body.woocommerce-account a[href*="return-tracking"] svg,
html[lang^="ar"] body.woocommerce-account a[href*="return-tracking"] i,
html[dir="rtl"] body.woocommerce-account a[href*="return-orders"] img,
html[dir="rtl"] body.woocommerce-account a[href*="return-orders"] svg,
html[dir="rtl"] body.woocommerce-account a[href*="return-orders"] i,
html[dir="rtl"] body.woocommerce-account a[href*="return-tracking"] img,
html[dir="rtl"] body.woocommerce-account a[href*="return-tracking"] svg,
html[dir="rtl"] body.woocommerce-account a[href*="return-tracking"] i,
body.rtl.woocommerce-account a[href*="return-orders"] img,
body.rtl.woocommerce-account a[href*="return-orders"] svg,
body.rtl.woocommerce-account a[href*="return-orders"] i,
body.rtl.woocommerce-account a[href*="return-tracking"] img,
body.rtl.woocommerce-account a[href*="return-tracking"] svg,
body.rtl.woocommerce-account a[href*="return-tracking"] i {
  filter: brightness(0) !important;
  color: #000 !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] img,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] svg,
html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] i,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] img,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] svg,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] i,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] img,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] svg,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content a[href*="return-tracking"] i {
  transform: none !important;
}

html[lang^="ar"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td,
html[dir="rtl"] body.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td,
body.rtl.woocommerce-account main.my_account_page .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td {
  border-right: 1px solid #dedbd6 !important;
  border-left: 0 !important;
  text-align: right !important;
}

html[dir="rtl"] input:not([type="email"]):not([type="url"]):not([type="tel"]),
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body.rtl input:not([type="email"]):not([type="url"]):not([type="tel"]),
body.rtl textarea,
body.rtl select {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .header-shop-page .header_menu_label,
body.rtl .header-shop-page .header_menu_label {
  margin-right: clamp(24px, 3vw, 30px);
  margin-left: 0;
}

/* Keep English copy readable inside the RTL account login form. */
html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_title_center h1,
body.rtl.woocommerce-account:not(.logged-in) .login_title_center h1,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_title_center p,
body.rtl.woocommerce-account:not(.logged-in) .login_title_center p {
  direction: ltr !important;
  unicode-bidi: isolate;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_title_center h1,
body.rtl.woocommerce-account:not(.logged-in) .login_title_center h1 {
  text-align: right !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_title_center p,
body.rtl.woocommerce-account:not(.logged-in) .login_title_center p {
  text-align: center !important;
}

html[lang^="ar"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login label,
html[lang^="ar"] body.woocommerce-account:not(.logged-in) form.lost_reset_password label,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login label,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login label,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.lost_reset_password label,
body.rtl.woocommerce-account:not(.logged-in) form.lost_reset_password label {
  text-align: right !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login input.input-text,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login input.input-text {
  direction: ltr !important;
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account:not(.logged-in) form.lost_reset_password input.input-text,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.lost_reset_password input.input-text,
body.rtl.woocommerce-account:not(.logged-in) form.lost_reset_password input.input-text {
  direction: ltr !important;
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-account:not(.logged-in) form.lost_reset_password input.input-text::placeholder,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.lost_reset_password input.input-text::placeholder,
body.rtl.woocommerce-account:not(.logged-in) form.lost_reset_password input.input-text::placeholder {
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: isolate;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login input.input-text::placeholder,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login input.input-text::placeholder {
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: isolate;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login input[type="password"],
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login input[type="password"] {
  padding-right: 18px !important;
  padding-left: 44px !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .show-password-input,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login .show-password-input {
  right: auto !important;
  left: 14px !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .lost_password,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login .lost_password,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .register_link,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login .register_link,
html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_btn_wrap,
body.rtl.woocommerce-account:not(.logged-in) .login_btn_wrap {
  direction: ltr !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  unicode-bidi: isolate;
  text-align: right !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_btn_wrap > .text-center:has(> button[type="submit"]),
body.rtl.woocommerce-account:not(.logged-in) .login_btn_wrap > .text-center:has(> button[type="submit"]) {
  order: 1 !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_btn_wrap > .text-center:has(> p),
body.rtl.woocommerce-account:not(.logged-in) .login_btn_wrap > .text-center:has(> p) {
  order: 2 !important;
  text-align: right !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .lost_password,
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login .lost_password {
  text-align: left !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) .login_forgot_password,
body.rtl.woocommerce-account:not(.logged-in) .login_forgot_password {
  text-align: left !important;
}

html[dir="rtl"] body.woocommerce-account:not(.logged-in) form.woocommerce-form-login button[type="submit"],
body.rtl.woocommerce-account:not(.logged-in) form.woocommerce-form-login button[type="submit"] {
  float: right !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}

html[lang^="ar"] form.woocommerce-form-register label,
html[lang^="ar"] form.woocommerce-form-register .auth-form-group,
html[dir="rtl"] form.woocommerce-form-register label,
body.rtl form.woocommerce-form-register label,
html[dir="rtl"] form.woocommerce-form-register .auth-form-group,
body.rtl form.woocommerce-form-register .auth-form-group {
  text-align: right !important;
}

html[lang^="ar"] form.woocommerce-form-register h3,
html[dir="rtl"] form.woocommerce-form-register h3,
body.rtl form.woocommerce-form-register h3 {
  text-align: right !important;
}

html[lang^="ar"] form.woocommerce-form-register input.input-text,
html[dir="rtl"] form.woocommerce-form-register input.input-text,
body.rtl form.woocommerce-form-register input.input-text {
  direction: ltr !important;
  text-align: right !important;
}

html[lang^="ar"] form.woocommerce-form-register input.input-text::placeholder,
html[dir="rtl"] form.woocommerce-form-register input.input-text::placeholder,
body.rtl form.woocommerce-form-register input.input-text::placeholder {
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: isolate;
}

html[lang^="ar"] form.woocommerce-form-register input[type="password"],
html[dir="rtl"] form.woocommerce-form-register input[type="password"],
body.rtl form.woocommerce-form-register input[type="password"] {
  padding-right: 18px !important;
  padding-left: 44px !important;
}

html[lang^="ar"] form.woocommerce-form-register .show-password-input,
html[dir="rtl"] form.woocommerce-form-register .show-password-input,
body.rtl form.woocommerce-form-register .show-password-input {
  right: auto !important;
  left: 14px !important;
}

html[lang^="ar"] form.woocommerce-form-register .login_btn_wrap,
html[dir="rtl"] form.woocommerce-form-register .login_btn_wrap,
body.rtl form.woocommerce-form-register .login_btn_wrap {
  direction: ltr !important;
  align-items: stretch !important;
  text-align: right !important;
}

html[lang^="ar"] form.woocommerce-form-register .login_btn_wrap .text-center,
html[dir="rtl"] form.woocommerce-form-register .login_btn_wrap .text-center,
body.rtl form.woocommerce-form-register .login_btn_wrap .text-center {
  text-align: right !important;
}

html[lang^="ar"] form.woocommerce-form-register button[type="submit"],
html[dir="rtl"] form.woocommerce-form-register button[type="submit"],
body.rtl form.woocommerce-form-register button[type="submit"] {
  float: right !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Keep Google Maps controls and labels left-to-right on RTL pages. */
html[dir="rtl"] .contact_map .contact_map_canvas,
body.rtl .contact_map .contact_map_canvas,
html[dir="rtl"] .contact_map .gm-style,
body.rtl .contact_map .gm-style,
html[dir="rtl"] .contact_map .gm-style *,
body.rtl .contact_map .gm-style * {
  direction: ltr !important;
}

html[dir="rtl"] .contact_map .gm-style .gm-style-cc,
body.rtl .contact_map .gm-style .gm-style-cc,
html[dir="rtl"] .contact_map .gm-style .gmnoprint,
body.rtl .contact_map .gm-style .gmnoprint {
  text-align: left !important;
}

/* Keep the Arabic project quote copy inset from the image, like the English layout. */
html[dir="rtl"] .project_detail_quote_cta_content,
body.rtl .project_detail_quote_cta_content {
  padding-left: 0;
  padding-right: 100px;
}

@media (max-width: 1440px) {
  html[dir="rtl"] .project_detail_quote_cta_content,
  body.rtl .project_detail_quote_cta_content {
    padding-right: 70px;
  }
}

@media (max-width: 1024px) {
  html[dir="rtl"] .project_detail_quote_cta_content,
  body.rtl .project_detail_quote_cta_content {
    padding: 60px 4%;
  }
}

html[dir="rtl"] .personalization_materials_content,
body.rtl .personalization_materials_content {
  margin-left: 0;
  margin-right: 90px;
}

@media (max-width: 1440px) {
  html[dir="rtl"] .personalization_materials_content,
  body.rtl .personalization_materials_content {
    margin-right: 70px;
  }
}

@media (max-width: 1024px) {
  html[dir="rtl"] .personalization_materials_content,
  body.rtl .personalization_materials_content {
    margin-right: 45px;
  }
}

@media (max-width: 820px) {
  html[dir="rtl"] .personalization_materials_content,
  body.rtl .personalization_materials_content {
    margin-right: 0;
  }
}

html[dir="rtl"] .project_listing_category,
body.rtl .project_listing_category,
html[dir="rtl"] .project_listing_category_label,
body.rtl .project_listing_category_label {
  text-align: right;
}

html[dir="rtl"] .project_listing_category_arrow,
body.rtl .project_listing_category_arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] ::placeholder,
body.rtl ::placeholder {
  text-align: right;
}

/* Put the Arabic cart's promo action on the left and point its checkout arrow left. */
html[dir="rtl"] body.woocommerce-cart .promo-apply-btn,
body.rtl.woocommerce-cart .promo-apply-btn {
  right: auto !important;
  left: 6px !important;
}

html[dir="rtl"] body.woocommerce-cart .promo-code-input,
body.rtl.woocommerce-cart .promo-code-input {
  padding-right: 20px !important;
  padding-left: 120px !important;
}

html[dir="rtl"] body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn::after,
body.rtl.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn::after {
  content: '←' !important;
}

html[dir="rtl"] body.woocommerce-checkout #payment .payment-title,
body.rtl.woocommerce-checkout #payment .payment-title,
html[dir="rtl"] body.woocommerce-checkout .checkout-right .total-line.grand-total,
body.rtl.woocommerce-checkout .checkout-right .total-line.grand-total,
html[dir="rtl"] body.woocommerce-checkout .checkout-right .total-line.grand-total .amount,
body.rtl.woocommerce-checkout .checkout-right .total-line.grand-total .amount,
html[dir="rtl"] body.woocommerce-checkout .checkout-right .total-line.grand-total .vat-note,
body.rtl.woocommerce-checkout .checkout-right .total-line.grand-total .vat-note {
  text-align: right !important;
}

html[dir="rtl"] body.woocommerce-checkout .checkout-right .item-content-wrapper,
body.rtl.woocommerce-checkout .checkout-right .item-content-wrapper {
  align-items: flex-start !important;
}

html[dir="rtl"] body.woocommerce-checkout .enhanced-checkout-form .woocommerce-billing-fields .select2-container .select2-selection--single .select2-selection__rendered,
body.rtl.woocommerce-checkout .enhanced-checkout-form .woocommerce-billing-fields .select2-container .select2-selection--single .select2-selection__rendered,
html[dir="rtl"] body.woocommerce-checkout .enhanced-checkout-form .woocommerce-shipping-fields .select2-container .select2-selection--single .select2-selection__rendered,
body.rtl.woocommerce-checkout .enhanced-checkout-form .woocommerce-shipping-fields .select2-container .select2-selection--single .select2-selection__rendered {
  padding-right: 0 !important;
  padding-left: 34px !important;
}

html[dir="rtl"] body.woocommerce-checkout .enhanced-checkout-form .select2-container--default .select2-selection--single .select2-selection__arrow,
body.rtl.woocommerce-checkout .enhanced-checkout-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto !important;
  left: 10px !important;
}

html[dir="rtl"] body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.rtl.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
html[dir="rtl"] body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"],
body.rtl.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #000 !important;
  color: #fff !important;
}

html[dir="rtl"] body.woocommerce-checkout #payment .payment_box,
body.rtl.woocommerce-checkout #payment .payment_box,
html[dir="rtl"] body.woocommerce-checkout #payment .payment_box p,
body.rtl.woocommerce-checkout #payment .payment_box p,
html[dir="rtl"] body.woocommerce-checkout .checkout-right .item-price,
body.rtl.woocommerce-checkout .checkout-right .item-price,
html[dir="rtl"] body.woocommerce-checkout .checkout-right .quantity-info,
body.rtl.woocommerce-checkout .checkout-right .quantity-info,
html[dir="rtl"] body.woocommerce-checkout .checkout-right .price-info,
body.rtl.woocommerce-checkout .checkout-right .price-info {
  text-align: right !important;
}

@media (max-width: 767px) {
  html[dir="rtl"] body.woocommerce-checkout .checkout-right .item-price,
  body.rtl.woocommerce-checkout .checkout-right .item-price {
    align-self: stretch !important;
    width: 100% !important;
  }

  html[dir="rtl"] body.woocommerce-checkout .checkout-right .quantity-info,
  body.rtl.woocommerce-checkout .checkout-right .quantity-info,
  html[dir="rtl"] body.woocommerce-checkout .checkout-right .price-info,
  body.rtl.woocommerce-checkout .checkout-right .price-info {
    width: 100% !important;
    text-align: right !important;
  }
}

html[dir="rtl"] #add_payment_method #payment ul.payment_methods li input,
html[dir="rtl"] body.woocommerce-cart #payment ul.payment_methods li input,
html[dir="rtl"] body.woocommerce-checkout #payment ul.payment_methods li input,
body.rtl #add_payment_method #payment ul.payment_methods li input,
body.rtl.woocommerce-cart #payment ul.payment_methods li input,
body.rtl.woocommerce-checkout #payment ul.payment_methods li input {
  margin: 0 0 0 1em;
}

html[dir="rtl"] #add_payment_method #payment div.payment_box::before,
html[dir="rtl"] body.woocommerce-cart #payment div.payment_box::before,
html[dir="rtl"] body.woocommerce-checkout #payment div.payment_box::before,
body.rtl #add_payment_method #payment div.payment_box::before,
body.rtl.woocommerce-cart #payment div.payment_box::before,
body.rtl.woocommerce-checkout #payment div.payment_box::before {
  right: 0;
  left: inherit;
  margin: -1em 2em 0 0;
}

/* Center quantity values in the Arabic cart while keeping the digits LTR. */
html[dir="rtl"] body.woocommerce-cart .cart_page .e-quantity-controls .e-quantity-input,
body.rtl.woocommerce-cart .cart_page .e-quantity-controls .e-quantity-input {
  direction: ltr !important;
  text-align: center !important;
}

/* Place the Arabic newsletter field on the right and its submit arrow on the left. */
html[dir="rtl"] .footer_newsletter_form .wpcf7-form > p,
body.rtl .footer_newsletter_form .wpcf7-form > p {
  direction: rtl;
}

html[dir="rtl"] .footer_newsletter_field,
body.rtl .footer_newsletter_field {
  direction: rtl;
}

html[dir="rtl"] .footer_newsletter_form input[type="email"],
body.rtl .footer_newsletter_form input[type="email"] {
  text-align: right !important;
}

html[dir="rtl"] .footer_newsletter_form .footer_newsletter_submit,
html[dir="rtl"] .footer_newsletter_form .wpcf7-submit,
body.rtl .footer_newsletter_form .footer_newsletter_submit,
body.rtl .footer_newsletter_form .wpcf7-submit {
  transform: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m7 7-7-7 7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
}

html[dir="rtl"] .footer_newsletter_form .footer_newsletter_submit:hover,
html[dir="rtl"] .footer_newsletter_form .wpcf7-submit:hover,
body.rtl .footer_newsletter_form .footer_newsletter_submit:hover,
body.rtl .footer_newsletter_form .wpcf7-submit:hover {
  transform: translateX(-3px) !important;
}

/* Keep the duplicated client-logo marquee moving through the viewport in RTL. */
html[dir="rtl"] .logo_marquee_track,
body.rtl .logo_marquee_track {
  direction: ltr;
  flex-direction: row-reverse;
  animation-name: logo_marquee_scroll_rtl;
}

@keyframes logo_marquee_scroll_rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

/* Center the quantity selector in the Arabic single-product details column. */
html[lang^="ar"] body.single-product div.product .summary form.cart .quantity,
html[dir="rtl"] body.single-product div.product .summary form.cart .quantity,
body.rtl.single-product div.product .summary form.cart .quantity {
  display: flex !important;
  float: none !important;
  width: 100% !important;
  justify-content: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

@media (max-width: 820px) {
  html[dir="rtl"] .header_menu_panel,
  body.rtl .header_menu_panel {
    left: 0;
    right: auto;
  }

  html[dir="rtl"] .footer_nav,
  body.rtl .footer_nav {
    justify-content: flex-start;
  }

  html[dir="rtl"] .inner_banner_title,
  body.rtl .inner_banner_title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
}

/* Arabic status and validation messages: style text while preserving their backgrounds. */
html[lang^="ar"] body .woocommerce-error,
html[lang^="ar"] body .woocommerce-info,
html[lang^="ar"] body .woocommerce-message,
html[lang^="ar"] body .woocommerce-password-strength,
html[lang^="ar"] body #pass-strength-result,
html[lang^="ar"] body .woocommerce-password-hint,
html[lang^="ar"] body .wpcf7-not-valid-tip,
html[lang^="ar"] body .wpcf7-response-output,
html[dir="rtl"] body .woocommerce-error,
html[dir="rtl"] body .woocommerce-info,
html[dir="rtl"] body .woocommerce-message,
html[dir="rtl"] body .woocommerce-password-strength,
html[dir="rtl"] body #pass-strength-result,
html[dir="rtl"] body .woocommerce-password-hint,
html[dir="rtl"] body .wpcf7-not-valid-tip,
html[dir="rtl"] body .wpcf7-response-output,
body.rtl .woocommerce-error,
body.rtl .woocommerce-info,
body.rtl .woocommerce-message,
body.rtl .woocommerce-password-strength,
body.rtl #pass-strength-result,
body.rtl .woocommerce-password-hint,
body.rtl .wpcf7-not-valid-tip,
body.rtl .wpcf7-response-output {
  direction: rtl !important;
  text-align: right !important;
  font-size: 12px !important;
}

/* Keep editable text and form labels right-aligned throughout Arabic pages. */
html[lang^="ar"] body form,
html[dir="rtl"] body form,
body.rtl form {
  text-align: right !important;
}

html[lang^="ar"] body.woocommerce-cart .wc-empty-cart-message .woocommerce-info,
html[lang^="ar"] body.woocommerce-cart p.cart-empty.woocommerce-info,
html[dir="rtl"] body.woocommerce-cart .wc-empty-cart-message .woocommerce-info,
html[dir="rtl"] body.woocommerce-cart p.cart-empty.woocommerce-info,
body.rtl.woocommerce-cart .wc-empty-cart-message .woocommerce-info,
body.rtl.woocommerce-cart p.cart-empty.woocommerce-info {
  text-align: center !important;
}

html[lang^="ar"] body form label,
html[lang^="ar"] body form input:not(.qty):not(.e-quantity-input):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="image"]):not([type="hidden"]):not([type="range"]),
html[lang^="ar"] body form textarea,
html[lang^="ar"] body form select,
html[lang^="ar"] body form .select2-selection__rendered,
html[dir="rtl"] body form label,
html[dir="rtl"] body form input:not(.qty):not(.e-quantity-input):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="image"]):not([type="hidden"]):not([type="range"]),
html[dir="rtl"] body form textarea,
html[dir="rtl"] body form select,
html[dir="rtl"] body form .select2-selection__rendered,
body.rtl form label,
body.rtl form input:not(.qty):not(.e-quantity-input):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="image"]):not([type="hidden"]):not([type="range"]),
body.rtl form textarea,
body.rtl form select,
body.rtl form .select2-selection__rendered {
  text-align: right !important;
}

html[lang^="ar"] body.single-product div.product .summary form.cart .quantity input.qty,
html[dir="rtl"] body.single-product div.product .summary form.cart .quantity input.qty,
body.rtl.single-product div.product .summary form.cart .quantity input.qty {
  direction: ltr !important;
  text-align: center !important;
}

html[lang^="ar"] body form input::placeholder,
html[lang^="ar"] body form textarea::placeholder,
html[dir="rtl"] body form input::placeholder,
html[dir="rtl"] body form textarea::placeholder,
body.rtl form input::placeholder,
body.rtl form textarea::placeholder {
  text-align: right !important;
}
