/* v3.0.406 - Shop Mobile/Tablet Cart Quantity / Woo Session Bridge. Frontend only. */
.woocommerce ul.products li.product,
.product,
.wc-block-grid__product,
.spviet-product-card,
.spviet-menu-product-card,
.spviet-food-card{
  position:relative;
}
.woocommerce ul.products li.product .price,
.product .price,
.wc-block-grid__product .wc-block-grid__product-price,
.spviet-product-card .price,
.spviet-menu-product-card .price,
.spviet-food-card .price,
.spviet-product-price,
.spviet-menu-price{
  display:block!important;
  position:relative!important;
  z-index:3!important;
  margin:10px 0 16px!important;
  padding-right:8px!important;
  padding-bottom:10px!important;
  line-height:1.35!important;
  white-space:normal!important;
}
.spviet-card-qty-badge-v30406{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
  width:92px!important;
  height:92px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.78)!important;
  border:7px solid rgba(255,255,255,.92)!important;
  box-shadow:0 16px 42px rgba(185,28,28,.22), inset 0 0 0 2px rgba(239,68,68,.18)!important;
  color:#ef1f2a!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-weight:900!important;
  font-size:56px!important;
  line-height:1!important;
  z-index:16!important;
  pointer-events:none!important;
  font-family:Arial,"Noto Sans",sans-serif!important;
}
.spviet-add-cart-working-v30406{opacity:.78;pointer-events:none;filter:saturate(.85)}
.spviet-add-cart-done-v30406::after{content:' ✓';font-weight:900;margin-left:6px}
.spviet-cart-rescue-v30406{padding:18px 20px 110px;background:#fff;color:#0f172a;font-family:Arial,"Noto Sans",sans-serif}
.spviet-cart-rescue-v30406 h3{margin:0 0 12px;font-size:22px;color:#8b1224}
.spviet-cart-rescue-v30406 ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}.spviet-cart-rescue-v30406 li{display:flex;justify-content:space-between;gap:12px;border:1px solid #f1d5d9;border-radius:16px;padding:12px;background:#fffaf7}.spviet-cart-rescue-v30406 b{font-size:15px}.spviet-cart-rescue-v30406 small{display:block;color:#64748b}.spviet-cart-rescue-v30406 .spviet-cart-rescue-total{margin:14px 0;font-weight:900;color:#8b1224}.spviet-cart-rescue-v30406 .spviet-cart-rescue-actions{display:flex;gap:10px;flex-wrap:wrap}.spviet-cart-rescue-v30406 a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:999px;padding:0 18px;text-decoration:none;font-weight:800}.spviet-cart-rescue-v30406 a:first-child{background:#b90922;color:#fff}.spviet-cart-rescue-v30406 a:last-child{border:1px solid #f1c8ce;color:#8b1224;background:#fff}
@media(max-width:1024px){
  .woocommerce ul.products li.product .button,
  .woocommerce a.button.add_to_cart_button,
  .wc-block-grid__product-add-to-cart .wp-block-button__link,
  .spviet-product-card .button,
  .spviet-menu-product-card .button,
  .spviet-food-card .button,
  .spviet-order-button,
  [data-product_id].add_to_cart_button{
    position:relative!important;
    z-index:5!important;
    max-width:calc(100% - 18px)!important;
    white-space:nowrap!important;
  }
  .woocommerce ul.products li.product,
  .wc-block-grid__product,
  .spviet-product-card,
  .spviet-menu-product-card,
  .spviet-food-card{
    padding-bottom:18px!important;
    overflow:visible!important;
  }
}
@media(max-width:640px){
  .spviet-card-qty-badge-v30406{width:76px!important;height:76px!important;font-size:46px!important;border-width:6px!important}
  .woocommerce ul.products li.product .price,
  .product .price,
  .wc-block-grid__product .wc-block-grid__product-price,
  .spviet-product-price,
  .spviet-menu-price{font-size:clamp(16px,4.6vw,22px)!important;padding-bottom:14px!important;margin-bottom:18px!important}
}

/* v3.0.710 - cart confirmation modal and anchored quantity badge. */
.spviet-qty-badge-anchor-v30710{position:relative!important;overflow:hidden!important;display:block!important}
.spviet-cart-confirm-open-v30710{overflow:hidden!important}
.spviet-cart-confirm-modal-v30710{position:fixed;inset:0;z-index:2147483000;display:none;font-family:Arial,"Noto Sans",sans-serif;color:#0f172a}
.spviet-cart-confirm-modal-v30710.is-open{display:block}
.spviet-cart-confirm-backdrop-v30710{position:absolute;inset:0;background:rgba(15,23,42,.52);backdrop-filter:blur(3px)}
.spviet-cart-confirm-panel-v30710{position:absolute;right:24px;top:74px;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 110px);overflow:auto;border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(15,23,42,.28);padding:22px;border:1px solid #fee2e2}
.spviet-cart-confirm-x-v30710{position:absolute;right:16px;top:14px;width:42px;height:42px;border:0;border-radius:999px;background:#b91c1c;color:#fff;font-size:24px;font-weight:900;cursor:pointer;z-index:2147483002;box-shadow:0 12px 30px rgba(185,28,28,.32)}
.spviet-cart-confirm-panel-v30710 h3{margin:0 46px 8px 0!important;font-size:24px!important;color:#8b1224!important;font-weight:900!important}
.spviet-cart-confirm-panel-v30710 p{margin:0 0 16px;color:#64748b;font-weight:700;font-size:13px}
.spviet-cart-confirm-list-v30710{display:grid;gap:10px;margin:12px 0}
.spviet-cart-confirm-row-v30710{display:grid;grid-template-columns:minmax(0,1fr) 128px 38px;gap:10px;align-items:center;border:1px solid #fde2e2;border-radius:18px;background:#fffaf7;padding:12px}
.spviet-cart-confirm-name-v30710 b{display:block;font-size:15px;line-height:1.35;color:#111827}.spviet-cart-confirm-name-v30710 small{display:block;margin-top:4px;color:#dc2626;font-weight:900}
.spviet-cart-confirm-qty-v30710{display:grid;grid-template-columns:34px 1fr 34px;border:1px solid #fecaca;border-radius:999px;overflow:hidden;background:#fff}.spviet-cart-confirm-qty-v30710 button{border:0;background:#fff1f2;color:#991b1b;font-weight:900;font-size:18px;cursor:pointer}.spviet-cart-confirm-qty-v30710 input{border:0!important;text-align:center!important;min-width:0!important;padding:0!important;height:34px!important;font-weight:900!important;background:#fff!important;color:#111827!important}
.spviet-cart-confirm-remove-v30710{width:38px;height:38px;border:0;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:22px;font-weight:900;cursor:pointer}
.spviet-cart-confirm-total-v30710{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed #fecaca;margin-top:12px;padding-top:14px;font-weight:900}.spviet-cart-confirm-total-v30710 b{color:#dc2626;font-size:20px}
.spviet-cart-confirm-actions-v30710{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.spviet-cart-confirm-actions-v30710 button,.spviet-cart-confirm-actions-v30710 a{min-height:44px;border-radius:999px;padding:0 18px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.spviet-cart-confirm-actions-v30710 button{border:1px solid #fecaca;background:#fff;color:#8b1224}.spviet-cart-confirm-actions-v30710 a{border:0;background:#16a34a;color:#fff!important}.spviet-cart-confirm-actions-v30710 a.is-disabled{opacity:.45;pointer-events:none}.spviet-cart-confirm-empty-v30710{border:1px dashed #fecaca;border-radius:18px;background:#fff7ed;padding:22px;text-align:center;color:#8b1224;font-weight:900}.spviet-cart-rescue-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:999px;padding:0 18px;text-decoration:none;font-weight:800;border:1px solid #f1c8ce;color:#8b1224;background:#fff;cursor:pointer}
@media(max-width:640px){.spviet-cart-confirm-panel-v30710{right:10px;left:10px;top:56px;width:auto;padding:18px;border-radius:22px}.spviet-cart-confirm-row-v30710{grid-template-columns:1fr;gap:8px}.spviet-cart-confirm-qty-v30710{max-width:150px}.spviet-cart-confirm-remove-v30710{position:absolute;right:18px}.spviet-cart-confirm-actions-v30710{display:grid;grid-template-columns:1fr}}

/* v3.0.711 - keep floating/header cart behind modal so close button remains clickable. */
body.spviet-cart-confirm-open-v30710 .spviet-floating-cart,body.spviet-cart-confirm-open-v30710 .spviet-cart-button,body.spviet-cart-confirm-open-v30710 .cart-contents,body.spviet-cart-confirm-open-v30710 .header-cart,body.spviet-cart-confirm-open-v30710 .mini-cart,body.spviet-cart-confirm-open-v30710 .wc-block-mini-cart__button{visibility:hidden!important;pointer-events:none!important}
.spviet-cart-confirm-modal-v30710 *{box-sizing:border-box}.spviet-cart-confirm-name-v30710 small{word-break:normal!important;white-space:nowrap!important}


/* v3.0.716 - hide cart triggers while cart is empty and prevent broad page-click cart open. */
body.spviet-cart-empty-v30716 .spviet-floating-cart,
body.spviet-cart-empty-v30716 .spviet-cart-button,
body.spviet-cart-empty-v30716 .cart-contents,
body.spviet-cart-empty-v30716 .header-cart,
body.spviet-cart-empty-v30716 .mini-cart,
body.spviet-cart-empty-v30716 .wc-block-mini-cart__button{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.spviet-cart-has-items-v30716 .spviet-floating-cart,
body.spviet-cart-has-items-v30716 .spviet-cart-button{display:flex!important;visibility:visible!important;pointer-events:auto!important}
