/* DjimlyStore B2B v4.1.96 — deliberately scoped over older account/customer CSS.
   No payment/checkout, modal or wallet ledger rules are altered here. */
#djs-portal .djs-bottom-nav,
html body #djs-portal .djs-bottom-nav,
#djs-global-bottom-nav {display:none!important;visibility:hidden!important;pointer-events:none!important}
#djs-portal .djs-screen>.djs-scroller{scroll-padding-bottom:max(20px,env(safe-area-inset-bottom,0px))}

/* Header: compact white shell, still uses the real DjimlyStore logo. */
#djs-portal #djs-site-header{background:#fff!important;box-shadow:0 2px 14px rgba(22,78,148,.055)!important;border-bottom:1px solid #e7eef8!important}
#djs-portal #djs-site-header .djs-b2b-header-account{display:inline-flex!important;align-items:center;justify-content:center}
#djs-portal #djs-site-header .djs-b2b-header-account .ms{color:#135bc8!important;font-size:24px}
#djs-portal #djs-site-header .djs-header-menu-toggle{border-radius:13px}

/* Account: one compact vertical column on any viewport, no bulky recommendations. */
html body #djs-portal #djs-screen-home .djs-account-v2396,
html body #djs-portal #djs-screen-home main.djs-account-v2396{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  grid-template-columns:none!important;align-items:stretch!important;gap:13px!important;
  width:min(980px,calc(100% - 24px))!important;max-width:980px!important;
  margin:0 auto!important;padding:10px 0 24px!important;background:transparent!important;
}
#djs-portal #djs-screen-home{background:#f8fbff!important}
#djs-portal #djs-screen-home .djs-scroller{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))!important}
html body #djs-portal #djs-screen-home .djs-account-reference-topbar{
  position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;width:100%!important;min-height:54px!important;
  padding:4px 16px!important;margin:0!important;background:#fff!important;
  box-shadow:0 1px 6px #102d6010!important;z-index:2!important;
}
#djs-screen-home .djs-b2b-account-logo{border:0!important;background:none!important;color:#113769!important;font-size:19px!important;letter-spacing:-.6px;font-weight:800}
#djs-screen-home .djs-b2b-account-logo span{color:#1667da}
#djs-screen-home .djs-b2b-account-menu-toggle{display:flex;align-items:center;justify-content:center;padding:7px;color:#155dcc!important;border:0!important;background:none!important}
html body #djs-portal #djs-screen-home .djs-account-settings-pentagon{position:static!important;inset:auto!important;transform:none!important;flex-shrink:0!important}
html body #djs-portal #djs-screen-home .djs-account-reference-profile{
  box-sizing:border-box!important;width:100%!important;grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
  display:flex!important;align-items:center!important;gap:12px!important;min-height:0!important;
  margin:0!important;padding:13px!important;background:#fff!important;border:1px solid #e9effa!important;
  border-radius:17px!important;box-shadow:none!important;
}
#djs-portal #djs-screen-home .djs-account-avatar-wrap{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;flex:0 0 56px!important}
#djs-portal #djs-screen-home .djs-account-avatar{width:54px!important;height:54px!important}
#djs-portal #djs-screen-home .djs-account-reference-profile-copy{min-width:0!important;gap:3px!important}
#djs-portal #djs-screen-home .djs-account-reference-profile-copy h1{margin:0!important;font-size:19px!important;line-height:1.2!important;color:#15325a!important}
#djs-portal #djs-screen-home .djs-account-reference-profile-copy p{margin:0!important;font-size:11px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#djs-portal #djs-screen-home .djs-account-vip-check{font-size:11px!important;padding:1px 0!important}
#djs-portal #djs-screen-home .djs-account-status{display:none!important}
html body #djs-portal #djs-screen-home .djs-account-reference-balances{
  box-sizing:border-box!important;position:relative!important;grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;
  width:100%!important;margin:0!important;padding:9px 5px!important;min-height:0!important;
  background:#fff!important;border:1px solid #e9effa!important;border-radius:16px!important;box-shadow:none!important;
}
#djs-portal #djs-screen-home .djs-account-reference-balances button{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:69px!important;
  padding:7px 2px!important;margin:0!important;border:0!important;border-radius:10px!important;background:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:3px!important;
}
#djs-portal #djs-screen-home .djs-account-reference-balances button+button{border-left:1px solid #e9eef8!important;border-radius:0!important}
#djs-portal #djs-screen-home .djs-account-reference-balances strong{color:#173b78!important;font-size:13px!important;line-height:1.25!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#djs-portal #djs-screen-home .djs-account-reference-balances button>span:last-child{font-size:11px!important;color:#4e6282!important}
#djs-portal #djs-screen-home .djs-account-balance-modern-icon{margin:0!important;width:23px!important;height:23px!important;min-height:23px!important;background:transparent!important;color:#2563eb!important;box-shadow:none!important}
#djs-portal #djs-screen-home .djs-account-balance-modern-icon .ms{font-size:22px!important;color:#2563eb!important}
#djs-portal #djs-screen-home .djs-account-reference-balances em{display:none!important}

