.topbar .customer-header-summary { background:transparent; border:0; padding:0; gap:6px }
.topbar .wallet-id { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border:1px solid #48434b; border-radius:7px; background:#242126; color:#f0e8ed; text-decoration:none; white-space:nowrap; line-height:1.3 }
.topbar .wallet-id small,.topbar .wallet-id b,.topbar .wallet-id bdi { display:inline; font-size:11px; color:inherit; font-weight:650 }
.topbar .wallet-link,.header-account .wallet-link { display:inline-flex; align-items:center; gap:5px; min-width:0; padding:6px 12px; border:1px solid #32694c; border-radius:10px; background:#153828; color:#83ecac; text-decoration:none; line-height:1.3; direction:ltr; white-space:nowrap }
.topbar .wallet-link b,.topbar .wallet-link strong { color:inherit; font-size:clamp(18px,2.2vw,26px); font-weight:800; font-variant-numeric:tabular-nums }
.topbar .wallet-link em { color:inherit; font-size:14px; font-style:normal }
.topbar .wallet-link small { color:inherit; font-size:11px; order:2 }
.topbar .wallet-link:hover,.topbar .wallet-link:focus-visible { background:#205638 }
.topbar [hidden] { display:none!important }
@media(max-width:620px){.topbar .wallet-link small{display:none}.topbar .wallet-link{padding:5px 7px}.topbar .wallet-id{gap:3px;padding:4px 5px}.header-account{gap:5px}}

body>.topbar,.page-shell>.topbar{position:sticky;inset-block-start:0;z-index:20}
body>.login-topbar{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px clamp(14px,4vw,48px);background:#17171c;border-bottom:1px solid #363039}
html{scroll-padding-block-start:78px}

.topbar.bqt-customer-header {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center;
  gap:clamp(5px,1.4vw,18px); padding-inline:clamp(8px,2vw,28px); direction:rtl;
}
.bqt-header-end,.bqt-header-start { display:flex; align-items:center; gap:clamp(4px,1vw,12px); min-width:0; grid-row:1 }
.bqt-header-end { grid-column:3; justify-content:flex-end }
.bqt-header-start { grid-column:1 }
.topbar.bqt-customer-header :is(.customer-header-summary,.header-account) { grid-column:2; grid-row:1; margin:0; padding:0; min-width:0 }
.bqt-customer-header:has(:is(#identity,#customerHeaderSummary)[hidden]) .wallet-id { display:none!important }
.bqt-customer-header:has(#customerHeaderSummary:not([hidden])) #accountButton { display:none }
.bqt-header-brand { flex:none; font-weight:800; font-size:clamp(14px,2vw,20px); text-decoration:none; color:inherit; line-height:1.2; direction:ltr }
.bqt-header-start #menuButton { position:static!important; margin:0; flex:none; width:38px; height:38px; display:grid; place-items:center; padding:0 }
.bqt-header-start .wallet-id { flex:none }
.bqt-header-end .notification-btn {
  display:inline-flex; align-items:center; justify-content:center; flex:none; box-sizing:border-box;
  width:44px; height:44px; padding:0; border:0; border-radius:10px;
  background:transparent; color:inherit; text-decoration:none; cursor:pointer;
}
.bqt-header-end .notification-btn:hover { background:color-mix(in srgb, currentColor 8%, transparent); }
.bqt-header-end .notification-btn:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.notification-btn bqt-order-icon[data-glyph="bell"] {
  display:inline-flex; width:22px; height:22px; background:transparent; color:inherit; line-height:1;
}
.notification-btn svg { display:block; width:22px; height:22px; stroke-width:2; }
.bqt-header-search {
  box-sizing:border-box; display:flex; align-items:center; gap:3px; flex:0 1 260px; min-width:0; margin:0; margin-inline-start:0;
  height:36px; border:1px solid #393a41; border-radius:9px; background:#202126; color:#dddde3;
}
.bqt-header-search:focus-within { outline:2px solid currentColor; outline-offset:1px }
.bqt-header-search input { box-sizing:border-box; flex:1; width:0; min-width:0; height:100%; border:0; outline:0; box-shadow:none; padding:0 6px; background:transparent; color:inherit; font:inherit; font-size:13px }
.bqt-header-search button { display:grid; place-items:center; flex:none; width:30px; height:100%; padding:0; border:0; background:transparent; color:inherit; cursor:pointer }
.bqt-header-search svg { width:16px; height:16px }
.bqt-light-mode .bqt-header-search { background:#f4f6f9; border-color:#d9dde5; color:#323946 }
@media(max-width:680px){
  .bqt-customer-header .bqt-header-end :is(.round-button,.back-store){display:none}
  .bqt-header-start .wallet-id { flex-direction:column; gap:0; padding:2px 4px }
  .bqt-header-start #menuButton { width:32px; height:32px }
  .bqt-header-search { height:32px; gap:0 }
  .bqt-header-search button { width:23px }
  .bqt-header-search input { padding-inline:4px 0; font-size:12px }
}
@media(max-width:360px){
  .bqt-header-search button { display:none }
}
@media(max-width:440px){
  .topbar.bqt-customer-header:has(:is(.header-account,.customer-header-summary):not([hidden])) {
    grid-template-columns:minmax(0,1fr) auto; height:auto; padding-block:5px; row-gap:4px;
  }
  .bqt-customer-header:has(:is(.header-account,.customer-header-summary):not([hidden])) .bqt-header-start {
    grid-column:1 / -1; grid-row:2;
  }
  .bqt-header-start .bqt-header-search { flex:1; }
  .bqt-customer-header:has(:is(.header-account,.customer-header-summary):not([hidden])) .bqt-header-search button {
    display:grid;
  }
  html:has(.bqt-customer-header :is(.header-account,.customer-header-summary):not([hidden])) {
    scroll-padding-block-start:calc(max(44px,var(--bqt-logo-size,48px)) + 60px);
  }
}

.bqt-search-toggle { display:none }
.bqt-header-start #accountButton {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap;
  border:1px solid color-mix(in srgb,currentColor 16%,transparent); border-radius:999px;
  background:color-mix(in srgb,currentColor 6%,transparent); color:inherit;
  font-size:13px; font-weight:700; text-decoration:none;
}
.bqt-header-start #accountButton > i { display:grid; place-items:center; font-size:16px }
.bqt-header-start #accountButton:hover { background:color-mix(in srgb,currentColor 12%,transparent) }
@media (max-width:680px) {
  .topbar.bqt-customer-header.bqt-compact-ready {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap;
    box-sizing:border-box; height:56px; min-height:56px; padding:4px 8px; gap:4px;
  }
  .bqt-compact-ready .bqt-header-end, .bqt-compact-ready .bqt-header-start { flex:none; gap:0 }
  .bqt-compact-ready .bqt-header-brand { flex:none; width:min(34px,var(--bqt-logo-size,48px)); margin-inline-end:2px }
  .bqt-compact-ready .bqt-header-brand img { width:100%; height:34px; object-fit:contain }
  .bqt-compact-ready .bqt-header-end .notification-btn,
  .bqt-compact-ready .bqt-header-start :is(#menuButton,.bqt-search-toggle) {
    display:grid; place-items:center; width:40px; height:44px; padding:0; border:0;
    border-radius:10px; background:transparent; color:inherit; cursor:pointer;
  }
  .bqt-search-toggle i { display:grid; place-items:center; font-size:20px }
  .bqt-compact-ready .bqt-header-start #accountButton:not([hidden]) {
    display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 10px; line-height:1.4;
  }
  .bqt-compact-ready.bqt-search-open .bqt-header-start #accountButton:not([hidden]) { display:none }
  .bqt-compact-ready .wallet-id { min-height:40px; justify-content:center; border:0; background:transparent; padding-inline:5px }
  .bqt-compact-ready .wallet-link { max-width:100%; padding:5px 8px; overflow-x:auto; scrollbar-width:none }
  .bqt-compact-ready .wallet-link :is(strong,b) { font-size:16px }
  .bqt-compact-ready .wallet-link em { font-size:12px }
  .bqt-compact-ready .wallet-link small { display:none }
  .bqt-compact-ready .bqt-header-search { display:none }
  .bqt-compact-ready.bqt-search-open > :is(.bqt-header-end,.header-account,.customer-header-summary),
  .bqt-compact-ready.bqt-search-open .bqt-header-start > :is(#menuButton,.wallet-id,#accountButton) { display:none }
  .bqt-compact-ready.bqt-search-open .bqt-header-start { flex:1; gap:4px }
  .bqt-compact-ready.bqt-search-open .bqt-header-search {
    display:flex; flex:1; height:44px; margin:0; border-radius:12px;
  }
  .bqt-search-open .bqt-header-search input { padding-inline:12px 4px; font-size:16px }
  .bqt-search-open .bqt-header-search button { display:grid; width:44px }
  html:has(.bqt-customer-header.bqt-compact-ready) { scroll-padding-block-start:64px }
}

.topbar[data-header-off],.topbar [data-header-removed]{display:none!important}
.topbar[data-header-arranged]:not([data-header-off]){display:flex!important;align-items:center;gap:6px;flex-wrap:nowrap;justify-content:start;overflow-x:auto;scrollbar-width:none}
.topbar[data-header-arranged] :is(.bqt-header-start,.bqt-header-end){display:contents}
.topbar[data-header-arranged] [data-header-item]{flex-shrink:0}
.topbar[data-header-arranged] .bqt-header-search{flex:1 0 120px}
.topbar[data-header-arranged] .bqt-header-brand{margin-inline-start:auto}
.topbar .bqt-header-extra{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:0 6px;color:inherit;text-decoration:none;white-space:nowrap}
.topbar .header-item-caption{font-size:var(--header-item-text,13px);white-space:nowrap}
.topbar :is(#menuButton,.notification-btn,.bqt-header-brand,.wallet-id):has(>.header-item-caption){display:inline-flex;align-items:center;width:auto;gap:4px;padding-inline:5px}
.bqt-header-extra i,.header-chosen-icon{display:inline-grid;place-items:center;font-size:20px}
.topbar [data-header-glyph]>:is(i:not(.header-chosen-icon),svg,[data-lucide]:not(.header-chosen-icon),bqt-order-icon,img){display:none!important}
.topbar [data-header-glyph]>.header-chosen-icon{display:inline-grid!important}
.topbar [data-header-color] :is(i,svg,bqt-order-icon,[data-lucide]){color:var(--header-item-color)}
.topbar [data-header-size] :is(i,svg,bqt-order-icon,[data-lucide]){font-size:var(--header-item-icon);width:var(--header-item-icon);height:var(--header-item-icon)}
.topbar [data-header-font],.topbar [data-header-font] :is(span,input,b,bdi,em,strong){font-size:var(--header-item-text)}
.topbar [data-header-item=logo][data-header-size] img{width:var(--header-item-icon);height:var(--header-item-icon);object-fit:contain}
/* Equal side columns keep the logo centred even when the wallet or search changes width. */
.topbar.bqt-customer-header[data-centered-brand]:not([data-header-off]){
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;overflow:visible;box-sizing:border-box;
}
.topbar[data-centered-brand] > :is(.bqt-header-start,.bqt-header-end){
  display:flex;grid-row:1;min-width:0;max-width:100%;align-items:center;overflow-x:auto;scrollbar-width:none;
}
.topbar[data-centered-brand] > .bqt-header-start{grid-column:1;justify-content:flex-start}
.topbar[data-centered-brand] > .bqt-header-end{grid-column:3;justify-content:safe flex-end}
.topbar[data-centered-brand] > .bqt-header-brand{
  --brand-diameter:var(--brand-height,56px);
  display:flex;grid-area:1 / 2;justify-self:center;align-items:center;justify-content:center;
  position:relative;box-sizing:border-box;width:var(--brand-diameter);align-self:stretch;
  padding:0;margin:0;border:0;background:transparent;color:inherit;
}
.topbar[data-centered-brand] > .bqt-header-brand[data-header-size]{--brand-diameter:min(var(--header-item-icon),var(--brand-height,56px))}
.topbar[data-centered-brand] > .bqt-header-brand img{
  position:absolute;flex:none;display:block;width:var(--brand-diameter);height:var(--brand-diameter);max-width:none;object-fit:contain;
}
.topbar[data-centered-brand] > .bqt-header-brand .header-item-caption{position:absolute;inset-block-end:0;font-size:var(--header-item-text,12px);background:var(--field,#222);border-radius:6px;padding:0 4px}
.topbar.bqt-customer-header[data-centered-brand][data-height-locked=true]:not([data-header-off]){
  height:var(--bar-height,56px);min-height:var(--bar-height,56px);max-height:var(--bar-height,56px);padding-block:0;
  grid-template-rows:minmax(0,1fr)
}
.topbar[data-centered-brand][data-height-locked=true] > .bqt-header-brand[data-header-glyph][data-header-size]{
  --brand-diameter:min(var(--header-item-icon),calc(var(--bar-height,56px) + 10px))
}
.topbar[data-centered-brand][data-height-locked=true] > .bqt-header-brand img{
  translate:0 max(0px,calc((var(--brand-diameter) - var(--bar-height,56px)) / 2))
}
.topbar[data-centered-brand] > .bqt-header-brand:not([data-header-glyph]){
  --brand-diameter:var(--bqt-logo-size,48px)
}
.topbar[data-centered-brand] > .bqt-header-brand:not([data-header-glyph]) img{
  width:var(--brand-diameter);height:var(--brand-diameter)
}
.topbar[data-height-locked=true]:has(>.bqt-header-brand:not([data-header-glyph],[data-header-removed])):not(.bqt-search-open){
  margin-block-end:max(0px,calc(var(--bqt-logo-size,48px) - var(--bar-height,56px) - 10px))
}
.topbar[data-centered-brand][data-logo-motion=shrink][data-brand-descending] > .bqt-header-brand img{scale:.78}
.topbar[data-centered-brand][data-logo-motion=hide][data-brand-descending] > .bqt-header-brand:not(:focus-within){visibility:hidden;opacity:0;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
  .topbar.bqt-customer-header[data-centered-brand]{animation:shop-send-reveal 200ms ease-out}
  .topbar[data-centered-brand] > .bqt-header-brand{transition:opacity 200ms ease-out,visibility 0s}
  .topbar[data-centered-brand][data-logo-motion=hide][data-brand-descending] > .bqt-header-brand:not(:focus-within){transition-delay:0s,200ms}
  .topbar[data-centered-brand][data-logo-motion=shrink] > .bqt-header-brand img{transition:scale 200ms ease-out}
}
@media(prefers-reduced-motion:reduce){.topbar[data-centered-brand][data-logo-motion=shrink][data-brand-descending] > .bqt-header-brand img{scale:1}}
@media(max-width:680px){
 .topbar.bqt-customer-header[data-centered-brand].bqt-compact-ready{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
 .topbar.bqt-customer-header[data-centered-brand] > .bqt-header-start{grid-area:1 / 1}
 .topbar.bqt-search-open[data-header-arranged] [data-header-item]:not([data-header-item=search]){display:none!important}
 .topbar[data-header-arranged] .bqt-header-search{flex:1}
 .topbar .bqt-header-extra{min-width:36px}
 .topbar .bqt-header-extra span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
}

.topbar.bqt-compact-ready:not(.bqt-search-open) .bqt-header-search{display:none}
.topbar.bqt-compact-ready .bqt-search-toggle,
.topbar.bqt-compact-ready :is(#accountButton,.wallet-id,.back-store,.bqt-header-extra):not([hidden],[data-header-removed]){
  display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:40px;min-width:40px;height:44px;
  gap:0;padding:0;border:0;border-radius:10px;background:transparent;color:inherit;text-decoration:none;cursor:pointer;
}
.topbar.bqt-compact-ready .bqt-search-toggle i,.topbar.bqt-compact-ready :is(#accountButton,.wallet-id,.back-store) > i{font-size:20px}
.topbar :is(#accountButton,.bqt-header-extra)>span,.topbar .header-item-caption,.topbar .wallet-link small{display:none!important}
.topbar.bqt-compact-ready:has(#customerHeaderSummary:not([hidden])) #accountButton{display:none!important}
.topbar.bqt-customer-header.bqt-compact-ready.bqt-search-open:not([data-header-off]){display:grid!important;grid-template-columns:minmax(0,1fr) auto}
.topbar.bqt-compact-ready.bqt-search-open > :is(.bqt-header-start,.bqt-header-end){display:contents}
.topbar.bqt-compact-ready.bqt-search-open :is(.bqt-header-start,.bqt-header-end) > :not(.bqt-header-search,.bqt-search-toggle),
.topbar.bqt-compact-ready.bqt-search-open > :is(.bqt-header-brand,.header-account,.customer-header-summary){display:none!important}
.topbar.bqt-compact-ready.bqt-search-open .bqt-header-search{display:flex;grid-area:1 / 1;width:100%;height:42px;margin:0}
.topbar.bqt-compact-ready.bqt-search-open .bqt-search-toggle{grid-area:1 / 2}
@media(prefers-reduced-motion:no-preference){
 .topbar.bqt-compact-ready.bqt-search-open .bqt-header-search{animation:bqt-search-expand 180ms ease-out}
 @keyframes bqt-search-expand{from{opacity:0;clip-path:inset(0 0 0 90% round 10px)}to{opacity:1;clip-path:inset(0 round 10px)}}
}

@media (max-width:680px) {
  .topbar.bqt-compact-ready[data-centered-brand]:not(.bqt-search-open) :is(.header-account,.customer-header-summary):not([hidden],[data-header-removed]),
  .topbar.bqt-compact-ready[data-centered-brand] .wallet-link {
    flex:none;width:max-content;max-width:none;flex-wrap:nowrap;overflow:visible;white-space:nowrap;
  }
  .topbar.bqt-customer-header.bqt-compact-ready[data-wallet-fit]:not(.bqt-search-open) {
    gap:2px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  }
  .topbar.bqt-compact-ready[data-wallet-fit] > .bqt-header-brand,
  .topbar.bqt-compact-ready[data-wallet-fit] > .bqt-header-brand:not([data-header-glyph]) img {
    width:min(var(--brand-diameter),var(--wallet-logo-room));
  }
  .topbar.bqt-compact-ready[data-wallet-fit] > .bqt-header-brand:not([data-header-glyph]) img {
    height:min(var(--brand-diameter),var(--wallet-logo-room));
  }
  .topbar.bqt-compact-ready[data-wallet-fit][data-centered-brand][data-height-locked=true] > .bqt-header-brand:not([data-header-glyph]) img {
    translate:0 max(0px,calc((min(var(--brand-diameter),var(--wallet-logo-room)) - var(--bar-height,56px)) / 2));
  }
  .topbar.bqt-compact-ready[data-wallet-fit][data-height-locked=true]:has(>.bqt-header-brand:not([data-header-glyph],[data-header-removed])):not(.bqt-search-open) {
    margin-block-end:max(0px,calc(min(var(--bqt-logo-size,48px),var(--wallet-logo-room)) - var(--bar-height,56px) - 10px));
  }
  .topbar.bqt-customer-header.bqt-compact-ready[data-wallet-fit="offset"]:not(.bqt-search-open) {
    grid-template-columns:max-content minmax(0,1fr) max-content;
  }
  .topbar.bqt-customer-header.bqt-compact-ready[data-wallet-fit="wrap"]:not(.bqt-search-open) {
    grid-template-columns:minmax(min-content,1fr) auto minmax(min-content,1fr);
    height:auto;max-height:none;grid-template-rows:auto;
  }
  .topbar.bqt-compact-ready[data-wallet-fit="wrap"] > :is(.bqt-header-start,.bqt-header-end) {
    flex-wrap:wrap;min-width:min-content;overflow:visible;
  }
}
