/* Prime Social 2.0.6 — mobile header, one row, no JavaScript overrides.
   Loaded after legacy styles. Does not style orders, category icons, or wallet amounts. */
.ps-balance-mobile, .ps-mobile-lang-code { display: none; }
@layer prime-important {
@media (max-width: 767px) {
  html:root body .header.ps-one-row-header {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 110 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  html:root body .header.ps-one-row-header .header-inner,
  html:root body.page-new-order .header.ps-one-row-header .header-inner {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 8px !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  html:root body .header.ps-one-row-header .logo,
  html:root body.page-new-order .header.ps-one-row-header .logo,
  html:root body .header.ps-one-row-header .nav-desktop {
    display: none !important;
  }
  html:root body .header.ps-one-row-header .header-left,
  html:root body.page-new-order .header.ps-one-row-header .header-left {
    display: grid !important;
    direction: ltr !important;
    grid-template-columns: 36px minmax(0,1fr) 43px 38px 36px 36px !important;
    grid-template-rows: 40px !important;
    grid-auto-rows: 0 !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 5px !important;
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html:root body .header.ps-one-row-header .header-left > * {
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin: 0 !important;
    grid-row: 1 !important;
    align-self: center !important;
  }
  html:root body .header.ps-one-row-header .header-left > .theme-toggle,
  html:root body .header.ps-one-row-header .header-left > a.btn-sm {
    display: none !important;
  }
  html:root body .header.ps-one-row-header .header-left > #mobileMenuBtn {
    grid-column: 1 !important;
    display: flex !important;
  }
  html:root body .header.ps-one-row-header .header-left > .balance-pill {
    grid-column: 2 !important;
    display: flex !important;
  }
  html:root body .header.ps-one-row-header .header-left > #currencySwitch {
    grid-column: 3 !important;
    display: inline-flex !important;
  }
  html:root body .header.ps-one-row-header .header-left > #langSwitch {
    grid-column: 4 !important;
    display: inline-flex !important;
  }
  html:root body .header.ps-one-row-header .header-left > #pwaInstallBtnHeader {
    grid-column: 5 !important;
    display: inline-flex !important;
  }
  html:root body .header.ps-one-row-header .header-left > .pi-search-button {
    grid-column: 6 !important;
    display: inline-flex !important;
  }
  html:root body .header.ps-one-row-header .header-left > :is(#mobileMenuBtn,#pwaInstallBtnHeader,.pi-search-button) {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    flex: none !important;
  }
  html:root body .header.ps-one-row-header #pwaInstallBtnHeader .app-install-txt,
  html:root body .header.ps-one-row-header #pwaInstallBtnHeader .app-badge {
    display: none !important;
  }
  html:root body .header.ps-one-row-header .header-left > .balance-pill {
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-width: none !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    border-radius: 11px !important;
  }
  html:root body .header.ps-one-row-header .balance-pill .ps-balance-exact {
    display: none !important;
  }
  html:root body .header.ps-one-row-header .balance-pill .ps-balance-mobile {
    display: block !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-variant-numeric: tabular-nums !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    flex: 0 1 auto !important;
  }
  html:root body .header.ps-one-row-header .balance-pill i {
    display: inline-block !important;
    flex: 0 0 auto !important;
    font-size: 12px !important;
    margin: 0 !important;
  }
  html:root body .header.ps-one-row-header .header-left > .currency-switch {
    position: relative !important;
    direction: rtl !important;
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    overflow: visible !important;
    z-index: 111 !important;
    justify-content: center !important;
  }
  html:root body .header.ps-one-row-header .currency-switch > button {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    min-width: 0 !important;
    padding: 0 2px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  html:root body .header.ps-one-row-header #currencySwitch > button > span:not(.cur-code),
  html:root body .header.ps-one-row-header #langSwitch > button > span:not(.ps-mobile-lang-code),
  html:root body .header.ps-one-row-header #langSwitch > button > i {
    display: none !important;
  }
  html:root body .header.ps-one-row-header #langSwitch > button > .ps-mobile-lang-code {
    display: inline !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }
  html:root body .header.ps-one-row-header #currencySwitch > button > span.cur-code {
    display: inline !important;
    font-size: 10px !important;
    opacity: 1 !important;
  }
  html:root body .header.ps-one-row-header .currency-switch > button > i {
    font-size: 13px !important;
    margin: 0 !important;
  }
  html:root body .header.ps-one-row-header .currency-switch .currency-menu {
    width: max-content !important;
    min-width: 140px !important;
    max-width: min(220px,90vw) !important;
    direction: rtl !important;
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 6px) !important;
    z-index: 2000 !important;
  }
  html:root body .header.ps-one-row-header #langSwitch .currency-menu {
    right: 0 !important;
    left: auto !important;
  }
  html.prime-native-app:root body .header.ps-one-row-header #pwaInstallBtnHeader {
    display: none !important;
  }
}
@media (max-width: 359px) {
  html:root body .header.ps-one-row-header .header-left {
    grid-template-columns: 34px minmax(0,1fr) 39px 34px 34px 34px !important;
    gap: 4px !important;
  }
  html:root body .header.ps-one-row-header .header-left > :is(#mobileMenuBtn,#pwaInstallBtnHeader,.pi-search-button),
  html:root body .header.ps-one-row-header .header-left > .balance-pill,
  html:root body .header.ps-one-row-header .header-left > .currency-switch,
  html:root body .header.ps-one-row-header .currency-switch > button {
    height: 38px !important;
    min-height: 38px !important;
  }
}
@media (min-width: 768px) {
  html:root body .header.ps-one-row-header .balance-pill .ps-balance-mobile { display: none !important; }
  html:root body .header.ps-one-row-header .balance-pill .ps-balance-exact { display: inline !important; }
}

}
