/* VoiceTracker.net WHMCS compact product listings – v1.3.13
   Loaded after the v1.3.12 cart repair. Scope: product/category cards only.
   Header, nav, centering, cart checkout, and native ordering logic are unchanged. */

/* Tighter catalog title and outer white area. */
#order-standard_cart .cart-body:has(.products) {
  padding:13px 15px 17px!important;
}
#order-standard_cart .cart-body:has(.products) .header-lined {
  margin:0 0 9px!important;
  padding:0 0 9px!important;
}
#order-standard_cart .cart-body:has(.products) .header-lined h1 {
  font-size:21px!important;
  line-height:1.25!important;
}

/* Grid auto-adapts to the available content width (after the WHMCS sidebar).
   Three plans across on desktop; two on tablet; one on mobile. */
#order-standard_cart .products {
  margin:0!important;
  container-type:inline-size;
  container-name:vt-plan-grid;
}
#order-standard_cart .products > .row {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px!important;
  margin:0!important;
  padding:0!important;
}
#order-standard_cart .products > .row > [class*="col-"] {
  display:flex!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  float:none!important;
  padding:0!important;
  margin:0!important;
}
@container vt-plan-grid (min-width:860px) {
  #order-standard_cart .products > .row {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@container vt-plan-grid (max-width:570px) {
  #order-standard_cart .products > .row {
    grid-template-columns:minmax(0,1fr);
  }
}

/* Short, full-width cards rather than tall cards with a narrow price box. */
#order-standard_cart .products .product {
  display:flex!important;
  flex:1 1 100%!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden;
  border-top-width:3px!important;
}
#order-standard_cart .products .product > header,
#order-standard_cart .products .product header {
  padding:9px 11px!important;
  margin:0!important;
  font-size:15px!important;
  line-height:1.25!important;
}
#order-standard_cart .products .product .product-desc {
  flex:1 1 auto!important;
  margin:0!important;
  padding:9px 11px!important;
  min-height:0!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:#333!important;
}
#order-standard_cart .products .product .product-desc p,
#order-standard_cart .products .product .product-desc ul {
  margin:0 0 5px!important;
}
#order-standard_cart .products .product .product-desc p:last-child,
#order-standard_cart .products .product .product-desc ul:last-child {
  margin-bottom:0!important;
}
#order-standard_cart .products .product .product-desc li {
  margin:0!important;
  line-height:1.45!important;
}
#order-standard_cart .products .product footer {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  align-content:center!important;
  gap:7px 10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:54px!important;
  margin:0!important;
  padding:9px 11px!important;
  background:#f6f6f6!important;
  border-top:1px solid #ccc!important;
  text-align:left!important;
}
#order-standard_cart .products .product footer > * {
  min-width:0!important;
}
#order-standard_cart .products .product .product-pricing,
#order-standard_cart .products .product footer .product-pricing {
  flex:0 1 auto!important;
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  float:none!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  font-size:12px!important;
  line-height:1.3!important;
}
#order-standard_cart .products .product .product-pricing .price {
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:800!important;
  white-space:nowrap;
}
#order-standard_cart .products .product .btn-order-now {
  min-height:32px!important;
  margin:0!important;
  padding:6px 10px!important;
  font-size:12px!important;
  line-height:1.25!important;
  white-space:nowrap;
}
/* Product-specific descriptions must remain intact; no hiding pricing or features. */
@media (max-width:767.98px) {
  #order-standard_cart .cart-body:has(.products) {padding:10px!important;}
  #order-standard_cart .products > .row {gap:10px!important;}
  #order-standard_cart .products .product footer {align-items:center!important;}
}
