/* =========================================================
   Phulwari v6.56 — Cart / Checkout main action always reachable
   ========================================================= */

/* (:has() cannot be nested, so the coupon test sits on the row.)
   Empty actions row: the update button is hidden (live cart since v6.53)
   and there is no coupon field, so the row was 80px of blank space.
   The button stays in the DOM; woocommerce-cart-bridge.js still clicks it. */
body.woocommerce-cart table.shop_table.cart tr:has(> td.actions):not(:has(.coupon)){
  position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
  clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;padding:0!important;
}

/* "Continue shopping" inside the items block */
.fv-cart-continue{margin:12px 2px 0;text-align:right}
.fv-cart-continue__link{
  display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 2px;
  color:var(--fv-blue-deep,#365D75);font-size:var(--fv-type-muted-size);font-weight:700;text-decoration:none;
}
.fv-cart-continue__link:hover{text-decoration:underline}

/* Sticky bar (tablet + mobile only; JS shows it while the real button is off-screen) */
.fv-sticky-cta{display:none}
@media (max-width:1023px){
  .fv-sticky-cta:not([hidden]){
    position:fixed;right:0;left:0;bottom:0;z-index:120;
    display:flex;align-items:center;justify-content:center;gap:16px;
    /* total + button stay together in a centred row (no empty gap on tablets) */
    padding:10px max(16px, calc((100% - 560px) / 2)) calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid var(--fv-border,#E4D5BF);background:rgba(255,253,248,.98);
    box-shadow:0 -8px 24px rgba(32,55,74,.10);backdrop-filter:blur(8px);
  }
  .fv-sticky-cta,.fv-sticky-cta *{line-height:1.5!important} /* body inherits a px line-height on this page */
  .fv-sticky-cta__total{flex:0 0 auto;display:grid;gap:1px;min-width:0;text-align:right}
  .fv-sticky-cta__total span{color:var(--fv-muted,#7A6A5C);font-size:var(--fv-type-caption-size,11px)}
  .fv-sticky-cta__total strong{color:var(--fv-blue-deep,#365D75);font-size:var(--fv-type-body-size,15px);font-weight:800;white-space:nowrap}
  .fv-sticky-cta__btn{
    flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 20px;
    border:0;border-radius:12px;background:var(--fv-blue-deep,#365D75);color:#fff!important;
    font-family:inherit;font-size:var(--fv-type-muted-size,14px);font-weight:800;text-decoration:none!important;cursor:pointer;white-space:nowrap;
  }
  .fv-sticky-cta__btn[disabled]{opacity:.6;cursor:not-allowed}
  body.fv-has-sticky-cta{padding-bottom:76px}
}
@media (max-width:380px){
  .fv-sticky-cta__btn{padding:10px 14px}
}

/* v6.61 — Checkout: the same bar on desktop too (centred, compact) */
@media (min-width:1024px){
  .fv-sticky-cta[data-fv-sticky-cta="checkout"]:not([hidden]){
    position:fixed;right:0;left:0;bottom:0;z-index:120;
    display:flex;align-items:center;justify-content:center;gap:18px;
    padding:12px max(24px, calc((100% - 620px) / 2));
    border-top:1px solid var(--fv-border,#E4D5BF);background:rgba(255,253,248,.98);
    box-shadow:0 -8px 24px rgba(32,55,74,.10);backdrop-filter:blur(8px);
  }
  .fv-sticky-cta[data-fv-sticky-cta="checkout"],.fv-sticky-cta[data-fv-sticky-cta="checkout"] *{line-height:1.5!important}
  .fv-sticky-cta[data-fv-sticky-cta="checkout"] .fv-sticky-cta__total{flex:0 0 auto;display:grid;gap:1px;text-align:right}
  .fv-sticky-cta[data-fv-sticky-cta="checkout"] .fv-sticky-cta__total span{color:var(--fv-muted,#7A6A5C);font-size:12px}
  .fv-sticky-cta[data-fv-sticky-cta="checkout"] .fv-sticky-cta__total strong{color:var(--fv-blue-deep,#365D75);font-size:17px;font-weight:800;white-space:nowrap}
  .fv-sticky-cta[data-fv-sticky-cta="checkout"] .fv-sticky-cta__btn{
    flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:10px 24px;
    border:0;border-radius:12px;background:var(--fv-blue-deep,#365D75);color:#fff!important;
    font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap;
  }
  body.woocommerce-checkout.fv-has-sticky-cta{padding-bottom:80px}
}
