/* Mobile performance safeguards. The setting is applied before page paint. */
html[data-store-performance="lite"] {
  scroll-behavior: auto;
}

html[data-store-performance="lite"] body {
  overflow-x: clip;
  background-attachment: scroll !important;
}

html[data-store-performance="lite"] #bgStars {
  display: none !important;
}

html[data-store-performance="lite"] :where(
  .animated-border::before,
  .animated-bottom-border::after,
  .flash-strip::before,
  .flash-badge,
  .product-card,
  .product-card::before,
  .product-image-effect,
  .category-logo-filter::before,
  .category-logo-filter::after,
  .fade-up,
  .fade-in-up,
  .pulse-glow,
  .recent-order-feed,
  .recent-order-card,
  .recent-order-dot,
  .footer-payment-pill,
  .footer-payment-pill::after,
  .footer-payment-pill-glow,
  .compact-action-pill,
  .compact-action-pill::after,
  .compact-action-glow,
  .telegram-support-fab,
  .support-center-fab,
  .public-side-drawer::before,
  .public-support-link,
  .action-btn,
  .store-maintenance-icon,
  .channel-join-overlay,
  .channel-join-modal
) {
  animation: none !important;
}

/* The join card must remain visible when low-power mode removes its entrance animation. */
html[data-store-performance="lite"] #channelJoinOverlay.show .channel-join-modal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

html[data-store-performance="lite"] :where(
  .public-navbar,
  .public-bottom-nav,
  .public-compact-menu,
  .public-side-drawer,
  .public-quick-button,
  .public-side-overlay,
  .support-center-fab,
  .recent-order-card,
  .channel-join-overlay,
  .channel-join-modal,
  .glass,
  .soft-card,
  .premium-card,
  .panel,
  .panel-card,
  .platform-badge-card,
  .public-product-badge,
  [class*="backdrop-blur"]
) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-store-performance="lite"] :where(.footer-payment-pill-glow, .compact-action-glow) {
  filter: none !important;
  opacity: .25 !important;
}

html[data-store-performance="lite"] :where(
  .flash-strip::before,
  .product-image-effect,
  .category-logo-filter::before,
  .category-logo-filter::after,
  .public-side-drawer::before
) {
  filter: none !important;
}

html[data-store-performance="lite"] body.premium-store-home :where(.product-card, .flash-card, .category-logo-filter) {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .13) !important;
}

html[data-store-performance="lite"] body.premium-store-home #productGrid .product-card {
  contain: layout paint style;
}

html[data-store-performance="lite"] body.premium-store-home :where(.category-logo-filter img, .category-logo-chip img) {
  filter: brightness(1.07) saturate(1.08) !important;
}

html[data-store-performance="lite"] :where(.product-card, .flash-card, .category-logo-filter, .compact-action-pill, .footer-payment-pill, .public-support-link, .support-center-fab) {
  transition-duration: .12s !important;
}
