/* Spark Park Arabic Auction Professional v6 */
html[dir=rtl] body.spaa-v8{direction:rtl;text-align:right}.spaa-hide{display:none!important}
/* WCFM shell */
body.spaa-v8 #wcfm-main-contentainer,body.spaa-v8 .wcfm-content,body.spaa-v8 .wcfm-container,body.spaa-v8 .wcfm-collapse,body.spaa-v8 .wcfm-collapse-content,body.spaa-v8 .wcfm_menu_items{direction:rtl;text-align:right}
body.spaa-v8 .wcfm-page-headig{direction:rtl}body.spaa-v8 .wcfm-page-heading-text{margin-right:8px;margin-left:0}
body.spaa-v8 #wcfm_products_manage_form .wcfm_title,body.spaa-v8 #wcfm_products_manage_form label.wcfm_title{direction:rtl;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.75!important}
body.spaa-v8 #wcfm_products_manage_form input,body.spaa-v8 #wcfm_products_manage_form select,body.spaa-v8 #wcfm_products_manage_form textarea{direction:rtl;text-align:right}
body.spaa-v8 .wp-editor-area{direction:rtl!important;text-align:right!important}
body.spaa-v8 .wcfm-message,body.spaa-v8 .wcfm-validation-error,body.spaa-v8 .wcfm-error,body.spaa-v8 .woocommerce-message,body.spaa-v8 .woocommerce-error,body.spaa-v8 .woocommerce-info{direction:rtl!important;text-align:right!important;line-height:1.8!important}
/* WCFM product list */
body.spaa-v8 .wcfm_filters_wrap,body.spaa-v8 .wcfm_products_filter_wrap{direction:rtl;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body.spaa-v8 .wcfm_filters_wrap select,body.spaa-v8 .wcfm_filters_wrap input,body.spaa-v8 .wcfm_products_filter_wrap select,body.spaa-v8 .wcfm_products_filter_wrap input{min-height:40px;text-align:right;direction:rtl}
body.spaa-v8 table.dataTable,body.spaa-v8 .dataTables_wrapper{direction:rtl;text-align:right;width:100%!important}body.spaa-v8 table.dataTable th,body.spaa-v8 table.dataTable td{text-align:right!important;vertical-align:middle!important}
body.spaa-v8 .dataTables_filter{float:left!important;text-align:left!important}body.spaa-v8 .dataTables_length{float:right!important;text-align:right!important}body.spaa-v8 .dataTables_info{float:right!important}body.spaa-v8 .dataTables_paginate{float:left!important}
body.spaa-v8 .wcfm_uwa_auctions_menus{display:flex!important;flex-wrap:wrap;gap:10px;align-items:center;direction:rtl;padding:0!important;margin:0!important}body.spaa-v8 .wcfm_uwa_auctions_menu_item{float:none!important;margin:0!important}
/* product manager */
@media(min-width:769px){body.spaa-v8 #wcfm_products_manage_form .wcfm_title{width:36%!important;float:right!important;clear:right!important;margin:0 0 14px 2%!important;padding-top:7px!important}body.spaa-v8 #wcfm_products_manage_form .wcfm-text,body.spaa-v8 #wcfm_products_manage_form .wcfm-select,body.spaa-v8 #wcfm_products_manage_form .wcfm-textarea{width:62%!important;float:left!important;margin:0 0 14px!important}}
/* Auction frontend */
body.spaa-v8 .product-type-auction .summary,body.spaa-v8 .uwa_auction_product_ajax_change,body.spaa-v8 .uwa_auction_time,body.spaa-v8 .uwa_auction_form,body.spaa-v8 .uwa-custom-bid,body.spaa-v8 .uwa-timezone,body.spaa-v8 .checkreserve{direction:rtl;text-align:right}
body.spaa-v8 .product-type-auction .woo-ua-auction-price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:6px;direction:rtl;text-align:right}
body.spaa-v8 .product-type-auction .uwa_auction_condition,body.spaa-v8 .product-type-auction .uwa_auction_end_time,body.spaa-v8 .product-type-auction .uwa_auction_product_timezone{display:flex;gap:7px;align-items:center;justify-content:flex-start;direction:rtl;text-align:right}
body.spaa-v8 .product-type-auction .uwa_auction_product_countdown,body.spaa-v8 .product-type-auction #uwa_auction_countdown{direction:rtl}body.spaa-v8 .product-type-auction .countdown_section{text-align:center!important}
body.spaa-v8 .product-type-auction .uwa_auction_form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;direction:rtl}body.spaa-v8 .product-type-auction .uwa_auction_form .quantity{direction:ltr;display:flex;align-items:stretch;margin:0!important}
body.spaa-v8 .product-type-auction .uwa_inc_price_hint{width:100%;direction:rtl;text-align:right;margin-top:6px}body.spaa-v8 .product-type-auction .uwa_auction_reserve_not_met,body.spaa-v8 .product-type-auction .uwa_auction_reserve_met{direction:rtl;text-align:right!important;margin:10px 0!important}
body.spaa-v8 .woocommerce-Price-amount,body.spaa-v8 .uwa_inc_latest_price,body.spaa-v8 .bid_price{unicode-bidi:isolate;direction:ltr;display:inline-block}
/* WP Admin auction pages */
body.spaa-v8.wp-admin #wpbody-content,body.spaa-v8.wp-admin #wpbody-content form,body.spaa-v8.wp-admin #wpbody-content table{direction:rtl;text-align:right}body.spaa-v8.wp-admin #wpbody-content th,body.spaa-v8.wp-admin #wpbody-content td,body.spaa-v8.wp-admin #wpbody-content p,body.spaa-v8.wp-admin #wpbody-content label{text-align:right;white-space:normal;overflow-wrap:anywhere;line-height:1.75}
body.spaa-v8.wp-admin #wpbody-content input[type=text],body.spaa-v8.wp-admin #wpbody-content input[type=email],body.spaa-v8.wp-admin #wpbody-content input[type=number],body.spaa-v8.wp-admin #wpbody-content textarea,body.spaa-v8.wp-admin #wpbody-content select{direction:rtl;text-align:right}body.spaa-v8.wp-admin #wpbody-content input[type=url],body.spaa-v8.wp-admin #wpbody-content code,body.spaa-v8.wp-admin #wpbody-content pre{direction:ltr;text-align:left}
@media(max-width:768px){body.spaa-v8 #wcfm_products_manage_form .wcfm_title,body.spaa-v8 #wcfm_products_manage_form .wcfm-text,body.spaa-v8 #wcfm_products_manage_form .wcfm-select,body.spaa-v8 #wcfm_products_manage_form .wcfm-textarea,body.spaa-v8 #wcfm_products_manage_form .wcfm_half_ele{width:100%!important;float:none!important;display:block!important;margin:0 0 10px!important}body.spaa-v8 .dataTables_filter,body.spaa-v8 .dataTables_length,body.spaa-v8 .dataTables_info,body.spaa-v8 .dataTables_paginate{float:none!important;text-align:right!important;margin:8px 0!important}}


/* =====================================================================
   v7 FINAL RTL LAYOUT LAYER
   Scoped to WCFM / auction UI only. These rules intentionally come last.
   ===================================================================== */

/* Base Arabic rhythm */
body.spaa-v8 #wcfm-main-contentainer,
body.spaa-v8 #wcfm-main-contentainer *:not(.fa):not(.fas):not(.far):not(.fab):not(.wcfmfa),
body.spaa-v8 .wcfm_popup_form {
  box-sizing:border-box;
}
body.spaa-v8 #wcfm-main-contentainer { direction:rtl!important; text-align:right!important; }

/* ---------- Native SELECT: arrow must never overlap Arabic text ---------- */
body.spaa-v8 #wcfm-main-contentainer select,
body.spaa-v8 #wcfm-main-contentainer select.wcfm-select,
body.spaa-v8 .wcfm_popup_form select,
body.spaa-v8 select.spaa-rtl-select {
  direction:rtl!important;
  text-align:right!important;
  text-align-last:right!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important;
  appearance:none!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:left 12px center!important;
  background-size:12px 8px!important;
  padding-right:12px!important;
  padding-left:42px!important;
  min-height:42px!important;
  line-height:1.45!important;
}
body.spaa-v8 #wcfm-main-contentainer select::-ms-expand { display:none!important; }

/* ---------- Select2 RTL ---------- */
body.spaa-v8 #wcfm-main-contentainer .select2-container,
body.spaa-v8 .wcfm_popup_form .select2-container,
body.spaa-v8 .select2-container.spaa-rtl-select2 {
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-v8 #wcfm-main-contentainer .select2-container--default .select2-selection--single,
body.spaa-v8 .wcfm_popup_form .select2-container--default .select2-selection--single {
  min-height:42px!important;
  height:42px!important;
  direction:rtl!important;
  text-align:right!important;
  border-radius:4px!important;
}
body.spaa-v8 #wcfm-main-contentainer .select2-container--default .select2-selection--single .select2-selection__rendered,
body.spaa-v8 .wcfm_popup_form .select2-container--default .select2-selection--single .select2-selection__rendered {
  direction:rtl!important;
  text-align:right!important;
  padding-right:12px!important;
  padding-left:42px!important;
  line-height:40px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.spaa-v8 #wcfm-main-contentainer .select2-container--default .select2-selection--single .select2-selection__arrow,
body.spaa-v8 .wcfm_popup_form .select2-container--default .select2-selection--single .select2-selection__arrow {
  left:10px!important;
  right:auto!important;
  width:24px!important;
  height:40px!important;
}
body.spaa-v8 #wcfm-main-contentainer .select2-container--default .select2-selection--single .select2-selection__clear {
  float:left!important;
  margin-left:28px!important;
  margin-right:0!important;
}
body.spaa-v8 .select2-dropdown,
body.spaa-v8 .select2-results,
body.spaa-v8 .select2-results__options,
body.spaa-v8 .select2-search--dropdown { direction:rtl!important; text-align:right!important; }
body.spaa-v8 .select2-search--dropdown .select2-search__field { direction:rtl!important; text-align:right!important; padding:8px 10px!important; }
body.spaa-v8 .select2-results__option { direction:rtl!important; text-align:right!important; }

/* ---------- Product manager: stable two-column Arabic form ---------- */
@media (min-width: 769px) {
  body.spaa-v8 #wcfm_products_manage_form p.wcfm_title,
  body.spaa-v8 #wcfm_products_manage_form label.wcfm_title,
  body.spaa-v8 #wcfm_products_manage_form .wcfm_half_ele_title {
    width:34%!important;
    float:right!important;
    clear:right!important;
    margin:0 0 14px 2%!important;
    padding:9px 0 0 12px!important;
    text-align:right!important;
    direction:rtl!important;
    min-height:42px!important;
  }
  body.spaa-v8 #wcfm_products_manage_form input.wcfm-text,
  body.spaa-v8 #wcfm_products_manage_form input.wcfm_price,
  body.spaa-v8 #wcfm_products_manage_form input[type=number].wcfm-text,
  body.spaa-v8 #wcfm_products_manage_form input[type=time].wcfm-text,
  body.spaa-v8 #wcfm_products_manage_form select.wcfm-select,
  body.spaa-v8 #wcfm_products_manage_form textarea.wcfm-textarea,
  body.spaa-v8 #wcfm_products_manage_form .select2-container:not(.wcfm_full_ele) {
    width:64%!important;
    max-width:none!important;
    float:left!important;
    margin:0 0 14px!important;
  }
  body.spaa-v8 #wcfm_products_manage_form textarea.wcfm-textarea { min-height:110px; }
}