#djs-portal #djs-screen-home :is(.djs-b2b-order-shortcuts,.djs-b2b-services,.djs-b2b-account-settings){
  display:block;box-sizing:border-box;width:100%;margin:0;padding:13px;background:#fff;
  border:1px solid #e8effb;border-radius:17px;box-shadow:none;
}
#djs-portal .djs-b2b-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
#djs-portal .djs-b2b-section-head h2{font-size:15px!important;font-weight:750!important;line-height:1.3;margin:0!important;color:#17335e!important}
#djs-portal .djs-b2b-section-head>button{border:0!important;background:transparent!important;color:#145bd2!important;font-size:12px;font-weight:650;display:inline-flex;align-items:center;padding:3px}
#djs-portal .djs-b2b-section-head>button .ms{font-size:16px}
#djs-portal .djs-b2b-order-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;min-width:0}
#djs-portal .djs-b2b-order-rail button{border:0;background:transparent;min-width:0;padding:7px 0;display:flex;align-items:center;flex-direction:column;gap:8px;cursor:pointer}
#djs-portal .djs-b2b-order-rail button>.ms{display:grid;place-items:center;width:39px;height:39px;font-size:24px;color:#1664d5;background:#eef5ff;border-radius:12px}
#djs-portal .djs-b2b-order-rail b{font-size:10px;font-weight:600;color:#253855;text-align:center;white-space:normal;line-height:1.25}
#djs-portal .djs-b2b-swipe{display:inline-flex;align-items:center;gap:2px;font-size:11px;color:#6b7a94}
#djs-portal .djs-b2b-swipe .ms{font-size:18px}
#djs-portal .djs-b2b-services-rail{display:flex!important;flex-wrap:nowrap!important;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:3px 2px 6px}
#djs-portal .djs-b2b-services-rail::-webkit-scrollbar{display:none}
#djs-portal .djs-b2b-services-rail button{flex:0 0 74px;max-width:74px;min-width:0;border:0;background:none;padding:4px 0;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;scroll-snap-align:start}
#djs-portal .djs-b2b-services-rail .ms{display:grid;place-items:center;width:53px;height:53px;border-radius:14px;background:#edf5ff;color:#1261d7;font-size:26px}
#djs-portal .djs-b2b-services-rail b{font-size:11px;color:#263d5c;line-height:1.25;font-weight:600;text-align:center;white-space:normal}
#djs-portal #djs-screen-home .djs-b2b-business-entry{
  display:flex;align-items:center;gap:11px;padding:13px;width:100%;min-width:0;background:#fff;
  border:1px solid #e5eefb;border-radius:16px;text-align:left;cursor:pointer;color:#1b3155;
}
#djs-portal .djs-b2b-business-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;background:#eaf3ff;border-radius:12px;font-size:25px;color:#1b64d8}
#djs-portal .djs-b2b-business-entry>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#djs-portal .djs-b2b-business-entry b{font-size:14px;font-weight:750;color:#183b71}
#djs-portal .djs-b2b-business-entry small{font-size:11px;color:#6b7f9c}
#djs-portal .djs-b2b-business-entry>.ms:last-child{color:#2063d2}
#djs-portal #djs-screen-home details.djs-b2b-account-settings{padding:0}
#djs-portal .djs-b2b-account-settings summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:13px;color:#193860}
#djs-portal .djs-b2b-account-settings summary::-webkit-details-marker{display:none}
#djs-portal .djs-b2b-account-settings summary>.ms:first-child{font-size:23px;color:#2563eb}
#djs-portal .djs-b2b-account-settings summary>b{font-size:14px;flex:1}
#djs-portal .djs-b2b-account-settings[open] .djs-b2b-settings-chevron{transform:rotate(180deg)}
#djs-portal .djs-b2b-account-settings>div{border-top:1px solid #e8eef8;padding:6px 9px}
#djs-portal .djs-b2b-account-settings>div>button{border:0;width:100%;padding:11px 7px;display:flex;gap:10px;align-items:center;text-align:left;font-size:12px;color:#263f66;background:transparent}
#djs-portal .djs-b2b-account-settings>div>button>.ms:first-child{font-size:19px;color:#2563eb}
#djs-portal .djs-b2b-account-settings>div>button>.ms:last-child{margin-left:auto;font-size:18px;color:#95a4bb}
#djs-portal #djs-screen-home .djs-account-legacy-hooks{display:none!important}

