/* ==========================================================
   Phase 08-G.18.9.1 — Woo summary spacing + canonical IRR order
   Applies after page-specific Woo styles.
   ========================================================== */

/* ----------------------------------------------------------
   PRICE ATOM — canonical visual order: NUMBER → ریال
   ---------------------------------------------------------- */
.woocommerce-Price-amount .mkp-price-pair,
.mkp-price-pair{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  gap:.32em!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
}

.woocommerce-Price-amount .mkp-price-pair .mkp-price-number,
.mkp-price-pair .mkp-price-number{
  order:1!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
}

.woocommerce-Price-amount .mkp-price-pair .mkp-price-unit,
.mkp-price-pair .mkp-price-unit{
  order:2!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
}

/* Standard Woo fallback when custom pair markup is not present. */
.woocommerce-Price-amount > bdi{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  gap:.32em!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
}

.woocommerce-Price-amount > bdi > .woocommerce-Price-currencySymbol{
  order:2!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
}

/* ----------------------------------------------------------
   CART TOTALS — more breathing room inside the card/table
   ---------------------------------------------------------- */
body.woocommerce-cart .cart-collaterals .cart_totals{
  padding:20px!important;
}

body.woocommerce-cart .cart_totals table.shop_table{
  width:100%!important;
  overflow:hidden!important;
  border-radius:13px!important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td{
  box-sizing:border-box!important;
  padding:12px 14px!important;
  line-height:1.75!important;
  vertical-align:middle!important;
}

body.woocommerce-cart .cart_totals table.shop_table th{
  padding-inline-start:14px!important;
  padding-inline-end:10px!important;
}

body.woocommerce-cart .cart_totals table.shop_table td{
  padding-inline-start:10px!important;
  padding-inline-end:14px!important;
}

body.woocommerce-cart .cart_totals table.shop_table tr:last-child th,
body.woocommerce-cart .cart_totals table.shop_table tr:last-child td{
  border-bottom:0!important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
body.woocommerce-cart .cart_totals table.shop_table tr.order-total td{
  padding-top:14px!important;
  padding-bottom:14px!important;
  font-weight:950!important;
}

/* ----------------------------------------------------------
   CHECKOUT ORDER SUMMARY — same horizontal breathing
   ---------------------------------------------------------- */
body.woocommerce-checkout
.mkp-checkout-x__review
table.shop_table th,
body.woocommerce-checkout
.mkp-checkout-x__review
table.shop_table td{
  padding:11px 12px!important;
  line-height:1.7!important;
  vertical-align:middle!important;
}

body.woocommerce-checkout
.mkp-checkout-x__review
table.shop_table tfoot th,
body.woocommerce-checkout
.mkp-checkout-x__review
table.shop_table tfoot td{
  padding-top:12px!important;
  padding-bottom:12px!important;
}

body.woocommerce-checkout
.mkp-checkout-x__review
table.shop_table tr.order-total th,
body.woocommerce-checkout
.mkp-checkout-x__review
table.shop_table tr.order-total td{
  padding-top:14px!important;
  padding-bottom:14px!important;
  font-weight:950!important;
}

/* ----------------------------------------------------------
   ORDER RECEIVED / ORDER DETAILS
   ---------------------------------------------------------- */
.mkp-order-complete .woocommerce-order-details table th,
.mkp-order-complete .woocommerce-order-details table td,
.mkp-order-complete .woocommerce-table--order-details th,
.mkp-order-complete .woocommerce-table--order-details td{
  padding:11px 12px!important;
  line-height:1.75!important;
  vertical-align:middle!important;
}

.mkp-order-complete .woocommerce-order-details table tfoot th,
.mkp-order-complete .woocommerce-order-details table tfoot td,
.mkp-order-complete .woocommerce-table--order-details tfoot th,
.mkp-order-complete .woocommerce-table--order-details tfoot td{
  padding-top:12px!important;
  padding-bottom:12px!important;
}

.mkp-order-complete .woocommerce-order-details table tfoot tr:last-child th,
.mkp-order-complete .woocommerce-order-details table tfoot tr:last-child td,
.mkp-order-complete .woocommerce-table--order-details tfoot tr:last-child th,
.mkp-order-complete .woocommerce-table--order-details tfoot tr:last-child td{
  padding-top:14px!important;
  padding-bottom:14px!important;
  font-weight:950!important;
}

/* ----------------------------------------------------------
   MY ACCOUNT — Woo order tables/details
   ---------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .woocommerce-table--order-details th,
body.woocommerce-account .woocommerce-table--order-details td{
  box-sizing:border-box!important;
  padding:11px 12px!important;
  line-height:1.7!important;
  vertical-align:middle!important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td,
body.woocommerce-account .woocommerce-table--order-details tfoot th,
body.woocommerce-account .woocommerce-table--order-details tfoot td{
  padding-top:12px!important;
  padding-bottom:12px!important;
}

/* ----------------------------------------------------------
   Generic Woo totals fallback — only footer/summary rows
   ---------------------------------------------------------- */
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td{
  padding-inline:12px!important;
}

/* Keep compact but comfortable on narrow phones. */
@media(max-width:560px){
  body.woocommerce-cart .cart-collaterals .cart_totals{
    padding:15px!important;
  }

  body.woocommerce-cart .cart_totals table.shop_table th,
  body.woocommerce-cart .cart_totals table.shop_table td,
  body.woocommerce-checkout .mkp-checkout-x__review table.shop_table th,
  body.woocommerce-checkout .mkp-checkout-x__review table.shop_table td,
  .mkp-order-complete .woocommerce-order-details table th,
  .mkp-order-complete .woocommerce-order-details table td,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{
    padding-inline:10px!important;
  }

  body.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
  body.woocommerce-cart .cart_totals table.shop_table tr.order-total td,
  body.woocommerce-checkout .mkp-checkout-x__review table.shop_table tr.order-total th,
  body.woocommerce-checkout .mkp-checkout-x__review table.shop_table tr.order-total td{
    padding-top:13px!important;
    padding-bottom:13px!important;
  }
}


/* ==========================================================
   Phase 08-G.18.9.2 — Cart items table spacing polish
   Product / Price / Quantity / Subtotal / Thumbnail
   ========================================================== */

/* Main cart table gets the same breathing contract as Cart Totals. */
body.woocommerce-cart .woocommerce-cart-form table.shop_table{
  width:100%!important;
  max-width:100%!important;
  border-radius:18px!important;
}

/* Header and item cells: more room from all four edges. */
body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th{
  padding:13px 16px!important;
  line-height:1.6!important;
  vertical-align:middle!important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody td{
  padding:15px 16px!important;
  line-height:1.75!important;
  vertical-align:middle!important;
}

/* Keep the data columns visually balanced. */
body.woocommerce-cart .woocommerce-cart-form
:is(
  th.product-remove,
  td.product-remove
){
  width:52px!important;
  min-width:52px!important;
  text-align:center!important;
}

body.woocommerce-cart .woocommerce-cart-form
:is(
  th.product-thumbnail,
  td.product-thumbnail
){
  width:92px!important;
  min-width:92px!important;
  text-align:center!important;
}

body.woocommerce-cart .woocommerce-cart-form
:is(
  th.product-price,
  td.product-price,
  th.product-quantity,
  td.product-quantity,
  th.product-subtotal,
  td.product-subtotal
){
  text-align:center!important;
}

/* Product name keeps readable RTL alignment and room around its content. */
body.woocommerce-cart .woocommerce-cart-form
:is(
  th.product-name,
  td.product-name
){
  padding-inline:18px!important;
  text-align:right!important;
}

body.woocommerce-cart .woocommerce-cart-form td.product-name a{
  display:inline-block!important;
  max-width:100%!important;
  line-height:1.8!important;
}

/* Thumbnail becomes a centered visual tile instead of touching cell edges. */
body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail{
  text-align:center!important;
}

body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail a{
  display:inline-grid!important;
  place-items:center!important;
  margin:0 auto!important;
}

body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img{
  display:block!important;
  margin:0 auto!important;
}

/* Quantity control stays centered in its own column. */
body.woocommerce-cart .woocommerce-cart-form td.product-quantity .quantity{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 auto!important;
}

/* Prices remain centered and visually isolated from RTL reordering. */
body.woocommerce-cart .woocommerce-cart-form
:is(
  td.product-price,
  td.product-subtotal
) .woocommerce-Price-amount{
  margin-inline:auto!important;
}

/* A little extra room at the top/bottom of each product row. */
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td{
  border-bottom-color:var(--mkp-border)!important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item:last-of-type td{
  border-bottom-color:var(--mkp-border)!important;
}

/* ----------------------------------------------------------
   Mobile responsive cart cards
   ---------------------------------------------------------- */
@media(max-width:760px){
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item{
    padding:4px!important;
    border-radius:16px!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item td{
    box-sizing:border-box!important;
    min-height:48px!important;
    padding:12px 14px!important;
    gap:14px!important;
    line-height:1.75!important;
  }

  /* Woo's responsive labels get their own breathing room. */
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item td::before{
    flex:0 0 auto!important;
    margin:0!important;
    padding-inline-end:8px!important;
    color:var(--mkp-muted)!important;
    font-weight:850!important;
    line-height:1.6!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-name{
    align-items:flex-start!important;
    padding-top:14px!important;
    padding-bottom:14px!important;
    text-align:right!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-name a{
    text-align:right!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-thumbnail{
    justify-content:center!important;
    padding-top:14px!important;
    padding-bottom:14px!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-price,
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-quantity,
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-subtotal{
    align-items:center!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item
  td.product-remove{
    min-height:42px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
}

@media(max-width:420px){
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody tr.cart_item td{
    padding-inline:11px!important;
    gap:10px!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img{
    width:54px!important;
    height:54px!important;
  }
}

/* ==========================================================
   Phase 08-G.18.9.4 — Cart true product cards + inset actions
   ========================================================== */

/*
 * The Woo cart table remains semantically intact for WooCommerce,
 * but its visible rows are authored as real independent cards.
 */
body.woocommerce-cart .woocommerce-cart-form table.shop_table{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  border:0!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table thead,
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody{
  width:100%!important;
}

/* ----------------------------------------------------------
   DESKTOP — header + each product row use the same 6-column grid
   ---------------------------------------------------------- */
@media(min-width:761px){
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead{
    display:block!important;
    margin:0 8px 8px!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead tr{
    display:grid!important;
    grid-template-columns:48px 84px minmax(180px,1.35fr) minmax(105px,.62fr) minmax(95px,.55fr) minmax(115px,.66fr)!important;
    align-items:center!important;
    width:calc(100% - 16px)!important;
    margin:0 auto!important;
    padding:0 8px!important;
    border:0!important;
    background:transparent!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    padding:9px 10px!important;
    border:0!important;
    background:transparent!important;
    text-align:center!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead th.product-name{
    justify-content:flex-start!important;
    text-align:right!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody{
    display:block!important;
  }

  /*
   * TRUE CARD:
   * border/radius/background belongs to the row itself, not to individual td's.
   */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item{
    position:relative!important;
    display:grid!important;
    grid-template-columns:48px 84px minmax(180px,1.35fr) minmax(105px,.62fr) minmax(95px,.55fr) minmax(115px,.66fr)!important;
    align-items:center!important;
    width:calc(100% - 16px)!important;
    min-width:0!important;
    margin:0 auto 12px!important;
    padding:8px!important;
    border:1px solid var(--mkp-border)!important;
    border-radius:18px!important;
    background:var(--mkp-surface)!important;
    box-shadow:0 12px 28px rgba(8,37,44,.055)!important;
    filter:none!important;
    overflow:hidden!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:auto!important;
    height:100%!important;
    padding:10px 10px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-align:center!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name{
    justify-content:flex-start!important;
    padding-inline:14px!important;
    text-align:right!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name a{
    width:100%!important;
    text-align:right!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-thumbnail{
    padding-inline:8px!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-thumbnail a{
    display:grid!important;
    place-items:center!important;
    margin:auto!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove{
    padding-inline:6px!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-price,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal{
    justify-content:center!important;
  }

  /* Actions row is independent from product cards. */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr:not(.cart_item){
    display:block!important;
    width:100%!important;
    margin:4px 0 0!important;
    border:0!important;
    background:transparent!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr:not(.cart_item) td.actions{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    flex-wrap:wrap!important;
    width:calc(100% - 72px)!important;
    max-width:790px!important;
    margin:18px auto 4px!important;
    padding:18px 20px!important;
    border:1px solid var(--mkp-border)!important;
    border-radius:17px!important;
    background:var(--mkp-surface-soft)!important;
    box-shadow:0 10px 24px rgba(8,37,44,.04)!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    flex-wrap:wrap!important;
    margin:0!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .input-text{
    width:220px!important;
    min-width:190px!important;
    max-width:260px!important;
    margin:0!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions button[name="apply_coupon"],
  body.woocommerce-cart .woocommerce-cart-form td.actions button[name="update_cart"]{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:142px!important;
    margin:0!important;
    text-align:center!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions button[name="update_cart"]{
    margin-inline-start:2px!important;
  }
}

/* ----------------------------------------------------------
   MOBILE — one clean, unmistakable card per product
   ---------------------------------------------------------- */
@media(max-width:760px){
  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive{
    display:block!important;
    width:100%!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive thead{
    display:none!important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tbody{
    display:block!important;
    width:100%!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item{
    position:relative!important;
    display:grid!important;
    grid-template-columns:76px minmax(0,1fr)!important;
    width:calc(100% - 16px)!important;
    margin:0 auto 12px!important;
    padding:14px!important;
    border:1px solid var(--mkp-border)!important;
    border-radius:18px!important;
    background:var(--mkp-surface)!important;
    box-shadow:0 12px 28px rgba(8,37,44,.06)!important;
    filter:none!important;
    overflow:hidden!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    padding:10px 4px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }

  /* remove button floats on the physical left, outside content rhythm */
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-remove{
    position:absolute!important;
    inset-block-start:10px!important;
    inset-inline-end:10px!important;
    z-index:2!important;
    display:block!important;
    width:30px!important;
    height:30px!important;
    padding:0!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-thumbnail{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    display:grid!important;
    place-items:center!important;
    padding:2px 0 10px 10px!important;
    text-align:center!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-thumbnail::before{
    display:none!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-name{
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    padding:2px 38px 8px 0!important;
    border:0!important;
    text-align:right!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-name::before{
    display:none!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-name a{
    display:block!important;
    width:100%!important;
    text-align:right!important;
    line-height:1.85!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-price,
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-quantity,
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-subtotal{
    grid-column:1 / -1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:11px 4px!important;
    border-top:1px solid var(--mkp-border)!important;
    text-align:left!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-price::before,
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-quantity::before,
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-subtotal::before{
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
    color:var(--mkp-muted)!important;
    font-weight:900!important;
    line-height:1.6!important;
    text-align:right!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item
  td.product-quantity .quantity{
    margin:0!important;
  }

  /*
   * Coupon/update area: an inset card, centered away from outer corners.
   */
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr:not(.cart_item){
    display:block!important;
    width:100%!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr:not(.cart_item)
  td.actions{
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:center!important;
    gap:10px!important;
    width:calc(100% - 28px)!important;
    margin:18px auto 4px!important;
    padding:14px!important;
    border:1px solid var(--mkp-border)!important;
    border-radius:16px!important;
    background:var(--mkp-surface-soft)!important;
    box-shadow:0 10px 22px rgba(8,37,44,.04)!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    width:100%!important;
    margin:0!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .input-text,
  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon button,
  body.woocommerce-cart .woocommerce-cart-form td.actions > button{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .input-text{
    min-height:46px!important;
    padding-inline:13px!important;
  }

  body.woocommerce-cart .woocommerce-cart-form td.actions .coupon button,
  body.woocommerce-cart .woocommerce-cart-form td.actions > button{
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
}

/* ----------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------- */
html[data-mkp-theme="dark"]
body.woocommerce-cart
.woocommerce-cart-form
table.shop_table
tbody
tr.cart_item{
  border-color:rgba(231,242,239,.11)!important;
  background:var(--mkp-surface)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.18)!important;
}

html[data-mkp-theme="dark"]
body.woocommerce-cart
.woocommerce-cart-form
table.shop_table
td.actions{
  border-color:rgba(231,242,239,.10)!important;
  background:#152a30!important;
  box-shadow:0 12px 26px rgba(0,0,0,.14)!important;
}

html[data-mkp-theme="dark"]
body.woocommerce-cart
.woocommerce-cart-form
table.shop_table_responsive
tbody
tr.cart_item
:is(.product-price,.product-quantity,.product-subtotal){
  border-top-color:rgba(231,242,239,.08)!important;
}

/* Small phones keep a visible inset from screen/card edges. */
@media(max-width:420px){
  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr.cart_item{
    width:calc(100% - 12px)!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    padding:12px!important;
  }

  body.woocommerce-cart
  .woocommerce-cart-form
  table.shop_table_responsive
  tbody
  tr:not(.cart_item)
  td.actions{
    width:calc(100% - 20px)!important;
    padding:12px!important;
  }
}