/* Full-width blocks/editors shouldn't inherit half-width floats */
body.spaa-v8 #wcfm_products_manage_form .wcfm_full_ele,
body.spaa-v8 #wcfm_products_manage_form .wp-editor-wrap,
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_general_fields .wcfm_full_ele {
  float:none!important;
}

/* Checkbox/radio rows read naturally right-to-left */
body.spaa-v8 #wcfm_products_manage_form .wcfm-checkbox,
body.spaa-v8 #wcfm_products_manage_form input[type=checkbox],
body.spaa-v8 #wcfm_products_manage_form input[type=radio] {
  margin-right:0!important;
  margin-left:7px!important;
  vertical-align:middle!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm-radio-group,
body.spaa-v8 #wcfm_products_manage_form .wcfm-checklist-group {
  direction:rtl!important;
  text-align:right!important;
}

/* Validation indicator belongs on the RIGHT in RTL, not the left */
body.spaa-v8 #wcfm-main-contentainer input.wcfm_validation_failed,
body.spaa-v8 #wcfm-main-contentainer select.wcfm_validation_failed,
body.spaa-v8 #wcfm-main-contentainer textarea.wcfm_validation_failed {
  border-left:1px solid #ccc!important;
  border-right:6px solid #f86c6b!important;
}
body.spaa-v8 #wcfm-main-contentainer input.wcfm_validation_success,
body.spaa-v8 #wcfm-main-contentainer select.wcfm_validation_success,
body.spaa-v8 #wcfm-main-contentainer textarea.wcfm_validation_success {
  border-left:1px solid #ccc!important;
  border-right:6px solid #4dbd74!important;
}