/* Existing store sections/banners remain connected to admin settings; product tiles are roomier. */
#djs-portal #djs-screen-store .djs-preview-banner{border-radius:19px!important;overflow:hidden!important}
#djs-portal #djs-screen-store .djs-preview-cat-tile{border-radius:14px!important;min-width:0}
@media(max-width:899px){
  html body #djs-portal #djs-screen-store .djs-preview-cats-row{display:flex!important;grid-template-columns:none!important;gap:9px!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important}
  #djs-portal #djs-screen-store .djs-preview-cat-tile{flex:0 0 105px!important;width:105px!important;max-width:105px!important;scroll-snap-align:start}
  #djs-portal #djs-screen-store .djs-preview-cat-icon{margin:0 auto!important}
}

/* B2B partner application: scoped standalone page. */
#djs-portal #djs-screen-business{background:#f8fbff}
#djs-portal .djs-b2b-business-scroller{overflow-y:auto!important}
#djs-portal .djs-b2b-business-page{box-sizing:border-box;max-width:700px;margin:0 auto;padding:18px 14px 40px;color:#1a365e}
#djs-portal .djs-b2b-back{display:inline-flex;align-items:center;gap:7px;color:#2367d2;background:none;border:0;font-weight:700;padding:8px 0}
#djs-portal .djs-b2b-business-hero{background:linear-gradient(125deg,#104eac,#2475ec);color:#fff;border-radius:20px;padding:21px;display:flex;flex-direction:column;gap:9px}
#djs-portal .djs-b2b-business-hero>.ms{font-size:35px}
#djs-portal .djs-b2b-business-hero small{font-size:10px;letter-spacing:.11em;color:#dcecff}
#djs-portal .djs-b2b-business-hero h1{font-size:24px;margin:0;color:#fff}
#djs-portal .djs-b2b-business-hero p{font-size:13px;line-height:1.55;margin:0;color:#f2f7ff}
#djs-portal #djs-b2b-status{margin-top:15px}
#djs-portal .djs-b2b-application,#djs-portal .djs-b2b-message{background:#fff;border:1px solid #e8eefb;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:13px}
#djs-portal .djs-b2b-application h2,#djs-portal .djs-b2b-message h2{font-size:19px;color:#163a73;margin:0}
#djs-portal .djs-b2b-application p,#djs-portal .djs-b2b-message p{font-size:13px;color:#5d7190;line-height:1.55;margin:0}
#djs-portal .djs-b2b-application label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#263f64;font-weight:650}
#djs-portal .djs-b2b-application label:not(.djs-b2b-consent)>:is(input,select,textarea){box-sizing:border-box;display:block;width:100%;min-height:43px;padding:11px 12px;background:#fbfdff;color:#1d3558;border-radius:12px;border:1px solid #d7e2f1;font:inherit;font-weight:400;outline:none}
#djs-portal .djs-b2b-application label:not(.djs-b2b-consent)>:is(input,select,textarea):focus-visible{border-color:#2369dc;box-shadow:0 0 0 3px #dceafe}
#djs-portal .djs-b2b-application .djs-b2b-consent{flex-direction:row;align-items:flex-start;gap:10px;font-size:12px;line-height:1.45;font-weight:400}
#djs-portal .djs-b2b-consent input{width:17px;height:17px;flex:0 0 17px;accent-color:#1664d9}
#djs-portal .djs-b2b-application>button[type=submit],#djs-portal .djs-b2b-message>button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:13px;background:#1668dd;padding:13px 15px;color:#fff;font-size:14px;font-weight:750;cursor:pointer}
#djs-portal .djs-b2b-application>button:disabled{opacity:.55;cursor:not-allowed}
#djs-portal .djs-b2b-application>small{font-size:11px;color:#72829b;line-height:1.45}
#djs-portal #djs-b2b-application-feedback:not(:empty){background:#f0f6ff;border-radius:9px;padding:9px 11px;color:#174fa5;font-size:12px}
#djs-portal .djs-b2b-message>.ms{font-size:32px;color:#2563eb}
@media(min-width:900px){
  html body #djs-portal #djs-screen-home .djs-account-v2396{width:min(760px,calc(100% - 40px))!important;gap:15px!important}
  #djs-portal .djs-b2b-services-rail button{flex-basis:88px;max-width:88px}
}

