
/* 1.0.2 - native WooCommerce cart/checkout presentation */

body.aosc-cart-screen .woocommerce,
body.aosc-checkout-screen .woocommerce{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}

body.aosc-cart-screen table.shop_table,
body.aosc-checkout-screen table.shop_table{
  border:1px solid var(--aosc-line) !important;
  border-radius:0 !important;
  background:#fff !important;
}

body.aosc-cart-screen table.shop_table th,
body.aosc-cart-screen table.shop_table td,
body.aosc-checkout-screen table.shop_table th,
body.aosc-checkout-screen table.shop_table td{
  padding:16px !important;
  border-color:var(--aosc-line) !important;
}

body.aosc-cart-screen .wc-proceed-to-checkout .checkout-button,
body.aosc-checkout-screen #place_order{
  background:var(--aosc-orange) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:24px !important;
  font-weight:800 !important;
}

body.aosc-cart-screen .woocommerce-message,
body.aosc-cart-screen .woocommerce-info,
body.aosc-checkout-screen .woocommerce-message,
body.aosc-checkout-screen .woocommerce-info{
  border-top-color:var(--aosc-blue) !important;
}

body.aosc-cart-screen input,
body.aosc-checkout-screen input,
body.aosc-checkout-screen select,
body.aosc-checkout-screen textarea{
  border:1px solid #d9dee7 !important;
  background:#f8f8f8 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

body.aosc-checkout-screen form.checkout{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:42px;
}

body.aosc-checkout-screen #customer_details,
body.aosc-checkout-screen #order_review{
  width:100% !important;
  float:none !important;
}

@media(max-width:900px){
  body.aosc-checkout-screen form.checkout{
    grid-template-columns:1fr;
  }
}

/* 1.0.9 - Cart spacing refinement (presentation only)
 * Keep Tutor/WooCommerce cart logic and markup intact; only tighten the visible shell.
 */
body.aosc-cart-screen #content{
  min-height:0 !important;
  padding:24px 0 28px !important;
}

body.aosc-cart-screen #contentInner{
  width:min(1100px,calc(100% - 32px)) !important;
  max-width:none !important;
  margin:0 auto !important;
  padding:0 !important;
}

body.aosc-cart-screen .entry-title{
  margin:0 0 18px !important;
  font-size:38px !important;
  line-height:1.15 !important;
}

/* Tutor LMS native cart adds its own centered container and vertical padding.
   Neutralize only those presentation constraints on the cart screen. */
body.aosc-cart-screen .tutor-cart-page,
body.aosc-cart-screen .tutor-cart-page-wrapper{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

body.aosc-cart-screen .tutor-cart-page .tutor-container{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

body.aosc-cart-screen .tutor-cart-page .tutor-row{
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  row-gap:18px !important;
}

/* Reduce unused horizontal gutter while keeping Tutor's 8/4 column relationship. */
body.aosc-cart-screen .tutor-cart-page .tutor-col-lg-8{
  padding-left:0 !important;
  padding-right:10px !important;
}
body.aosc-cart-screen .tutor-cart-page .tutor-col-lg-4{
  padding-left:10px !important;
  padding-right:0 !important;
}

body.aosc-cart-screen .tutor-cart-page h3.tutor-mb-16{
  margin-bottom:10px !important;
}

body.aosc-cart-screen .tutor-cart-course-item{
  margin-bottom:0 !important;
}

body.aosc-cart-screen .tutor-cart-summery-bottom .tutor-mb-40{
  margin-bottom:22px !important;
}

/* Keep the footer naturally close to short cart content instead of reserving an empty page. */
body.aosc-cart-screen #content + *,
body.aosc-cart-screen #contentInner + *{
  margin-top:0 !important;
}

@media(max-width:900px){
  body.aosc-cart-screen #content{
    padding:18px 0 24px !important;
  }
  body.aosc-cart-screen #contentInner{
    width:min(100% - 24px,1100px) !important;
  }
  body.aosc-cart-screen .tutor-cart-page .tutor-col-lg-8,
  body.aosc-cart-screen .tutor-cart-page .tutor-col-lg-4{
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

/* 1.2.3 - wider, denser Tutor cart composition.
 * Presentation only: Tutor/WooCommerce markup and cart actions remain native.
 */
body.aosc-cart-screen #contentInner{
  width:min(1180px,calc(100% - 32px)) !important;
}

@media(min-width:901px){
  body.aosc-cart-screen .tutor-cart-page .tutor-row{
    display:grid !important;
    grid-template-columns:minmax(0,1.55fr) minmax(360px,1fr) !important;
    column-gap:22px !important;
    align-items:start !important;
  }

  body.aosc-cart-screen .tutor-cart-page .tutor-col-lg-8,
  body.aosc-cart-screen .tutor-cart-page .tutor-col-lg-4{
    width:auto !important;
    max-width:none !important;
    flex:none !important;
    padding:0 !important;
  }

  body.aosc-cart-screen .tutor-cart-summery,
  body.aosc-cart-screen .tutor-cart-summary,
  body.aosc-cart-screen .tutor-cart-summery-wrapper,
  body.aosc-cart-screen .tutor-cart-summary-wrapper{
    width:100% !important;
    max-width:none !important;
  }

  body.aosc-cart-screen .tutor-cart-summery-bottom,
  body.aosc-cart-screen .tutor-cart-summary-bottom{
    width:100% !important;
  }
}

/* Reduce the empty band below short carts without affecting checkout logic. */
body.aosc-cart-screen #content{
  padding-bottom:18px !important;
}
body.aosc-cart-screen .tutor-cart-page{
  margin-bottom:0 !important;
}


/* AOSC 1.2.7 - hide learner-facing crossed-out former prices only. */
body.aosc-courses-screen :is(del,s,.tutor-line-through,[class*="line-through"]),
body.aosc-cart-screen :is(del,s,.tutor-line-through,[class*="line-through"]),
body.aosc-dashboard-screen :is(del,s,.tutor-line-through,[class*="line-through"]){
  display:none !important;
}

/* AOSC 1.3.0 - thank-you page is the bridge from purchase to learning. */
body.aosc-order-received-screen .aosc-learning-handoff{box-sizing:border-box}
