/* Customer hub empty states + account — last layer, does not restyle header/nav. */

html body:not(.admin-view):not(.merchant-view) .ls-empty-art {
  display: grid;
  justify-items: center;
  width: min(186px, 58vw);
  max-width: 210px;
  margin: 0 auto 8px;
  background: transparent;
}

html body:not(.admin-view):not(.merchant-view) .ls-empty-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

html body:not(.admin-view):not(.merchant-view) .ls-empty-card,
html body.cart-view:not(.admin-view):not(.merchant-view) .cart-empty-card,
html body.orders-view:not(.admin-view):not(.merchant-view) .orders-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  margin: 8px auto 24px;
  padding: 22px 18px 24px;
  background: #f6f1e8;
  border: 1px solid #E8D8BE;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(120, 29, 58, 0.05);
}

html body.orders-view:not(.admin-view):not(.merchant-view) .orders-empty[hidden] {
  display: none;
}

html body:not(.admin-view):not(.merchant-view) .ls-empty-card h1,
html body:not(.admin-view):not(.merchant-view) .ls-empty-card h2,
html body.cart-view:not(.admin-view):not(.merchant-view) .cart-empty-card h2,
html body.orders-view:not(.admin-view):not(.merchant-view) .orders-empty h2 {
  margin: 4px 0 0;
  color: #66001f;
  font-size: 1.28rem;
  line-height: 1.35;
}

html body:not(.admin-view):not(.merchant-view) .ls-empty-card p,
html body.cart-view:not(.admin-view):not(.merchant-view) .cart-empty-card p,
html body.orders-view:not(.admin-view):not(.merchant-view) .orders-empty p {
  margin: 0;
  color: #31352C;
  max-width: 34ch;
}

html body:not(.admin-view):not(.merchant-view) .ls-empty-card .pill,
html body.cart-view:not(.admin-view):not(.merchant-view) .cart-empty-actions .pill,
html body.orders-view:not(.admin-view):not(.merchant-view) .orders-empty .pill,
html body:not(.admin-view):not(.merchant-view) .ls-error-card .pill {
  min-height: 44px;
  min-width: min(100%, 220px);
  width: min(100%, 280px);
  justify-content: center;
}

html body:not(.admin-view):not(.merchant-view) .ls-error-card {
  border-color: #E8D8BE;
}

html body:not(.admin-view):not(.merchant-view) .ls-skel {
  display: block;
  border-radius: 14px;
  background: linear-gradient(90deg, #FBF7F0 0%, #E8D8BE 50%, #FBF7F0 100%);
  background-size: 200% 100%;
  animation: ls-skel 1.4s ease-in-out infinite;
}

@keyframes ls-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

html body.cart-view:not(.admin-view):not(.merchant-view) .cart-page:has([data-cart-empty]) .cart-head p {
  display: none;
}
html body.cart-view:not(.admin-view):not(.merchant-view) .cart-page:has([data-cart-empty]) .cart-head {
  margin-bottom: 4px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: 28px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 8px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-hero h1 {
  margin: 0;
  color: #66001f;
  font-size: 1.45rem;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-card.customer-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  background: #f6f1e8;
  border: 1px solid #E8D8BE;
  border-radius: 18px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-card.customer-welcome > div {
  min-width: 0;
  flex: 1 1 auto;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-avatar-form {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0;
}

html body.account-view:not(.admin-view):not(.merchant-view) label.customer-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: #F4EDE1;
  border: 1px solid #E8D8BE;
  color: #66001f;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-avatar input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-avatar-add {
  position: absolute;
  inset-inline-end: -4px;
  inset-block-end: -4px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #66001f;
  color: #fff;
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 2;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-avatar-add svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-card h2 {
  margin: 2px 0 4px;
  font-size: 1.2rem;
  color: #31352C;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-edit-btn {
  margin-top: 8px;
  white-space: nowrap;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-block {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 16px;
  background: #f6f1e8;
  border: 1px solid #E8D8BE;
  border-radius: 18px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-block h2 {
  margin: 0;
  color: #59633A;
  font-size: 1.02rem;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-block p {
  margin: 0;
  color: #31352C;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-hub-block .pill {
  justify-self: start;
  min-height: 42px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-settings-links {
  display: grid;
  gap: 8px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-logout-foot {
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .account-logout-foot .pill {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.92rem;
}

html body.account-view:not(.admin-view):not(.merchant-view) .guest-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

html body.orders-view:not(.admin-view):not(.merchant-view) .order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

html body.favs-view:not(.admin-view):not(.merchant-view) .ls-favs {
  padding-bottom: 12px;
}

@media (min-width: 768px) {
  html body:not(.admin-view):not(.merchant-view) .ls-empty-art {
    width: min(260px, 42vw);
    max-width: 280px;
  }

  html body.account-view:not(.admin-view):not(.merchant-view) .account-hub {
    max-width: 820px;
  }

  html body.account-view:not(.admin-view):not(.merchant-view) .customer-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  html body:not(.admin-view):not(.merchant-view) .ls-empty-art {
    width: 280px;
    max-width: 300px;
  }

  html body.account-view:not(.admin-view):not(.merchant-view) .account-hub {
    max-width: 880px;
  }
}

html body.home-page:not(.admin-view):not(.merchant-view) .ls-why-card {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 4px 12px !important;
}

html body.home-page:not(.admin-view):not(.merchant-view) .ls-why-icon {
  display: block;
  width: min(160px, 42vw);
  height: auto;
  object-fit: contain;
  background: transparent;
}

html body.home-page:not(.admin-view):not(.merchant-view) .ls-why-card svg {
  display: none;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-kpis a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-kpis .ui-ico {
  width: 40px;
  height: 40px;
}

html body.account-view:not(.admin-view):not(.merchant-view) .customer-shortcuts .ui-ico {
  width: 28px;
  height: 28px;
}