/* Premium marketplace catalog: readable price/title cards, not cramped 3-column tiles. */
@media(max-width:760px){
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;max-width:100%!important;gap:12px!important;padding:4px 0 32px!important;
  }
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid)>.djs-product-card{
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;
    padding:8px!important;background:#fff!important;border:1px solid #e5edf9!important;
    border-radius:16px!important;box-shadow:0 4px 12px #1239630d!important;
  }
  html body #djs-portal #djs-screen-store #djs-product-grid .djs-product-card__img{
    width:100%!important;height:auto!important;aspect-ratio:1/1!important;
    overflow:hidden!important;border-radius:11px!important;background:#f3f7fd!important;
  }
  html body #djs-portal #djs-screen-store #djs-product-grid .djs-product-card__img img{
    display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
  }
  html body #djs-portal #djs-screen-store #djs-product-grid .djs-product-card__name{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    max-width:100%!important;overflow:hidden!important;font-size:12px!important;line-height:1.35!important;
  }
  html body #djs-portal #djs-screen-store #djs-product-grid .djs-product-card__price{font-size:14px!important;color:#135cca!important;font-weight:800!important}
}

/* Arrange header controls in a single row; the historical header used only five grid cells. */
html body #djs-portal #djs-site-header{
  box-sizing:border-box!important;grid-template-columns:42px minmax(85px,1fr) 42px 42px 42px!important;
  gap:6px!important;min-height:63px!important;padding:7px 12px!important;align-items:center!important;
}
#djs-portal #djs-site-header .djs-header-menu-toggle{grid-column:1!important;grid-row:1!important;width:42px!important;height:42px!important}
#djs-portal #djs-site-header .djs-logo{grid-column:2!important;grid-row:1!important;width:100%!important;max-width:165px!important;height:48px!important}
#djs-portal #djs-site-header .djs-b2b-header-search{grid-column:3!important;grid-row:1!important}
#djs-portal #djs-site-header .djs-topbar-cart{grid-column:4!important;grid-row:1!important}
#djs-portal #djs-site-header .djs-b2b-header-account{grid-column:5!important;grid-row:1!important}
#djs-portal #djs-site-header .djs-header-wallet{display:none!important}
#djs-portal #djs-site-header .djs-icon-btn{width:42px!important;height:42px!important;min-width:0!important}
#djs-portal #djs-site-header .djs-b2b-header-search .ms{color:#165ed1;font-size:23px}
@media(min-width:900px){
  html body #djs-portal #djs-site-header{
    grid-template-columns:48px 180px minmax(0,1fr) auto 48px 48px 48px!important;
    padding:8px 26px!important;min-height:72px!important;gap:12px!important;
  }
  #djs-portal #djs-site-header .djs-logo{max-width:180px!important}
  #djs-portal #djs-site-header .djs-header-wallet{display:flex!important;grid-column:4!important;grid-row:1!important}
  #djs-portal #djs-site-header .djs-b2b-header-search{grid-column:5!important}
  #djs-portal #djs-site-header .djs-topbar-cart{grid-column:6!important}
  #djs-portal #djs-site-header .djs-b2b-header-account{grid-column:7!important}
}
@media(max-width:365px){
  html body #djs-portal #djs-site-header{grid-template-columns:37px minmax(65px,1fr) 37px 37px 37px!important;gap:4px!important;padding:7px 8px!important}
  #djs-portal #djs-site-header :is(.djs-icon-btn,.djs-header-menu-toggle){width:37px!important;height:39px!important}
}

