/* TasheelExpress v73.5 — KSA mobile/tablet header single geometry owner
   English geometry is the reference; Arabic/Urdu mirror the slots only. */
@media (max-width:1180px){
  .tx-global-header-v26{overflow:visible!important;position:relative!important}
  .tx-global-header-v26 .txgh-inner{
    display:grid!important;
    grid-template-columns:max-content minmax(132px,1fr) 54px 54px!important;
    grid-template-areas:"brand market menu actions"!important;
    align-items:center!important;align-content:center!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:88px!important;height:auto!important;
    margin:0!important;padding:12px clamp(12px,2vw,22px)!important;
    column-gap:clamp(8px,1.4vw,16px)!important;row-gap:0!important;
    box-sizing:border-box!important;direction:ltr!important;overflow:visible!important
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{
    grid-template-columns:54px 54px minmax(132px,1fr) max-content!important;
    grid-template-areas:"actions menu market brand"!important;
    direction:ltr!important
  }

  /* Brand occupies one self-contained slot. Never mirror/translate the image. */
  .tx-global-header-v26 .txgh-logo{
    grid-area:brand!important;display:flex!important;align-items:center!important;justify-content:center!important;
    justify-self:start!important;align-self:center!important;
    width:auto!important;min-width:0!important;max-width:170px!important;height:auto!important;
    margin:0!important;padding:0!important;overflow:visible!important;white-space:nowrap!important;
    transform:none!important;translate:none!important;scale:1!important
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-logo{justify-self:end!important;direction:rtl!important}
  .tx-global-header-v26 .txgh-logo img,.tx-global-header-v26 .txgh-logo span{
    transform:none!important;translate:none!important;scale:1!important;margin:0!important
  }
  .tx-global-header-v26 .txgh-logo>.tx-brand-logo{
    display:block!important;width:clamp(126px,15vw,158px)!important;max-width:158px!important;height:auto!important;max-height:64px!important;
    object-fit:contain!important;object-position:center!important
  }
  .tx-global-header-v26 .tx-localized-brand{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:52px!important;min-width:52px!important;max-width:52px!important;height:58px!important;
    margin:0!important;padding:0!important;gap:0!important;overflow:visible!important;transform:none!important
  }
  .tx-global-header-v26 .tx-localized-brand .tx-brand-wordmark-local{display:none!important}
  .tx-global-header-v26 .tx-localized-brand .tx-brand-mark{
    display:block!important;flex:0 0 auto!important;width:42px!important;max-width:42px!important;height:54px!important;max-height:54px!important;
    object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important
  }

  /* Compact market switch: labels may exist in markup but cannot push into menu/search. */
  .tx-global-header-v26 .tx-market-switch{
    grid-area:market!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
    justify-self:stretch!important;align-self:center!important;
    width:100%!important;max-width:310px!important;min-width:0!important;height:58px!important;
    margin:0!important;padding:4px!important;box-sizing:border-box!important;overflow:hidden!important;
    direction:ltr!important;transform:none!important;z-index:2!important
  }
  html[dir="rtl"] .tx-global-header-v26 .tx-market-switch{justify-self:stretch!important}
  .tx-global-header-v26 .tx-market-switch>span,.tx-global-header-v26 .tx-market-switch>a{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    flex:1 1 50%!important;min-width:0!important;max-width:50%!important;height:48px!important;min-height:48px!important;
    margin:0!important;padding:0 9px!important;box-sizing:border-box!important;overflow:hidden!important;white-space:nowrap!important
  }
  .tx-global-header-v26 .tx-market-switch .market-word{
    display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    font-size:clamp(11px,1.5vw,15px)!important
  }
  .tx-global-header-v26 .tx-market-switch .tx-market-global-icon{
    display:block!important;flex:0 0 28px!important;width:28px!important;max-width:28px!important;height:28px!important;max-height:28px!important;
    object-fit:contain!important;object-position:center!important;margin:0!important;transform:none!important
  }

  /* One hamburger implementation only: the actual three spans. */
  .tx-global-header-v26 .txgh-mobile{
    grid-area:menu!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    justify-self:center!important;align-self:center!important;gap:6px!important;
    width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
    margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.24)!important;border-radius:14px!important;
    background:rgba(255,255,255,.04)!important;color:#fff!important;font-size:0!important;overflow:hidden!important;
    position:relative!important;z-index:3!important
  }
  .tx-global-header-v26 .txgh-mobile::before,.tx-global-header-v26 .txgh-mobile::after{content:none!important;display:none!important}
  .tx-global-header-v26 .txgh-mobile .tx-hamburger-line{
    display:block!important;position:static!important;width:26px!important;height:2px!important;min-height:2px!important;flex:0 0 2px!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#fff!important;box-shadow:none!important;
    opacity:1!important;transform:none!important;transition:transform .18s ease,opacity .18s ease!important
  }
  .tx-global-header-v26 .txgh-mobile[aria-expanded="true"] .tx-hamburger-line.top{transform:translateY(8px) rotate(45deg)!important}
  .tx-global-header-v26 .txgh-mobile[aria-expanded="true"] .tx-hamburger-line.mid{opacity:0!important}
  .tx-global-header-v26 .txgh-mobile[aria-expanded="true"] .tx-hamburger-line.bot{transform:translateY(-8px) rotate(-45deg)!important}

  /* Tablet/mobile action slot is search only. Login/quote stay in the menu/desktop path. */
  .tx-global-header-v26 .txgh-actions{
    grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:center!important;
    justify-self:end!important;align-self:center!important;width:54px!important;min-width:54px!important;max-width:54px!important;
    margin:0!important;padding:0!important;gap:0!important;overflow:visible!important;direction:ltr!important;z-index:3!important
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-actions{justify-self:start!important}
  .tx-global-header-v26 .txgh-actions>.txgh-langs,
  .tx-global-header-v26 .txgh-actions>.txgh-login,
  .tx-global-header-v26 .txgh-actions>.txgh-quote{display:none!important}
  .tx-global-header-v26 .tx-search-trigger{
    display:grid!important;place-items:center!important;flex:0 0 52px!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
    margin:0!important;padding:0!important;border-radius:50%!important;overflow:hidden!important;transform:none!important
  }

  .tx-global-header-v26 .txgh-mobile-inline-langs{display:none!important}
  .tx-global-header-v26>.tx-language-rail-shell.tx-language-dropdown-shell{
    position:relative!important;inset:auto!important;clear:both!important;display:flex!important;justify-content:center!important;
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0 10px 10px!important;box-sizing:border-box!important;
    direction:ltr!important;z-index:6!important
  }
  .tx-global-header-v26>.tx-language-rail-shell.tx-language-dropdown-shell>.tx-language-rail-toggle{
    margin:0 auto!important;max-width:min(330px,calc(100vw - 28px))!important;min-width:172px!important
  }
  .tx-global-header-v26>.tx-language-rail-shell.tx-language-dropdown-shell>.tx-language-dropdown-panel{
    left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 24px)!important
  }

  /* Exactly one horizontal Saudi market row at mobile/tablet widths. */
  .tx-saudi-marketbar{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .tx-saudi-marketbar>.inner{
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;
    gap:clamp(22px,4vw,44px)!important;width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:15px clamp(18px,4vw,48px)!important;box-sizing:border-box!important;
    overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important
  }
  .tx-saudi-marketbar>.inner::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
  .tx-saudi-marketbar>.inner>*{display:block!important;flex:0 0 auto!important;margin:0!important;white-space:nowrap!important}
  html[dir="rtl"] .tx-saudi-marketbar>.inner{direction:rtl!important}
  html:not([dir="rtl"]) .tx-saudi-marketbar>.inner{direction:ltr!important}
}

/* Mid-size landscape phones/tablets: remove market words before they can collide. */
@media (max-width:1040px){
  .tx-global-header-v26 .tx-market-switch{max-width:220px!important}
  .tx-global-header-v26 .tx-market-switch .market-word{display:none!important}
  .tx-global-header-v26 .tx-market-switch>span,.tx-global-header-v26 .tx-market-switch>a{max-width:50%!important;padding:0 5px!important}
  .tx-global-header-v26 .txgh-logo>.tx-brand-logo{width:132px!important;max-width:132px!important}
}

@media (max-width:760px){
  .tx-global-header-v26 .txgh-inner{
    grid-template-columns:max-content minmax(92px,1fr) 46px 46px!important;
    min-height:78px!important;padding:10px!important;column-gap:7px!important
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{grid-template-columns:46px 46px minmax(92px,1fr) max-content!important}
  .tx-global-header-v26 .txgh-logo{max-width:112px!important}
  .tx-global-header-v26 .txgh-logo>.tx-brand-logo{width:104px!important;max-width:104px!important;max-height:48px!important}
  .tx-global-header-v26 .tx-localized-brand{width:42px!important;min-width:42px!important;max-width:42px!important;height:48px!important}
  .tx-global-header-v26 .tx-localized-brand .tx-brand-mark{width:34px!important;max-width:34px!important;height:44px!important;max-height:44px!important}
  .tx-global-header-v26 .tx-market-switch{height:50px!important;max-width:none!important;padding:3px!important}
  .tx-global-header-v26 .tx-market-switch>span,.tx-global-header-v26 .tx-market-switch>a{height:42px!important;min-height:42px!important}
  .tx-global-header-v26 .tx-market-switch .tx-market-global-icon{width:24px!important;max-width:24px!important;height:24px!important;max-height:24px!important;flex-basis:24px!important}
  .tx-global-header-v26 .txgh-mobile,.tx-global-header-v26 .tx-search-trigger{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
  .tx-global-header-v26 .txgh-actions{width:46px!important;min-width:46px!important;max-width:46px!important}
  .tx-global-header-v26 .txgh-mobile .tx-hamburger-line{width:23px!important}
  .tx-saudi-marketbar>.inner{padding:13px 16px!important;gap:26px!important}
}

@media (max-width:420px){
  .tx-global-header-v26 .txgh-inner{grid-template-columns:max-content minmax(76px,1fr) 44px 44px!important;column-gap:5px!important;padding:8px!important}
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{grid-template-columns:44px 44px minmax(76px,1fr) max-content!important}
  .tx-global-header-v26 .txgh-logo>.tx-brand-logo{width:88px!important;max-width:88px!important}
  .tx-global-header-v26 .tx-localized-brand{width:36px!important;min-width:36px!important;max-width:36px!important}
  .tx-global-header-v26 .tx-localized-brand .tx-brand-mark{width:30px!important;max-width:30px!important;height:40px!important;max-height:40px!important}
  .tx-global-header-v26 .tx-market-switch{height:46px!important}
  .tx-global-header-v26 .tx-market-switch>span,.tx-global-header-v26 .tx-market-switch>a{height:38px!important;min-height:38px!important;padding:0 3px!important}
  .tx-global-header-v26 .txgh-mobile,.tx-global-header-v26 .tx-search-trigger{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .tx-global-header-v26 .txgh-actions{width:44px!important;min-width:44px!important;max-width:44px!important}
}
