/* BAZARCO PRO 380.8.3.4.2.1.18
 * Natural-ratio platform identity, collision-free responsive header,
 * centered plans store showcase, and subscription invoice experience.
 */

/* Logo-only is a bounded identity canvas, never a stretched white banner.
 * The image keeps its source ratio and is never cropped or distorted. */
.market-header .brand.premium-brand.platform-brand-v3808342116.identity-logo-only{
  justify-content:center!important;
  min-height:66px!important;
  padding:4px 12px!important;
  overflow:visible!important;
}
.market-header .brand.premium-brand.platform-brand-v3808342116.identity-logo-only .brand-mark.platform-brand-mark-v3808342116{
  order:1!important;
  flex:0 1 224px!important;
  width:min(100%,224px)!important;
  min-width:0!important;
  max-width:224px!important;
  height:58px!important;
  max-height:58px!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.market-header .brand.premium-brand.platform-brand-v3808342116.identity-logo-only .brand-mark.platform-brand-mark-v3808342116 img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:auto!important;
  padding:0!important;
  border-radius:10px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.market-header .brand.premium-brand.platform-brand-v3808342116.identity-logo-only .platform-brand-name-v3808342116{display:none!important}

/* Combined identity stays compact: the mark is fully visible and the name
 * gets the remaining width without pushing the search field. */
.market-header .brand.premium-brand.platform-brand-v3808342116.identity-name-logo .brand-mark.platform-brand-mark-v3808342116 img{
  object-fit:contain!important;
  object-position:center!important;
  padding:2px!important;
}

/* Desktop remains actions | search | identity. Tablet gets identity + search
 * on the first row and an independent action rail below, so icons cannot
 * overlap or squeeze the input. */
@media (min-width:781px) and (max-width:1180px){
  .market-header .main-header{
    min-height:150px!important;
    padding-block:13px!important;
  }
  .market-header .header-grid{
    grid-template-columns:minmax(0,1fr) minmax(220px,320px)!important;
    grid-template-areas:"search brand" "actions actions"!important;
    gap:11px 14px!important;
    align-items:center!important;
  }
  .market-header .brand.premium-brand{
    justify-self:end!important;
    width:100%!important;
    max-width:320px!important;
    min-width:0!important;
  }
  .market-header .global-search{
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  .market-header .header-actions{
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    overscroll-behavior-inline:contain!important;
    scrollbar-width:none!important;
    padding:1px 0 3px!important;
  }
  .market-header .header-actions::-webkit-scrollbar{display:none!important}
}

/* Phones use three explicit rows. The action rail scrolls by touch and never
 * shares a grid cell with the brand or search field. */
@media (max-width:780px){
  .market-header .main-header{
    min-height:0!important;
    padding-block:11px!important;
    overflow:hidden!important;
  }
  .market-header .header-grid{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"brand" "search" "actions"!important;
    gap:9px!important;
  }
  .market-header .brand.premium-brand{
    justify-self:center!important;
    width:min(100%,360px)!important;
    max-width:360px!important;
    min-width:0!important;
  }
  .market-header .global-search{
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  .market-header .global-search input{min-width:0!important;width:100%!important}
  .market-header .header-actions{
    justify-content:flex-start!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    overscroll-behavior-inline:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    padding:1px 2px 3px!important;
  }
  .market-header .header-actions::-webkit-scrollbar{display:none!important}
  .market-header .header-actions>*{flex:0 0 auto!important}
}
@media (max-width:520px){
  .market-header .brand.premium-brand.platform-brand-v3808342116.identity-logo-only{
    min-height:54px!important;
    padding:3px 9px!important;
  }
  .market-header .brand.premium-brand.platform-brand-v3808342116.identity-logo-only .brand-mark.platform-brand-mark-v3808342116{
    flex-basis:180px!important;
    width:min(100%,180px)!important;
    max-width:180px!important;
    height:48px!important;
    max-height:48px!important;
  }
}

/* Incomplete rows stay centered at every item count instead of beginning at
 * the RTL edge. The card width remains readable on wide screens. */
.plans-live-stores-v3808342118 .plans-live-stores-grid-v3808342118{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(250px,320px))!important;
  justify-content:center!important;
  justify-items:stretch!important;
  align-items:stretch!important;
  gap:18px!important;
  width:100%!important;
  max-width:1360px!important;
  margin-inline:auto!important;
}
.plans-live-stores-v3808342118 .plans-live-store-card-v3808342118{
  width:100%!important;
  max-width:320px!important;
  min-width:0!important;
  margin:0 auto!important;
  justify-self:center!important;
}
.plans-live-stores-v3808342118 .plans-live-store-card-v3808342118 h3{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
}
@media (max-width:720px){
  .plans-live-stores-v3808342118 .section-head.split{
    align-items:center!important;
    text-align:center!important;
  }
  .plans-live-stores-v3808342118 .plans-live-stores-grid-v3808342118{
    grid-template-columns:minmax(0,min(100%,420px))!important;
    gap:14px!important;
  }
  .plans-live-stores-v3808342118 .plans-live-store-card-v3808342118{max-width:420px!important}
}

/* Invoice access lives inside the subscription context rather than forcing
 * the vendor to hunt through the finance menu. */
.vendor-plan-status-card-v189525.has-subscription-invoice-v3808342118{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
}
.subscription-invoice-card-v3808342118{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  margin-top:3px!important;
  padding:15px!important;
  border:1px solid #bfdbfe!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#eff6ff,#f5f3ff)!important;
  box-sizing:border-box!important;
}
.subscription-invoice-card-v3808342118 .subscription-invoice-copy-v3808342118{min-width:0!important}
.subscription-invoice-card-v3808342118 .subscription-invoice-kicker-v3808342118{
  display:block!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:1000!important;
  margin-bottom:5px!important;
}
.subscription-invoice-card-v3808342118 strong{
  display:block!important;
  color:#0f172a!important;
  font-size:17px!important;
  line-height:1.55!important;
  overflow-wrap:anywhere!important;
}
.subscription-invoice-card-v3808342118 p{margin:4px 0 0!important;font-size:13px!important}
.subscription-invoice-actions-v3808342118{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.subscription-invoice-actions-v3808342118 .btn{white-space:nowrap!important}

.spwm-invoice-v3808342118{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 24px 18px!important;
  padding:13px 15px!important;
  border:1px solid #bfdbfe!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#eff6ff,#f5f3ff)!important;
}
.spwm-invoice-v3808342118>div{min-width:0!important}
.spwm-invoice-v3808342118 span{display:block!important;color:#64748b!important;font-size:12px!important;font-weight:900!important}
.spwm-invoice-v3808342118 b{display:block!important;color:#0f172a!important;margin-top:4px!important;overflow-wrap:anywhere!important}
.spwm-invoice-v3808342118 a{
  flex:0 0 auto!important;
  border-radius:14px!important;
  padding:11px 14px!important;
  background:#1d4ed8!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:1000!important;
}

@media (max-width:960px){
  .vendor-plan-status-card-v189525.has-subscription-invoice-v3808342118{grid-template-columns:1fr!important}
  .subscription-invoice-card-v3808342118{grid-template-columns:1fr!important}
  .subscription-invoice-actions-v3808342118{justify-content:flex-start!important}
}
@media (max-width:620px){
  .subscription-invoice-actions-v3808342118,.subscription-invoice-actions-v3808342118 .btn{width:100%!important}
  .spwm-invoice-v3808342118{margin-inline:16px!important;align-items:stretch!important;flex-direction:column!important}
  .spwm-invoice-v3808342118 a{width:100%!important;text-align:center!important}
}

html[data-marketak-theme="dark"] .subscription-invoice-card-v3808342118,
html[data-marketak-theme="dark"] .spwm-invoice-v3808342118{
  background:linear-gradient(145deg,#0d1a2d,#111c31)!important;
  border-color:rgba(96,165,250,.38)!important;
}
html[data-marketak-theme="dark"] .subscription-invoice-card-v3808342118 :is(strong,p),
html[data-marketak-theme="dark"] .spwm-invoice-v3808342118 :is(b,span){color:#f8fbff!important}
