/* Cart page: checkout button close to the products */

/* Desktop: products on the left, totals + checkout on the right (sticky). */
@media (min-width: 960px) {
  .woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 28px; align-items: start; }
  .woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > * { grid-column: 1 / -1; }
  .woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; grid-row: 2; margin: 0; }
  .woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; grid-row: 2; position: sticky; top: 20px; width: auto; margin: 0; }
  .woocommerce-cart .cart-collaterals .cart_totals { float: none !important; width: 100% !important; margin: 0 !important; }
  .woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 24px; }
  .woocommerce-cart .cart-collaterals .checkout-button { font-size: 17px !important; padding: 16px !important; }
  .ph-cart-bar { display: none !important; }
}

/* Mobile and tablet: fixed bottom bar with total and checkout. */
.ph-cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dfe6e2; box-shadow: 0 -8px 24px rgba(10,40,35,.12); }
.ph-cart-bar-total { display: grid; line-height: 1.2; }
.ph-cart-bar-total span { color: #5b6b66; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ph-cart-bar-total strong { color: #10302c; font-size: 20px; font-weight: 800; }
.ph-cart-bar-total small { display: none; }
.ph-cart-bar-btn { flex: 1 1 auto; max-width: 240px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 12px; background: #003c35; color: #fff !important; font-size: 17px; font-weight: 800; text-decoration: none !important; }
.ph-cart-bar-btn:hover { background: #00594f; }
@media (max-width: 959px) {
  body.woocommerce-cart { padding-bottom: 84px; }
  body.woocommerce-cart .store-support { transform: translateY(-74px); }
}
.ph-cart-bar-amount, .ph-cart-bar-amount .amount, .ph-cart-bar-amount bdi { font-size: 20px !important; font-weight: 800 !important; color: #10302c !important; }