/* v4.2.02 account refinement: official brand logo, SVG pictograms, no stray hex settings control. */
html body #djs-portal #djs-screen-home .djs202-account-topbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;min-height:55px!important;padding:7px 15px!important}
html body #djs-portal #djs-screen-home .djs202-account-logo{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:1 1 auto!important;min-width:0!important;height:43px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html body #djs-portal #djs-screen-home .djs202-account-logo img{display:block!important;width:145px!important;max-width:100%!important;height:41px!important;object-fit:contain!important;object-position:left center!important}
html body #djs-portal #djs-screen-home .djs202-account-menu{display:grid!important;place-items:center!important;flex:0 0 39px!important;width:39px!important;height:39px!important;border:1px solid #e8eef8!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,51,104,.04)!important;color:#155bca!important;padding:8px!important}
html body #djs-portal #djs-screen-home .djs202-account-menu svg{display:block!important;width:23px!important;height:23px!important}
#djs-portal #djs-screen-home .djs202-svg{display:block!important;flex-shrink:0!important;width:22px!important;height:22px!important;color:#175bc8!important;fill:none!important;stroke:currentColor!important;stroke-width:1.85!important}
#djs-portal #djs-screen-home .djs-b2b-order-rail .djs202-svg{width:23px!important;height:23px!important}
#djs-portal #djs-screen-home .djs-b2b-order-rail button{gap:7px!important}
#djs-portal #djs-screen-home .djs-b2b-services-rail button{gap:6px!important}
#djs-portal #djs-screen-home .djs-b2b-order-rail .djs202-svg,#djs-portal #djs-screen-home .djs-b2b-services-rail .djs202-svg{padding:9px!important;box-sizing:content-box!important;max-width:100%!important;background:#edf5ff!important;border:1px solid #e3edfa!important;border-radius:13px!important}
#djs-portal #djs-screen-home .djs-b2b-services-rail .djs202-svg{width:26px!important;height:26px!important;padding:12px!important}
#djs-portal #djs-screen-home .djs-account-balance-modern-icon .djs202-svg{width:23px!important;height:23px!important}
#djs-portal #djs-screen-home .djs-account-reference-profile{border-color:#e4ebf8!important;box-shadow:0 3px 14px rgba(14,54,114,.045)!important}
#djs-portal #djs-screen-home .djs-account-reference-profile-copy h1{font-weight:800!important;letter-spacing:-.4px!important}
#djs-portal #djs-screen-home .djs-b2b-account-settings{overflow:hidden!important}
