/* SORFPANEL v1.3.8 — final mobile cart/checkout/wallet/coupon fixes */
@media (max-width:768px){
  /* CART: compact two-column product rows, no phantom column or giant whitespace. */
  body.page-cart .ty-seller-card{overflow:hidden!important}
  body.page-cart .ty-cart-product{
    display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;
    grid-template-rows:auto!important;gap:10px!important;align-items:start!important;
    min-height:0!important;height:auto!important;padding:10px 11px!important;
    border-bottom:1px solid #eceff1!important;background:#fff!important;
  }
  body.page-cart .ty-cart-product-link{display:block!important;grid-column:1!important;grid-row:1!important;width:86px!important;min-width:86px!important}
  body.page-cart .ty-cart-image{display:block!important;width:86px!important;height:104px!important;object-fit:contain!important;margin:0!important;border-radius:9px!important}
  body.page-cart .ty-cart-info{display:flex!important;grid-column:2!important;grid-row:1!important;flex-direction:column!important;min-width:0!important;min-height:104px!important;height:auto!important;padding:0 30px 0 0!important;overflow:visible!important;color:#25292e!important}
  body.page-cart .ty-cart-name{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;margin:0 0 5px!important;font-size:12px!important;line-height:1.35!important;font-weight:800!important;color:#25292e!important;visibility:visible!important;opacity:1!important}
  body.page-cart .ty-cart-meta{display:grid!important;gap:2px!important;margin:0 0 7px!important}
  body.page-cart .ty-cart-stock,body.page-cart .ty-cart-delivery{display:block!important;font-size:9.5px!important;line-height:1.35!important;visibility:visible!important;opacity:1!important}
  body.page-cart .ty-cart-stock{color:#16834f!important;font-weight:800!important}
  body.page-cart .ty-cart-delivery{color:#737980!important;margin:0!important}
  body.page-cart .ty-cart-row-bottom{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px!important;margin-top:auto!important;padding-top:4px!important}
  body.page-cart .ty-qty{display:grid!important;grid-template-columns:29px 32px 29px!important;height:30px!important;border-radius:9px!important;overflow:hidden!important}
  body.page-cart .ty-qty button{width:29px!important;height:29px!important;font-size:17px!important}
  body.page-cart .ty-qty span{font-size:11px!important}
  body.page-cart .ty-cart-price{font-size:14px!important;font-weight:900!important;color:#f56600!important}
  body.page-cart .ty-remove-form{position:absolute!important;top:9px!important;right:9px!important;margin:0!important}
  body.page-cart .ty-remove-btn{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#f7f8f9!important}
  body.page-cart .ty-cart-checkout-bar{min-height:66px!important;height:auto!important;grid-template-columns:116px minmax(0,1fr)!important;padding:8px 10px!important}
  body.page-cart .ty-cart-total b{font-size:16px!important}
  body.page-cart .ty-cart-checkout{min-height:48px!important;border-radius:11px!important;font-size:13px!important}

  /* CHECKOUT: legal rows align checkbox and text on one baseline. */
  body.page-checkout .sp-checkout-consents{display:grid!important;gap:0!important;padding:8px 12px 92px!important}
  body.page-checkout .sp-consent-row{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;column-gap:10px!important;align-items:start!important;width:100%!important;padding:10px 0!important;margin:0!important;font-size:10.5px!important;line-height:1.5!important;box-sizing:border-box!important}
  body.page-checkout .sp-consent-row+ .sp-consent-row{border-top:1px solid #f0f1f2!important}
  body.page-checkout .sp-consent-row input[type=checkbox]{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;margin:0!important;align-self:start!important;justify-self:start!important;transform:none!important}
  body.page-checkout .sp-consent-row>span{display:block!important;min-width:0!important;margin:0!important;padding:0!important;color:#555d66!important}
  body.page-checkout .sp-consent-row a{font-weight:800!important;color:#2f3439!important;text-decoration:none!important}
  body.page-checkout .sp-coupon-notice{margin:-2px 0 8px!important;padding:8px 9px!important;border-radius:8px!important;background:#fff7ed!important;color:#9a4b00!important;font-size:9.5px!important;line-height:1.4!important}

  /* WALLET: remove giant empty bands and keep the actual balance/content compact. */
  body.page-wallet .wallet-main{display:grid!important;gap:10px!important;padding:10px!important;background:#f5f6f7!important}
  body.page-wallet .wallet-balance-card{min-height:0!important;height:auto!important;margin:0!important;padding:16px!important;border-radius:15px!important;background:linear-gradient(135deg,#0b2944,#0e5f91)!important;color:#fff!important}
  body.page-wallet .wallet-balance-card h2{margin:5px 0 6px!important;font-size:28px!important;color:#fff!important}
  body.page-wallet .wallet-balance-card small,body.page-wallet .wallet-balance-card p{color:rgba(255,255,255,.78)!important}
  body.page-wallet .wallet-redeem-form{margin:0!important;padding:12px!important;min-height:0!important;height:auto!important}
  body.page-wallet .wallet-redeem-form input{height:44px!important}
  body.page-wallet .wallet-redeem-form .amp-btn{height:44px!important;min-height:44px!important}
  body.page-wallet .wallet-transactions{margin:0!important;min-height:0!important;height:auto!important;padding:14px!important}
  body.page-wallet .wallet-transactions h2{margin:0 0 8px!important;font-size:17px!important}
}
@media (max-width:380px){
  body.page-cart .ty-cart-product{grid-template-columns:78px minmax(0,1fr)!important;padding:9px!important}
  body.page-cart .ty-cart-product-link{width:78px!important;min-width:78px!important}
  body.page-cart .ty-cart-image{width:78px!important;height:96px!important}
  body.page-cart .ty-cart-info{min-height:96px!important}
}
