/* FIGGZ Marketplace V259 - Global multilingual + RTL/LTR application layer */
.fz259-global-language-switcher{display:flex;align-items:center;gap:5px;min-height:36px;padding:3px 5px;border:1px solid #d8e1e9;border-radius:10px;background:#fff;direction:ltr!important;box-shadow:0 1px 2px rgba(15,23,42,.04);margin:0}
.fz259-global-language-switcher .fz259-globe{padding:0 3px;color:#66788a;font-size:14px}.fz259-lang-options{display:flex;gap:3px;align-items:center;direction:ltr!important}
.fz259-lang-btn{appearance:none;border:1px solid transparent;background:transparent;border-radius:7px;padding:5px 8px;min-width:66px;cursor:pointer;display:grid;gap:0;text-align:center;line-height:1.02;color:#41566a}
.fz259-lang-btn b{font-size:10px;font-weight:900;white-space:nowrap}.fz259-lang-btn small{font-size:6.5px;font-weight:900;letter-spacing:.03em;color:#7c8d9d;white-space:nowrap}.fz259-lang-btn:hover{background:#f4f7fa;border-color:#e0e7ee}.fz259-lang-btn.is-active{background:#13283d;color:#fff;border-color:#13283d}.fz259-lang-btn.is-active small{color:#d7e2eb}.fz259-lang-btn.is-loading{opacity:.55;pointer-events:none}
.fz259-standalone-switcher{position:fixed;z-index:100050;top:10px;right:14px}.admin-bar .fz259-standalone-switcher{top:42px}html[dir="rtl"] .fz259-standalone-switcher{right:auto;left:14px}

/* Direction is global and authoritative. */
html[dir="ltr"],html[dir="ltr"] body{direction:ltr}html[dir="rtl"],html[dir="rtl"] body{direction:rtl}html[dir="rtl"] body{text-align:right;font-family:Tahoma,"Segoe UI",Arial,sans-serif}
html[dir="rtl"] .fz14-topbar-inner,html[dir="rtl"] .fz14-toplinks,html[dir="rtl"] .fz14-mainrow,html[dir="rtl"] .fz14-actions,html[dir="rtl"] .fz14-navinner,html[dir="rtl"] .fz14-menu,html[dir="rtl"] .fz168-dashboard-grid,html[dir="rtl"] .woocommerce,html[dir="rtl"] .woocommerce form,html[dir="rtl"] .woocommerce table,html[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-navigation,html[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-content{direction:rtl}
html[dir="rtl"] .fz14-mainrow{grid-template-columns:auto 1fr 150px}html[dir="rtl"] .fz14-logo{grid-column:3}html[dir="rtl"] .fz14-search{grid-column:2}html[dir="rtl"] .fz14-actions{grid-column:1;justify-content:flex-start}
html[dir="rtl"] .fz14-search select{border-left:1px solid #e1e5ea;border-right:0}html[dir="rtl"] .fz14-search button{order:-1}html[dir="rtl"] .fz14-navline ul{padding-right:0}
html[dir="rtl"] .fz14-menu .sub-menu,html[dir="rtl"] .fz-nav .sub-menu,html[dir="rtl"] .fz-nav ul ul{left:auto!important;right:0!important}
html[dir="rtl"] .fz168-dashboard-grid{grid-template-columns:minmax(0,1fr) 250px}html[dir="rtl"] .fz168-dashboard-nav{grid-column:2}html[dir="rtl"] .fz168-dashboard-main{grid-column:1;grid-row:1}
html[dir="rtl"] .woocommerce table.shop_table th,html[dir="rtl"] .woocommerce table.shop_table td,html[dir="rtl"] .woocommerce form .form-row,html[dir="rtl"] .woocommerce form .form-row label{text-align:right}
html[dir="rtl"] .woocommerce .woocommerce-ordering,html[dir="rtl"] .woocommerce-page .woocommerce-ordering{float:left}html[dir="rtl"] .woocommerce .woocommerce-result-count,html[dir="rtl"] .woocommerce-page .woocommerce-result-count{float:right}
html[dir="rtl"] .woocommerce ul.products li.product .onsale{right:auto!important;left:8px!important}html[dir="rtl"] .fz-heart,html[dir="rtl"] .fz-add{right:auto;left:8px}html[dir="rtl"] .fz-tag{left:auto;right:0;border-radius:0 0 0 5px}
html[dir="rtl"] .fz-archive-banner:after,html[dir="rtl"] .fz-focus:after,html[dir="rtl"] .fz-promo:after{right:auto;left:var(--fz-rtl-decoration-left,14px)}

/* Technical identifiers remain LTR inside Arabic/RTL pages. */
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="url"],html[dir="rtl"] input[type="tel"],html[dir="rtl"] input[name*="sku"],html[dir="rtl"] input[name*="gtin"],html[dir="rtl"] input[name*="upc"],html[dir="rtl"] input[name*="asin"],html[dir="rtl"] input[name*="ean"],html[dir="rtl"] input[name*="phone"],html[dir="rtl"] input[name*="slug"],html[dir="rtl"] .figgz-ltr-value,html[dir="rtl"] code{direction:ltr!important;text-align:left!important;unicode-bidi:isolate;font-family:Arial,sans-serif}
html[dir="rtl"] [dir="ltr"]{unicode-bidi:isolate}

/* Marketplace Admin / Seller / Business shared frontend workspaces inherit page direction. */
html[dir="rtl"] body.figgz-marketplace-admin-standalone,html[dir="rtl"] body.figgz-seller-dashboard-standalone,html[dir="rtl"] body.figgz-business-dashboard-standalone{direction:rtl;text-align:right}
html[dir="rtl"] .fz177-app,html[dir="rtl"] .fz179-app,html[dir="rtl"] .fz205-workspace,html[dir="rtl"] .fz224-settings,html[dir="rtl"] .fz225-shipping,html[dir="rtl"] .fz240-app,html[dir="rtl"] .fz258-inventory{direction:rtl;text-align:right}

@media(max-width:820px){.fz259-global-language-switcher{padding:2px 3px}.fz259-lang-btn{min-width:54px;padding:4px 5px}.fz259-lang-btn small{display:none}.fz259-standalone-switcher{top:6px;right:8px}html[dir="rtl"] .fz259-standalone-switcher{right:auto;left:8px}html[dir="rtl"] .fz14-mainrow{grid-template-columns:1fr}.fz259-context-header{order:-1}}