/* Tag helper text - remove old negative margins/float that push it to the wrong side */
body.spaa-v8 #wcfm_products_manage_form .wcfm_fetch_tag_cloud,
body.spaa-v8 #wcfm_products_manage_form .wcfm_side_tag_cloud {
  direction:rtl!important;
  text-align:right!important;
  float:none!important;
  max-width:none!important;
  margin-top:0!important;
  margin-bottom:14px!important;
  line-height:1.8!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_fetch_tag_cloud a { direction:rtl!important; text-align:right!important; }

/* Date/time stays readable */
body.spaa-v8 #wcfm-main-contentainer input[type=date],
body.spaa-v8 #wcfm-main-contentainer input[type=time],
body.spaa-v8 #wcfm-main-contentainer input[type=datetime-local],
body.spaa-v8 #wcfm-main-contentainer .hasDatepicker,
body.spaa-v8 #wcfm-main-contentainer input.wcfm-date-range {
  direction:ltr!important;
  text-align:left!important;
  unicode-bidi:isolate!important;
  padding-left:12px!important;
  padding-right:12px!important;
}

/* ---------- Tabs ---------- */
body.spaa-v8 #wcfm_products_manage_form .wcfm-tabWrap { direction:rtl!important; }
body.spaa-v8 #wcfm_products_manage_form .wcfm-tabWrap .page_collapsible {
  direction:rtl!important;
  text-align:right!important;
  padding-right:16px!important;
  padding-left:16px!important;
  line-height:1.5!important;
}

