/* TasheelExpress v73.8 — isolated KSA header frames.
   Each mobile/tablet header section owns a separate grid cell/frame.
   Children scale inside their own frame; no sibling may size or overlap another. */
@media (max-width:1180px){
  .tx-global-header-v26{overflow:visible!important}
  .tx-global-header-v26 .txgh-inner{
    display:grid!important;
    grid-template-columns:158px 240px minmax(0,1fr) 54px 54px!important;
    grid-template-areas:"brand market spacer menu search"!important;
    align-items:center!important;justify-items:stretch!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:88px!important;height:auto!important;
    padding:12px clamp(12px,2vw,22px)!important;
    gap:12px!important;box-sizing:border-box!important;
    overflow:visible!important;direction:ltr!important;
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{
    grid-template-columns:54px 54px minmax(0,1fr) 240px 158px!important;
    grid-template-areas:"search menu spacer market brand"!important;
    direction:ltr!important;
  }
  .tx-global-header-v26 .txh-frame{
    position:relative!important;display:grid!important;place-items:center!important;
    min-width:0!important;max-width:100%!important;min-height:0!important;
    margin:0!important;padding:0!important;box-sizing:border-box!important;
    overflow:hidden!important;isolation:isolate!important;contain:layout paint!important;
  }
  .tx-global-header-v26 .txh-frame-brand{grid-area:brand!important;width:158px!important;height:64px!important;justify-self:start!important}
  html[dir="rtl"] .tx-global-header-v26 .txh-frame-brand{justify-self:end!important}
  .tx-global-header-v26 .txh-frame-market{grid-area:market!important;width:240px!important;height:58px!important;justify-self:start!important}
  html[dir="rtl"] .tx-global-header-v26 .txh-frame-market{justify-self:end!important}
  .tx-global-header-v26 .txh-frame-menu{grid-area:menu!important;width:54px!important;height:54px!important;justify-self:center!important}

  /* Brand must fit its own frame only. */
  .tx-global-header-v26 .txh-frame-brand>.txgh-logo{
    display:grid!important;place-items:center!important;width:100%!important;height:100%!important;
    min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;
    transform:none!important;translate:none!important;scale:1!important;
  }
  .tx-global-header-v26 .txh-frame-brand>.txgh-logo>.tx-brand-logo{
    display:block!important;width:auto!important;height:auto!important;
    max-width:100%!important;max-height:100%!important;min-width:0!important;
    object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;
    transform:none!important;translate:none!important;scale:1!important;filter:none!important;
  }

  /* Market switch fits its frame. Text may never size the frame. */
  .tx-global-header-v26 .txh-frame-market>.tx-market-switch{
    display:flex!important;align-items:center!important;justify-content:stretch!important;
    width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:4px!important;box-sizing:border-box!important;overflow:hidden!important;
    direction:ltr!important;transform:none!important;white-space:nowrap!important;
  }
  .tx-global-header-v26 .txh-frame-market>.tx-market-switch>span,
  .tx-global-header-v26 .txh-frame-market>.tx-market-switch>a{
    flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:50%!important;
    height:calc(100% - 0px)!important;min-height:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:0 6px!important;box-sizing:border-box!important;overflow:hidden!important;
    text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  .tx-global-header-v26 .txh-frame-market .market-word{
    min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  .tx-global-header-v26 .txh-frame-market .tx-market-global-icon{
    display:block!important;flex:0 0 auto!important;width:28px!important;height:28px!important;
    max-width:28px!important;max-height:28px!important;object-fit:contain!important;margin:0!important;transform:none!important;
  }

  /* Menu owns a dedicated frame. */
  .tx-global-header-v26 .txh-frame-menu>.txgh-mobile{
    display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;
    width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;
  }

  /* Search/actions owns its own dedicated frame and cannot be enlarged by hidden desktop labels. */
  .tx-global-header-v26 .txgh-actions{
    grid-area:search!important;display:grid!important;place-items:center!important;
    width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;
    margin:0!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;justify-self:center!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 .txgh-actions>.tx-search-trigger{
    display:grid!important;place-items:center!important;width:100%!important;height:100%!important;
    min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
  }
  .tx-global-header-v26 .txgh-mobile-inline-langs{display:none!important}
  .tx-global-header-v26 .txgh-nav{grid-area:spacer!important}
}

@media (max-width:1040px){
  .tx-global-header-v26 .txgh-inner{
    grid-template-columns:132px 210px minmax(0,1fr) 52px 52px!important;
    grid-template-areas:"brand market spacer menu search"!important;
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{
    grid-template-columns:52px 52px minmax(0,1fr) 210px 132px!important;
    grid-template-areas:"search menu spacer market brand"!important;
  }
  .tx-global-header-v26 .txh-frame-brand{width:132px!important;height:58px!important}
  .tx-global-header-v26 .txh-frame-market{width:210px!important;height:56px!important}
  .tx-global-header-v26 .txh-frame-menu,.tx-global-header-v26 .txgh-actions{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important}
  .tx-global-header-v26 .txh-frame-market .market-word{display:none!important}
}

@media (max-width:760px){
  .tx-global-header-v26 .txgh-inner{
    grid-template-columns:clamp(78px,22vw,96px) minmax(126px,200px) minmax(0,1fr) 48px 48px!important;
    grid-template-areas:"brand market spacer menu search"!important;
    min-height:78px!important;padding:10px!important;gap:6px!important;
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{
    grid-template-columns:48px 48px minmax(0,1fr) minmax(126px,200px) clamp(78px,22vw,96px)!important;
    grid-template-areas:"search menu spacer market brand"!important;
  }
  .tx-global-header-v26 .txh-frame-brand{width:100%!important;height:50px!important;justify-self:stretch!important}
  html[dir="rtl"] .tx-global-header-v26 .txh-frame-brand{justify-self:stretch!important}
  .tx-global-header-v26 .txh-frame-market{width:100%!important;height:50px!important;justify-self:stretch!important}
  html[dir="rtl"] .tx-global-header-v26 .txh-frame-market{justify-self:stretch!important}
  .tx-global-header-v26 .txh-frame-menu,.tx-global-header-v26 .txgh-actions{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important}
  .tx-global-header-v26 .txh-frame-market>.tx-market-switch{padding:3px!important}
  .tx-global-header-v26 .txh-frame-market>.tx-market-switch>span,
  .tx-global-header-v26 .txh-frame-market>.tx-market-switch>a{padding:0 2px!important}
  .tx-global-header-v26 .txh-frame-market .market-word{display:none!important}
  .tx-global-header-v26 .txh-frame-market .tx-market-global-icon{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important}
}

@media (max-width:360px){
  .tx-global-header-v26 .txgh-inner{
    grid-template-columns:70px minmax(118px,1fr) 42px 42px!important;
    grid-template-areas:"brand market menu search"!important;
    padding:8px!important;gap:5px!important;
  }
  html[dir="rtl"] .tx-global-header-v26 .txgh-inner{
    grid-template-columns:42px 42px minmax(118px,1fr) 70px!important;
    grid-template-areas:"search menu market brand"!important;
  }
  .tx-global-header-v26 .txgh-nav{display:none!important}
  .tx-global-header-v26 .txh-frame-brand{height:44px!important}
  .tx-global-header-v26 .txh-frame-market{height:44px!important}
  .tx-global-header-v26 .txh-frame-menu,.tx-global-header-v26 .txgh-actions{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important}
  .tx-global-header-v26 .txh-frame-market .tx-market-global-icon{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important}
}
