/* ==========================================================================
   Cart — Modern Light. Header styles come from checkout.css (.pc-page / .pc-head).
   WooCommerce still owns the cart form, coupon, totals and AJAX updates.
   !important is used only where WooCommerce's own rules use it (remove link, responsive table).
   ========================================================================== */
.pc-cart .prose{width:min(100%,1120px);margin:0 auto;padding:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.pc-cart .woocommerce{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px 22px;align-items:start}
.pc-cart .woocommerce>:is(.woocommerce-notices-wrapper,.woocommerce-message,.woocommerce-error,.woocommerce-info,.wc-empty-cart-message,.return-to-shop){grid-column:1/-1}
.pc-cart .woocommerce-notices-wrapper:empty{display:none}

/* Notices */
.pc-cart .woocommerce-message{margin:0 0 4px;padding:14px 18px 14px 46px;border:1px solid #bbf7d0;border-top:3px solid #16a34a;border-radius:14px;background:#f0fdf4;color:#14532d;font-size:14.5px}
.pc-cart .woocommerce-message::before{top:14px;left:17px;color:#16a34a}
.pc-cart .woocommerce-message a:not(.wc-forward){color:#15803d;font-weight:700}
.pc-cart .woocommerce-message .wc-forward{display:none}

/* Cards */
.pc-cart :is(.woocommerce-cart-form,.cart_totals){padding:8px 24px;background:#fff;border:1px solid var(--pc-line);border-radius:20px;box-shadow:0 1px 2px rgba(11,20,55,.03),0 18px 40px -32px rgba(76,29,149,.35)}
.pc-cart .woocommerce-cart-form{margin:0}
.pc-cart .woocommerce .cart-collaterals{width:auto;margin:0}
.pc-cart .woocommerce .cart-collaterals .cart_totals{float:none;width:auto;padding:22px 24px}
@media(min-width:900px){.pc-cart .cart-collaterals{position:sticky;top:96px}}

/* Items table */
.pc-cart .woocommerce table.shop_table{display:table;width:100%;margin:0;border:0;border-radius:0;border-collapse:collapse}
.pc-cart .woocommerce table.shop_table :is(th,td){padding:16px 8px;border:0;border-bottom:1px solid #f0edf8;background:none;color:var(--navy);vertical-align:middle}
.pc-cart .woocommerce table.cart thead th{padding:14px 8px 12px;color:#6b7290;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.pc-cart .woocommerce table.cart :is(.product-price,.product-subtotal){font-size:16px;font-weight:700;white-space:nowrap}
.pc-cart .woocommerce table.cart .product-subtotal{text-align:right}
.pc-cart .woocommerce table.cart .product-thumbnail{width:128px}
.pc-cart .woocommerce table.cart img.pc-cart-thumb{display:block;width:120px;height:90px;object-fit:cover;border:1px solid #eeeaf7;border-radius:14px}
.pc-cart .woocommerce table.cart .product-name a{color:var(--navy);font-size:16.5px;font-weight:700;text-decoration:none}
.pc-cart .woocommerce table.cart .product-name a:hover{color:#6d28d9}
.pc-cart .pc-cart-meta{display:block;margin-top:4px;color:#6b7290;font-size:13.5px;font-weight:500}
.pc-cart .woocommerce table.cart .product-remove{width:44px;padding-left:0}
.pc-cart .woocommerce a.remove{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f4f2fb;color:#6b7290!important;font-size:20px;font-weight:500;line-height:1;transition:background .2s ease,color .2s ease}
.pc-cart .woocommerce a.remove:hover{background:#fee2e2;color:#b91c1c!important}
/* Plans are sold one at a time: hide the empty quantity column and the no-op update button. */
.pc-cart .woocommerce-cart-form:not(:has(input.qty:not([type=hidden]))) :is(.product-quantity,button[name=update_cart]){display:none}

/* Coupon row */
.pc-cart .woocommerce table.cart td.actions{padding:16px 0 14px;border-bottom:0}
.pc-cart .woocommerce table.cart td.actions .coupon{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pc-cart .woocommerce table.cart td.actions .coupon .input-text{width:220px;min-height:46px;margin:0;padding:10px 14px;border:1.5px solid #dcdff0;border-radius:12px;background:#fff;color:var(--navy);font:inherit;font-size:15px}
.pc-cart .woocommerce table.cart td.actions .coupon .input-text:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.14);outline:none}
.pc-cart .woocommerce table.cart td.actions .coupon .input-text.has-error{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.1)}
.pc-cart .woocommerce table.cart td.actions .coupon .coupon-error-notice{flex-basis:100%;margin:0;color:#b91c1c;font-size:13.5px}
.pc-cart .woocommerce table.cart td.actions .button{min-height:46px;padding:0 18px;border:1.5px solid #d9d0f5;border-radius:12px;background:#fff;color:#5b21b6;font:inherit;font-size:15px;font-weight:700;white-space:nowrap}
.pc-cart .woocommerce table.cart td.actions .button:hover{border-color:#a78bfa;background:#faf7ff}

/* Totals */
.pc-cart .cart_totals h2{margin:0 0 10px;color:var(--navy);font-size:20px;font-weight:800;letter-spacing:-.02em}
.pc-cart .woocommerce .cart_totals table.shop_table :is(th,td){padding:12px 2px;font-size:15px}
.pc-cart .woocommerce .cart_totals table.shop_table th{color:#4b5168;font-weight:600}
.pc-cart .woocommerce .cart_totals table.shop_table td{text-align:right}
.pc-cart .woocommerce .cart_totals .order-total :is(th,td){padding-top:16px;border-bottom:0;font-size:18px;font-weight:800}
.pc-cart .woocommerce .cart_totals .order-total .amount{color:var(--navy);font-size:26px;letter-spacing:-.02em}
.pc-cart .woocommerce .wc-proceed-to-checkout{padding:10px 0 2px}
.pc-cart .woocommerce .wc-proceed-to-checkout a.checkout-button{display:flex;align-items:center;justify-content:center;min-height:56px;margin:0;padding:0 22px;border-radius:12px;background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 45%,#6d28d9 100%);color:#fff;font-size:18px;font-weight:700;box-shadow:0 16px 28px -16px rgba(109,40,217,.9);transition:transform .2s var(--ease),box-shadow .2s ease}
.pc-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover{color:#fff;transform:translateY(-1px);box-shadow:0 20px 32px -16px rgba(109,40,217,.95)}
.pc-cart .pc-cart-note{margin:6px 0 0;color:#6b7290;font-size:13px;text-align:center}

/* Empty cart */
.pc-cart .woocommerce .cart-empty.woocommerce-info{margin:0;padding:18px 20px 18px 50px;border:1px solid var(--pc-line);border-top:3px solid #7c3aed;border-radius:16px;background:#fff;color:#2f3650;font-size:15.5px}
.pc-cart .woocommerce .cart-empty.woocommerce-info::before{top:18px;left:19px;color:#7c3aed}
.pc-cart .return-to-shop{margin:4px 0 0}
.pc-cart:has(.cart-empty) .pc-steps{display:none}
.pc-cart .woocommerce .return-to-shop a.button{display:inline-flex;align-items:center;min-height:52px;padding:0 24px;border-radius:12px;background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 45%,#6d28d9 100%);color:#fff;font-size:16px;font-weight:700;box-shadow:0 16px 28px -16px rgba(109,40,217,.9)}
.pc-cart .woocommerce .return-to-shop a.button:hover{color:#fff;transform:translateY(-1px)}

/* Tablet: stack totals under the items */
@media(max-width:899px){
  .pc-cart .woocommerce{grid-template-columns:minmax(0,1fr)}
}
/* Phone: each item becomes a compact card (WooCommerce's responsive table is replaced) */
@media(max-width:768px){
  .pc-cart :is(.woocommerce-cart-form,.cart_totals){padding:4px 16px;border-radius:18px}
  .pc-cart .woocommerce .cart-collaterals .cart_totals{padding:16px}
  .pc-cart .woocommerce table.cart,.pc-cart .woocommerce table.cart :is(tbody,tr){display:block}
  .pc-cart .woocommerce table.cart tr.cart_item{display:grid;grid-template-columns:88px minmax(0,1fr) auto;grid-template-areas:"thumb name remove" "thumb sub remove";column-gap:14px;row-gap:6px;align-items:center;padding:16px 0;border-bottom:1px solid #f0edf8}
  .pc-cart .woocommerce table.shop_table_responsive tr.cart_item td{display:block!important;padding:0!important;border:0!important;background:none!important;text-align:left!important}
  .pc-cart .woocommerce table.shop_table_responsive tr.cart_item td::before{display:none}
  .pc-cart .woocommerce table.cart tr.cart_item .product-thumbnail{grid-area:thumb;width:auto}
  .pc-cart .woocommerce table.cart img.pc-cart-thumb{width:88px;height:66px;border-radius:12px}
  .pc-cart .woocommerce table.cart tr.cart_item .product-name{grid-area:name}
  .pc-cart .woocommerce table.cart .product-name a{font-size:15px}
  .pc-cart .woocommerce table.cart tr.cart_item .product-price{display:none!important}
  .pc-cart .woocommerce table.cart tr.cart_item .product-subtotal{grid-area:sub}
  .pc-cart .woocommerce table.cart tr.cart_item .product-remove{grid-area:remove;align-self:start;width:auto}
  .pc-cart .woocommerce table.cart td.actions{padding:14px 0!important;background:none!important}
  .pc-cart .woocommerce table.cart td.actions .coupon{flex-wrap:nowrap}
  .pc-cart .woocommerce table.cart td.actions .coupon .button{float:none;width:auto}
  .pc-cart .woocommerce table.cart td.actions .coupon .input-text{flex:1;min-width:0;float:none;width:auto}
  .pc-cart .woocommerce .cart_totals table.shop_table_responsive tr{display:block}
  .pc-cart .woocommerce .cart_totals table.shop_table_responsive td{display:flex!important;justify-content:space-between;align-items:baseline;width:100%;box-sizing:border-box;background:none!important}
  .pc-cart .woocommerce .cart_totals table.shop_table_responsive td::before{float:none;color:#4b5168;font-weight:600}
}