/* ---------- DataTables / list pages ---------- */
body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper { direction:rtl!important; }
body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_filter,
body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_length {
  direction:rtl!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_filter label,
body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_length label { direction:rtl!important; }
body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_filter input {
  margin:0!important;
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-v8 #wcfm-main-contentainer table.dataTable thead .sorting,
body.spaa-v8 #wcfm-main-contentainer table.dataTable thead .sorting_asc,
body.spaa-v8 #wcfm-main-contentainer table.dataTable thead .sorting_desc {
  background-position:left 8px center!important;
  padding-left:28px!important;
  padding-right:10px!important;
}

/* ---------- Filter bars ---------- */
body.spaa-v8 #wcfm-main-contentainer .wcfm_filters_wrap,
body.spaa-v8 #wcfm-main-contentainer .wcfm_products_filter_wrap,
body.spaa-v8 #wcfm-main-contentainer .wcfm_products_stock_manage_filter_wrap,
body.spaa-v8 #wcfm-main-contentainer .wcfm_enquiry_filter_wrap {
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-v8 #wcfm-main-contentainer .wcfm_filters_wrap .select2-container,
body.spaa-v8 #wcfm-main-contentainer .wcfm_products_filter_wrap .select2-container,
body.spaa-v8 #wcfm-main-contentainer .wcfm_products_stock_manage_filter_wrap .select2-container,
body.spaa-v8 #wcfm-main-contentainer .wcfm_enquiry_filter_wrap .select2-container {
  margin-left:8px!important;
  margin-right:0!important;
}

