/* Classic cart: preserve WooCommerce's forms, table labels and responsive behavior. */
.pbms-woo--cart .woocommerce-cart-form { margin: 0 0 36px; }
.pbms-woo--cart .woocommerce-cart-form table.shop_table { width: 100%; margin: 0; border: 1px solid var(--pbms-line); border-radius: 16px; border-collapse: separate; border-spacing: 0; background: #fff; color: var(--pbms-ink); }
.pbms-woo--cart .woocommerce-cart-form table.shop_table th { padding: 17px 18px; border: 0; border-bottom: 1px solid var(--pbms-line); background: #f5f3eb; color: var(--pbms-muted); font-size: 12px; font-weight: 650; line-height: 1.5; text-align: left; letter-spacing: .06em; text-transform: uppercase; }
.pbms-woo--cart .woocommerce-cart-form table.shop_table th:first-child { border-top-left-radius: 15px; }
.pbms-woo--cart .woocommerce-cart-form table.shop_table th:last-child { border-top-right-radius: 15px; }
.pbms-woo--cart .woocommerce-cart-form table.shop_table td { padding: 20px 18px; border: 0; border-bottom: 1px solid #ebede6; background: transparent; color: var(--pbms-ink); font-size: 15px; line-height: 1.6; vertical-align: middle; }
.pbms-woo--cart .woocommerce-cart-form table.shop_table tbody tr:last-child td { border-bottom: 0; }
.pbms-woo--cart .woocommerce-cart-form .product-remove { width: 62px; }
.pbms-woo--cart .woocommerce-cart-form a.remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--pbms-line); border-radius: 50%; background: #fff; color: #615e54 !important; font-size: 25px; font-weight: 400; line-height: 1; text-decoration: none; }
.pbms-woo--cart .woocommerce-cart-form a.remove:hover { border-color: #a84c3d; background: #fff0ed; color: #8d382c !important; }
.pbms-woo--cart .woocommerce-cart-form .product-thumbnail { width: 118px; }
.pbms-woo--cart .woocommerce-cart-form .product-thumbnail img { display: block; width: 82px; height: 82px; max-width: 100%; margin: 0; padding: 6px; border-radius: 9px; background: #f5f5ef; object-fit: contain; }
.pbms-woo--cart .woocommerce-cart-form .product-name { min-width: 140px; overflow-wrap: anywhere; }
.pbms-woo--cart .woocommerce-cart-form .product-name > a { color: var(--pbms-ink); font-size: 16px; font-weight: 650; line-height: 1.55; text-decoration: none; }
.pbms-woo--cart .woocommerce-cart-form .product-name > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pbms-woo--cart .woocommerce-cart-form .product-name dl.variation { margin: 7px 0 0; color: var(--pbms-muted); font-size: 13px; line-height: 1.55; }
.pbms-woo--cart .woocommerce-cart-form .product-name dl.variation dt, .pbms-woo--cart .woocommerce-cart-form .product-name dl.variation dd { margin-top: 0; margin-bottom: 4px; }
.pbms-woo--cart .woocommerce-cart-form .product-name dl.variation dd p { margin: 0; }
.pbms-woo--cart .woocommerce-cart-form .product-price, .pbms-woo--cart .woocommerce-cart-form .product-subtotal { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbms-woo--cart .woocommerce-cart-form .product-subtotal { font-weight: 700; }
.pbms-woo--cart .woocommerce-cart-form .quantity { margin: 0; }
.pbms-woo--cart .woocommerce-cart-form .quantity input.qty { display: inline-block; width: 82px; max-width: 100%; min-height: 46px; margin: 0; padding: 9px 6px 9px 12px; border: 1px solid #c5cbc0; border-radius: 8px; background: #fff; color: var(--pbms-ink); font: inherit; font-size: 16px; line-height: 1.5; text-align: center; box-shadow: none; }
.pbms-woo--cart .woocommerce-cart-form table.shop_table td.actions { padding: 22px; }
.pbms-woo--cart .woocommerce-cart-form .actions .coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; }
.pbms-woo--cart .woocommerce-cart-form .actions .coupon .input-text { float: none; width: 190px; max-width: 100%; min-height: 46px; margin: 0; padding: 10px 13px; border: 1px solid #c5cbc0; border-radius: 8px; background: #fff; color: var(--pbms-ink); font: inherit; font-size: 16px; line-height: 1.5; box-shadow: none; }
.pbms-woo--cart .woocommerce :where(a.button, button.button, input.button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 0; padding: 11px 18px; border: 1px solid var(--pbms-ink); border-radius: 8px; background: var(--pbms-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: none; }
.pbms-woo--cart .woocommerce :where(a.button, button.button, input.button):hover { border-color: #444d43; background: #444d43; color: #fff; }
.pbms-woo--cart .woocommerce :where(button.button, input.button):disabled { padding: 11px 18px; border-color: #d3d7cd; background: #e9ece4; color: #5e6659; opacity: 1; cursor: not-allowed; }
.pbms-woo--cart .woocommerce button.button:disabled[disabled] { border-color: #d3d7cd; background: #e9ece4; color: #5e6659; opacity: 1; }
.pbms-woo--cart .woocommerce-cart-form .actions .coupon .button { float: none; width: auto; margin: 0; border-color: var(--pbms-line); background: #fff; color: var(--pbms-ink); }
.pbms-woo--cart .woocommerce-cart-form .actions .coupon .button:hover { border-color: #acb5a5; background: #f5f5ee; }
.pbms-woo--cart .cart-collaterals { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; width: 100%; }
.pbms-woo--cart .cart-collaterals::before, .pbms-woo--cart .cart-collaterals::after { display: none; }
.pbms-woo--cart .cart-collaterals .cross-sells { float: none; flex: 1 1 400px; width: auto; min-width: 0; max-width: 100%; margin: 0; }
.pbms-woo--cart .cart-collaterals .cross-sells > h2, .pbms-woo--cart .cart-collaterals .cart_totals > h2 { margin: 0 0 22px; color: var(--pbms-ink); font-size: clamp(23px, 2.2vw, 29px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.pbms-woo--cart .cart-collaterals .cart_totals { float: none; flex: 0 1 460px; width: 100%; max-width: 100%; margin: 0 0 0 auto; padding: 28px; border: 1px solid var(--pbms-line); border-radius: 16px; background: #fff; }
.pbms-woo--cart .cart_totals table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; }
.pbms-woo--cart .cart_totals table.shop_table th, .pbms-woo--cart .cart_totals table.shop_table td { padding: 16px 0; border: 0; border-top: 1px solid var(--pbms-line); background: transparent; color: var(--pbms-ink); font-size: 14px; line-height: 1.65; vertical-align: top; }
.pbms-woo--cart .cart_totals table.shop_table th { width: 40%; padding-right: 18px; font-weight: 600; text-align: left; }
.pbms-woo--cart .cart_totals table.shop_table td { text-align: right; }
.pbms-woo--cart .cart_totals table.shop_table .order-total th, .pbms-woo--cart .cart_totals table.shop_table .order-total td { padding-top: 22px; font-size: 20px; font-weight: 750; }
.pbms-woo--cart .cart_totals .tax_label, .pbms-woo--cart .cart_totals .includes_tax, .pbms-woo--cart .woocommerce-shipping-destination { color: var(--pbms-muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.pbms-woo--cart .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.pbms-woo--cart .cart_totals ul#shipping_method li { margin: 0 0 10px; line-height: 1.5; }
.pbms-woo--cart .cart_totals ul#shipping_method label { display: inline; font-size: 13px; font-weight: 400; }
.pbms-woo--cart .cart_totals ul#shipping_method input { width: 18px; height: 18px; margin: 0 7px 0 0; accent-color: #775905; vertical-align: middle; }
.pbms-woo--cart .shipping-calculator-button { display: inline-block; min-height: 44px; padding: 10px 0; color: var(--pbms-ink); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.pbms-woo--cart .shipping-calculator-form { margin: 0 0 12px; }
.pbms-woo--cart .shipping-calculator-form .input-text, .pbms-woo--cart .shipping-calculator-form select { min-height: 46px; padding: 10px 12px; border: 1px solid #c5cbc0; border-radius: 8px; background: #fff; color: var(--pbms-ink); font: inherit; font-size: 16px; line-height: 1.5; }
.pbms-woo--cart .wc-proceed-to-checkout { margin: 0; padding: 20px 0 0; }
.pbms-woo--cart .woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; min-height: 54px; margin: 0; border-color: var(--pbms-gold); background: var(--pbms-gold); color: var(--pbms-ink); font-size: 16px; font-weight: 750; }
.pbms-woo--cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { border-color: #e0a51d; background: #e0a51d; color: var(--pbms-ink); }
.pbms-woo--cart .cart-empty { margin-bottom: 20px; }
.pbms-woo--cart .return-to-shop { margin: 20px 0 0; }
.pbms-woo--cart .cross-sells ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 20px; margin: 0; padding: 0; }
.pbms-woo--cart .cross-sells ul.products::before, .pbms-woo--cart .cross-sells ul.products::after { display: none; }
.pbms-woo--cart .cross-sells ul.products li.product { float: none; clear: none; width: auto; margin: 0; padding: 16px; border: 1px solid var(--pbms-line); border-radius: 14px; background: #fff; }
.pbms-woo--cart .cross-sells ul.products li.product img { width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 14px; border-radius: 8px; object-fit: contain; }
.pbms-woo--cart .cross-sells ul.products li.product .woocommerce-loop-product__title { color: var(--pbms-ink); font-size: 16px; line-height: 1.5; }
.pbms-woo--cart .cross-sells ul.products li.product .price { margin: 10px 0; color: var(--pbms-ink); font-size: 18px; font-weight: 700; }
.pbms-woo--cart .cross-sells ul.products li.product .button { width: 100%; margin: 10px 0 0; }
.pbms-woo--cart .woocommerce :where(a, button, input, select):focus-visible { outline: 3px solid var(--pbms-focus); outline-offset: 4px; }

/* Cart block: public outer wrapper and documented button component only.
   React owns the internal structure, quantity UI, columns and mobile fixed CTA. */
.pbms-woo--cart .wp-block-woocommerce-cart { padding: clamp(16px, 2.2vw, 30px); border: 1px solid var(--pbms-line); border-radius: 18px; background: #fff; color: var(--pbms-ink); font-family: inherit; }
body.pbms-woo--cart .wp-block-woocommerce-cart:is(.alignwide, .alignfull) { width: 100%; min-width: 0; max-width: 100%; margin-inline: 0; }
.pbms-woo--cart .wp-block-woocommerce-cart a:where(:not(.wc-block-components-button, .wp-element-button, .wp-block-button__link)) { color: var(--pbms-ink); text-underline-offset: 3px; }
.pbms-woo--cart .wc-block-components-button { min-height: 48px; padding: 12px 20px; border: 1px solid var(--pbms-ink); border-radius: 8px; background: var(--pbms-ink); color: #fff; font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.5; text-decoration: none; box-shadow: none; }
.pbms-woo--cart .wc-block-components-button:hover { border-color: #444d43; background: #444d43; color: #fff; }
.pbms-woo--cart .wc-block-components-button:focus-visible { outline: 3px solid var(--pbms-focus); outline-offset: 4px; }
.pbms-woo--cart .wc-block-components-button:disabled { border-color: #d3d7cd; background: #e9ece4; color: #5e6659; opacity: 1; cursor: not-allowed; }
@media (max-width: 900px) {
  .pbms-woo--cart .woocommerce-cart-form table.shop_table th, .pbms-woo--cart .woocommerce-cart-form table.shop_table td { padding-right: 12px; padding-left: 12px; }
  .pbms-woo--cart .woocommerce-cart-form .product-thumbnail { width: 88px; }
  .pbms-woo--cart .woocommerce-cart-form .product-thumbnail img { width: 64px; height: 64px; }
}
@media (max-width: 768px) {
  .pbms-woo--cart .woocommerce-cart-form table.shop_table { border: 0; border-radius: 0; background: transparent; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table tbody tr { position: relative; margin: 0 0 16px; padding: 16px; border: 1px solid var(--pbms-line); border-radius: 14px; background: #fff; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table td { padding: 12px 0; border-bottom: 1px solid #ebede6; background: transparent !important; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table td:last-child { border-bottom: 0; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table td::before { margin-right: 16px; color: var(--pbms-muted); font-size: 13px; font-weight: 500; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table .product-remove { position: absolute; z-index: 1; top: 12px; right: 12px; width: 44px; padding: 0; border: 0; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table .product-thumbnail { display: block !important; width: auto; padding-top: 0; padding-bottom: 16px; border: 0; text-align: left !important; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table .product-thumbnail::before, .pbms-woo--cart .woocommerce-cart-form table.shop_table .product-name::before { display: none; }
  .pbms-woo--cart .woocommerce-cart-form .product-thumbnail img { width: 84px; height: 84px; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table .product-name { padding-top: 0; padding-right: 44px; text-align: left !important; }
  .pbms-woo--cart .woocommerce-cart-form table.shop_table td.actions { padding: 0; }
  .pbms-woo--cart .woocommerce-cart-form .actions .coupon { display: flex; width: 100%; padding: 0 0 14px; }
  .pbms-woo--cart .woocommerce-cart-form .actions .coupon .input-text { flex: 1 1 150px; width: 0; min-width: 0; }
  .pbms-woo--cart .woocommerce-cart-form .actions .coupon .button { flex: 1 1 120px; width: auto; }
  .pbms-woo--cart .woocommerce-cart-form .actions > button[name="update_cart"] { width: 100%; margin: 0; }
  .pbms-woo--cart .cart-collaterals { gap: 28px; }
  .pbms-woo--cart .cart-collaterals .cart_totals { flex-basis: 100%; padding: 22px; }
  .pbms-woo--cart .cart_totals table.shop_table td { background: transparent !important; }
  .pbms-woo--cart .cart_totals table.shop_table .order-total td { font-size: 20px; }
}
@media (forced-colors: active) {
  .pbms-woo--cart .woocommerce-cart-form table.shop_table, .pbms-woo--cart .cart-collaterals .cart_totals, .pbms-woo--cart .wp-block-woocommerce-cart { border: 1px solid CanvasText; }
}
@media (max-width: 360px) {
  /* Leave the native block's intrinsic table sizing intact on very small screens. */
  .pbms-woo--cart .wp-block-woocommerce-cart { padding: 12px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b5ad95 var(--pbms-cream); }
}
