/* PIYAMO v2.0.7 — remove the duplicate Shop footer dock clearance.
 * Shop/archive pages already reserve a viewport-sized landing area on <body>.
 * v2.0.6 also reserved 81px inside the footer, creating the empty band below
 * the copyright. Keep the mobile fixed dock and arrow unchanged.
 */
@media (max-width: 767px) {
  /* Restrict to shop and product-archive listings, not product or account pages. */
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) footer.piyamo-mobile-footer,
  html body.piyamo-mobile-shop-ui-active:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) footer.piyamo-mobile-footer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  /* The 78px page-level clearance keeps the last copyright line clear of the
     dock when the customer has scrolled fully to the end of an archive.
     There is no extra space INSIDE the painted footer. */
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag),
  html body.piyamo-mobile-shop-ui-active:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom,0px)) !important;
  }

  /* Do not let other legacy styles put 92–108px back in the copyright row. */
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) footer.piyamo-mobile-footer .piyamo-mobile-footer-bottom,
  html body.piyamo-mobile-shop-ui-active:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) footer.piyamo-mobile-footer .piyamo-mobile-footer-bottom {
    padding: 10px 14px 11px !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
}
