/* Final mobile cart layout. Loaded after the shared commerce stylesheet. */
@media (max-width: 640px) {
  html,
  html:has(body.woocommerce-cart.sunday-cart-ready),
  html body.woocommerce-cart.sunday-cart-ready,
  html body.woocommerce-cart.sunday-cart-ready #pagewrap { background: #FBF8F1 !important; }

  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page.sunday-commerce-page {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 112px 16px 52px !important;
    background: #FBF8F1 !important;
    background-color: #FBF8F1 !important;
  }

  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-header { margin: 0 0 22px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-layout { gap: 20px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-section-head { margin: 0 0 12px !important; padding-inline: 2px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-section-head h2 { margin: 0 !important; font-size: 19px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-items { gap: 10px !important; }

  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-items .sunday-cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 8px 12px !important;
    min-height: 0 !important;
    padding: 13px !important;
    border-radius: 18px !important;
  }

  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-items .sunday-cart-item > a:first-child,
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-items .sunday-cart-item img {
    grid-row: 1 / 3 !important;
    width: 72px !important;
    height: 88px !important;
    border-radius: 13px !important;
    object-fit: contain !important;
  }

  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-cart-item h3 { margin: 3px 0 0 !important; font-size: 18px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-cart-item-price { font-size: 15px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-cart-item-actions { grid-column: 2 / 4 !important; gap: 10px !important; min-height: 34px !important; padding-top: 7px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-quantity { grid-template-columns: 30px 32px 30px !important; width: 92px !important; min-width: 92px !important; height: 34px !important; min-height: 34px !important; }

  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-commerce-summary { position: static !important; overflow: hidden !important; padding: 0 16px 16px !important; border-radius: 19px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-summary-head { margin: 0 -16px 4px !important; padding: 18px 16px 17px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-summary-head h2 { margin: 0 !important; font-size: 27px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-summary-row { padding: 12px 1px !important; font-size: 13px !important; }
  html body.woocommerce-cart.sunday-cart-ready #sunday-commerce-page .sunday-promo-progress { margin: 10px 0 !important; padding: 14px !important; border-radius: 15px !important; }
}