/* ---------- Fixed bottom submit bar ---------- */
body.spaa-v8 #wcfm_products_manage_form .wcfm_form_simple_submit_wrapper,
body.spaa-v8 .wcfm_form_simple_submit_wrapper {
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-v8 .wcfm_form_simple_submit_wrapper input,
body.spaa-v8 .wcfm_form_simple_submit_wrapper button,
body.spaa-v8 .wcfm_form_simple_submit_wrapper a {
  margin-left:10px!important;
  margin-right:0!important;
}

/* ---------- Auction frontend: coherent RTL but keep numbers isolated ---------- */
body.spaa-v8 .product-type-auction .summary,
body.spaa-v8 .product-type-auction .uwa_auction_product_ajax_change,
body.spaa-v8 .product-type-auction .uwa_auction_form,
body.spaa-v8 .product-type-auction .uwa-custom-bid,
body.spaa-v8 .product-type-auction .uwa-timezone,
body.spaa-v8 .product-type-auction .checkreserve {
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-v8 .product-type-auction input[type=number],
body.spaa-v8 .product-type-auction .woocommerce-Price-amount,
body.spaa-v8 .product-type-auction .uwa_inc_latest_price,
body.spaa-v8 .product-type-auction .bid_price {
  direction:ltr!important;
  unicode-bidi:isolate!important;
}

/* ---------- Mobile: label above field, no collisions ---------- */
@media (max-width:768px) {
  body.spaa-v8 #wcfm_products_manage_form p.wcfm_title,
  body.spaa-v8 #wcfm_products_manage_form label.wcfm_title,
  body.spaa-v8 #wcfm_products_manage_form .wcfm_half_ele_title,
  body.spaa-v8 #wcfm_products_manage_form input.wcfm-text,
  body.spaa-v8 #wcfm_products_manage_form input.wcfm_price,
  body.spaa-v8 #wcfm_products_manage_form select.wcfm-select,
  body.spaa-v8 #wcfm_products_manage_form textarea.wcfm-textarea,
  body.spaa-v8 #wcfm_products_manage_form .select2-container {
    width:100%!important;
    max-width:100%!important;
    float:none!important;
    clear:both!important;
    display:block!important;
    margin:0 0 10px!important;
  }
  body.spaa-v8 #wcfm_products_manage_form p.wcfm_title,
  body.spaa-v8 #wcfm_products_manage_form label.wcfm_title {
    padding:5px 0 0!important;
    min-height:auto!important;
  }
  body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_filter,
  body.spaa-v8 #wcfm-main-contentainer .dataTables_wrapper .dataTables_length {
    width:100%!important;
    float:none!important;
    justify-content:flex-start!important;
    margin:8px 0!important;
  }
}


/* =====================================================================
   v8 TAXONOMY / BRAND SIDEBAR — FIXED ARABIC LAYOUT
   ===================================================================== */
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .wcfm_product_manager_cats_checklist_fields,
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .spaa-tax-card{
  width:100%!important;
  max-width:100%!important;
  float:none!important;
  clear:both!important;
  margin:16px 0!important;
  padding:0!important;
  border:1px solid #dfe3e8!important;
  border-radius:8px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 2px 8px rgba(20,35,50,.04)!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .wcfm_product_manager_cats_checklist_fields > p.wcfm_title{
  width:100%!important;
  max-width:100%!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  margin:0!important;
  padding:11px 14px!important;
  min-height:0!important;
  background:#f7f9fb!important;
  border-bottom:1px solid #e7eaee!important;
  direction:rtl!important;
  text-align:right!important;
  line-height:1.5!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .wcfm_product_manager_cats_checklist_fields > p.wcfm_title strong{
  display:block!important;
  width:100%!important;
  direction:rtl!important;
  text-align:right!important;
  font-size:15px!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist{
  width:100%!important;
  max-width:100%!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  margin:0!important;
  padding:8px 10px!important;
  max-height:245px!important;
  min-height:48px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  direction:rtl!important;
  text-align:right!important;
  background:#fff!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist li{
  width:100%!important;
  max-width:100%!important;
  float:none!important;
  clear:both!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist label.selectit{
  width:100%!important;
  min-height:32px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  padding:5px 6px!important;
  margin:0!important;
  direction:rtl!important;
  text-align:right!important;
  white-space:normal!important;
  line-height:1.45!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist label.selectit:hover{
  background:#f6fafb!important;
  border-radius:5px!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist label.selectit input[type=checkbox]{
  flex:0 0 auto!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  order:0!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist label.selectit span{
  flex:1 1 auto!important;
  min-width:0!important;
  display:block!important;
  direction:rtl!important;
  text-align:right!important;
  overflow-wrap:anywhere!important;
}
body.spaa-v8 #wcfm_products_manage_form .spaa-tax-search{
  width:100%!important;
  padding:9px 10px!important;
  background:#fff!important;
  border-bottom:1px solid #eef0f2!important;
}
body.spaa-v8 #wcfm_products_manage_form .spaa-tax-search input{
  width:100%!important;
  max-width:100%!important;
  height:36px!important;
  float:none!important;
  margin:0!important;
  padding:6px 10px!important;
  direction:rtl!important;
  text-align:right!important;
  border:1px solid #d8dde3!important;
  border-radius:6px!important;
  box-shadow:none!important;
}

/* Tags inside the narrow image/taxonomy sidebar must stack vertically. */
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields p.wcfm_title.product_tags_ele{
  width:100%!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  margin:16px 0 6px!important;
  padding:0!important;
  min-height:0!important;
  text-align:right!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields textarea.product_tags_ele,
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields select.product_tags_ele,
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .select2-container.product_tags_ele{
  width:100%!important;
  max-width:100%!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  margin:0 0 8px!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields textarea.product_tags_ele{
  min-height:92px!important;
  padding:10px!important;
  resize:vertical!important;
}
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .wcfm_side_tag_cloud,
body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .wcfm_fetch_tag_cloud{
  width:100%!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  margin:0 0 14px!important;
  padding:8px 10px!important;
  background:#f7f9fb!important;
  border:1px solid #e6e9ed!important;
  border-radius:6px!important;
  direction:rtl!important;
  text-align:right!important;
  line-height:1.7!important;
  overflow-wrap:anywhere!important;
}

/* Parent/child taxonomy indentation works from the Arabic side. */
body.spaa-v8 #wcfm_products_manage_form ul.product_taxonomy_checklist ul.children{
  margin:0 18px 0 0!important;
  padding:0!important;
  border-right:2px solid #eef1f4!important;
  border-left:0!important;
}

/* Smaller screens: keep sidebar cards clean and full width. */
@media(max-width:768px){
  body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields .wcfm_product_manager_cats_checklist_fields{
    margin:12px 0!important;
  }
  body.spaa-v8 #wcfm_products_manage_form .wcfm_product_manager_gallery_fields ul.product_taxonomy_checklist{
    max-height:220px!important;
  }
}


/* =========================================================
   v8.1 - VEHICLE SPECIFICATION FIELDS: CLICK/EDIT SAFETY
   ========================================================= */
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel{
  position:relative!important;
  isolation:isolate;
}

body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel .wcfm_title{
  pointer-events:none!important;
  position:relative!important;
  z-index:1!important;
}

body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel input:not([type=hidden]),
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel select,
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel textarea,
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel .select2-container,
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-editable{
  pointer-events:auto!important;
  opacity:1!important;
  position:relative!important;
  z-index:5!important;
}

body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel input[readonly],
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel input:disabled,
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel select:disabled{
  cursor:text!important;
  background:#fff!important;
  color:inherit!important;
}

body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel select{
  cursor:pointer!important;
}

/* Avoid an adjacent absolute/overlay element stealing the click area. */
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel:before,
body.spaa-v8 #wcfm_products_manage_form .spaa-vehicle-spec-panel:after{
  pointer-events:none!important;
}


/* =========================================================
   v8.2 - VENDOR STORE SETUP WIZARD RTL / ARABIC
   ========================================================= */
body.spaa-store-setup-ar{
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-store-setup-ar .wcfm-store-setup,
body.spaa-store-setup-ar .wcfm-store-setup-wrapper,
body.spaa-store-setup-ar .wc-setup,
body.spaa-store-setup-ar .wc-setup-content,
body.spaa-store-setup-ar form{
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-store-setup-ar h1,
body.spaa-store-setup-ar h2,
body.spaa-store-setup-ar h3,
body.spaa-store-setup-ar p,
body.spaa-store-setup-ar label{
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-store-setup-ar input[type=text],
body.spaa-store-setup-ar input[type=email],
body.spaa-store-setup-ar input[type=tel],
body.spaa-store-setup-ar input[type=url],
body.spaa-store-setup-ar textarea,
body.spaa-store-setup-ar select{
  direction:rtl!important;
  text-align:right!important;
}
body.spaa-store-setup-ar select{
  background-position:left 12px center!important;
  padding-right:12px!important;
  padding-left:40px!important;
}
body.spaa-store-setup-ar .wc-setup-steps,
body.spaa-store-setup-ar ul.wc-setup-steps{
  direction:rtl!important;
  display:flex!important;
  flex-direction:row!important;
}
body.spaa-store-setup-ar .wc-setup-steps li{
  float:none!important;
  direction:rtl!important;
  text-align:center!important;
}
body.spaa-store-setup-ar .button,
body.spaa-store-setup-ar button,
body.spaa-store-setup-ar input[type=submit]{
  font-family:inherit!important;
  letter-spacing:0!important;
}
body.spaa-store-setup-ar .form-table th,
body.spaa-store-setup-ar .form-table td{
  text-align:right!important;
  direction:rtl!important;
}
body.spaa-store-setup-ar .select2-container .select2-selection{
  direction:rtl!important;
}
body.spaa-store-setup-ar .select2-container--default .select2-selection--single .select2-selection__rendered{
  text-align:right!important;
  padding-right:12px!important;
  padding-left:38px!important;
}
body.spaa-store-setup-ar .select2-container--default .select2-selection--single .select2-selection__arrow{
  right:auto!important;
  left:8px!important;
}
@media(max-width:782px){
  body.spaa-store-setup-ar .wc-setup-content,
  body.spaa-store-setup-ar .wcfm-store-setup-wrapper{
    width:calc(100% - 24px)!important;
    max-width:100%!important;
  }
  body.spaa-store-setup-ar .wc-setup-steps{
    overflow-x:auto!important;
    gap:12px!important;
  }
}
