/* 1.7.4: only calculator lines receive cards; native totals/forms stay intact. */
body table.twbc-card-table tr.twbc-card-ready > td.twbc-source-cell {display:none!important}
body table.twbc-card-table tr.twbc-card-ready {display:table-row!important;background:transparent!important;padding:0!important;margin:0!important;border:0!important}
body table.twbc-card-table tr.twbc-card-ready > td.product-name {
 display:table-cell!important;width:auto!important;max-width:none!important;min-width:0!important;
 padding:8px 0!important;border:0!important;background:transparent!important;text-align:left!important;
 white-space:normal!important;vertical-align:top!important
}
body table.twbc-card-table tr.twbc-card-ready > td.product-name::before {display:none!important;content:none!important}
body table.twbc-card-table.twbc-flooring-only > thead {
 position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important
}
body table.twbc-card-table .twbc-item-card {
 box-sizing:border-box!important;min-width:0!important;width:100%!important;padding:16px!important;margin:0!important;
 border:1px solid #e5e0d9!important;border-radius:8px!important;background:#faf8f5!important;color:#292725!important;
 font-family:inherit!important;font-size:14px!important;line-height:1.4!important;text-align:left!important
}
body .twbc-item-card *, body .twbc-item-card *::before, body .twbc-item-card *::after {box-sizing:border-box}
body .twbc-item-card .twbc-item-header {display:flex!important;align-items:flex-start!important;gap:12px!important;margin:0 0 14px!important;min-width:0!important}
body .twbc-item-card .twbc-image-slot {flex:0 0 64px!important;width:64px!important}
body .twbc-item-card .twbc-image-slot img {display:block!important;width:64px!important;height:64px!important;max-width:100%!important;object-fit:cover!important;border:1px solid #e5e0d9!important;border-radius:4px!important}
body .twbc-item-card .twbc-item-identity {flex:1 1 0!important;min-width:0!important;text-align:left!important}
body .twbc-item-card .twbc-item-title, body .twbc-item-card .twbc-item-title a {color:#292725!important;font-size:15px!important;font-weight:600!important;line-height:1.4!important;text-align:left!important;word-break:normal!important;overflow-wrap:anywhere!important;text-transform:none!important}
body .twbc-item-card .twbc-remove-slot {flex:0 0 auto!important}
body .twbc-item-card .twbc-remove-slot a.remove {display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;font-size:20px!important;line-height:1!important}
body .twbc-item-card .twbc-reference-row, body .twbc-item-card .twbc-purchase-row {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;min-width:0!important}
body .twbc-item-card .twbc-reference-row {padding:10px 0!important;border-top:1px solid #e5e0d9!important;border-bottom:1px solid #e5e0d9!important}
body .twbc-item-card .twbc-purchase-row {padding-top:12px!important;align-items:start!important}
body .twbc-item-card .twbc-figure {min-width:0!important;padding:0 8px!important;text-align:center!important}
body .twbc-item-card .twbc-figure + .twbc-figure {border-left:1px solid #e5e0d9!important}
body .twbc-item-card .twbc-figure-label {display:block!important;margin:0 0 5px!important;padding:0!important;font-size:11px!important;line-height:1.35!important;font-weight:500!important;color:#655d54!important;text-align:center!important;text-transform:none!important;letter-spacing:0!important;white-space:normal!important}
body .twbc-item-card .twbc-figure-value {display:block!important;margin:0!important;padding:0!important;text-align:center!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body .twbc-item-card .twbc-reference-row .twbc-figure-value,
body .twbc-item-card .twbc-reference-row .amount,
body .twbc-item-card .twbc-reference-row bdi {font-size:13px!important;font-weight:500!important;line-height:1.4!important;color:#655d54!important}
body .twbc-item-card .twbc-purchase-row .twbc-figure-value,
body .twbc-item-card .twbc-purchase-row .amount,
body .twbc-item-card .twbc-purchase-row bdi,
body .twbc-item-card .twbc-saved-boxes {font-size:18px!important;font-weight:700!important;line-height:1.4!important;color:#292725!important}
body .twbc-item-card .twbc-purchase-row .twbc-figure-label {font-weight:600!important;color:#292725!important}
body .twbc-item-card .twbc-figure-value .tax_label {display:block!important;font-size:10px!important;font-weight:400!important;white-space:normal!important}
body .twbc-item-card .twbc-edit-basket {display:block!important;width:max-content!important;max-width:100%!important;margin:4px auto 0!important;color:#80633e!important;font-size:11px!important;font-weight:500!important;text-decoration:underline!important;text-underline-offset:2px!important}
body .twbc-item-card .quantity {display:inline-flex!important;float:none!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;margin:0 auto!important}
body .woocommerce-cart-form .twbc-item-card input.qty {
 display:inline-block!important;box-sizing:border-box!important;width:68px!important;min-width:0!important;max-width:100%!important;
 height:40px!important;min-height:40px!important;margin:0!important;padding:6px 3px!important;border:1px solid #b08a58!important;border-radius:5px!important;
 color:#292725!important;-webkit-text-fill-color:#292725!important;background:#fff!important;opacity:1!important;visibility:visible!important;
 font-family:inherit!important;font-size:18px!important;font-weight:700!important;font-style:normal!important;line-height:1.4!important;text-align:center!important;box-shadow:none!important
}
body .twbc-item-card input.qty:focus {outline:2px solid #b08a58!important;outline-offset:2px!important}
body .twbc-item-card dl.variation {display:grid!important;grid-template-columns:max-content minmax(0,1fr)!important;gap:2px 5px!important;margin:5px 0 0!important;font-size:12px!important;line-height:1.4!important;text-align:left!important}
body .twbc-item-card dl.variation dt, body .twbc-item-card dl.variation dd {display:block!important;float:none!important;clear:none!important;margin:0!important;padding:0!important;color:#655d54!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body .twbc-item-card dl.variation p {margin:0!important;font-size:inherit!important;line-height:inherit!important}
body .woocommerce-cart-form .twbc-item-saving .twbc-reference-row, body .woocommerce-cart-form .twbc-item-saving .twbc-purchase-row {opacity:.55}
.twbc-item-updating {display:block;margin-top:5px;color:#80633e;font-size:12px;font-weight:500}
body .twbc-item-card .twbc-item-updating[hidden], body .woocommerce-cart-form.twbc-auto-save :is(button,input)[name="update_cart"][hidden] {display:none!important}
.twbc-cart-status {padding:10px 12px;margin:0 0 12px;border:1px solid #e5e0d9;border-left:3px solid #b08a58;background:#faf8f5;color:#292725;font-size:14px;line-height:1.5}
.twbc-cart-status.twbc-update-error {border-left-color:#954529}
.twbc-cart-status .twbc-retry, .twbc-cart-status .twbc-reload {margin:5px 0 0 10px;font-size:13px;color:#292725}
.twbc-cart-status [hidden], .twbc-cart-status[hidden] {display:none!important}
/* The complete order summary remains visually stronger than an item subtotal. */
body.woocommerce-cart .cart_totals .order-total .amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount {font-size:24px!important;font-weight:750!important;color:#292725!important}
@media(max-width:900px) {
 /* Break out of the six-column table's intrinsic minimum width on small screens.
    The ordinary rows retain WooCommerce's stacked responsive cell content. */
 body.woocommerce-cart table.twbc-card-table,
 body.woocommerce-cart table.twbc-card-table > tbody,
 body.woocommerce-cart table.twbc-card-table > tbody > tr {display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 body.woocommerce-cart table.twbc-card-table > thead {display:none!important}
 body.woocommerce-cart table.twbc-card-table tr.twbc-card-ready > td.product-name,
 body.woocommerce-cart table.twbc-card-table > tbody > tr:not(.twbc-card-ready) > td {display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
}
@media(max-width:600px) {
 body table.twbc-card-table .twbc-item-card {padding:12px!important}
 body .twbc-item-card .twbc-figure {padding:0 4px!important}
 body .twbc-item-card .twbc-figure-label {font-size:10px!important;min-height:27px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important}
 body .twbc-item-card .twbc-purchase-row .twbc-figure-value,
 body .twbc-item-card .twbc-purchase-row .amount,
 body .twbc-item-card .twbc-purchase-row bdi,
 body .twbc-item-card .twbc-saved-boxes {font-size:16px!important}
 body .twbc-item-card .twbc-reference-row .twbc-figure-value,
 body .twbc-item-card .twbc-reference-row .amount,
 body .twbc-item-card .twbc-reference-row bdi {font-size:12px!important}
 body .twbc-item-card .twbc-item-title, body .twbc-item-card .twbc-item-title a {font-size:14px!important}
 body .twbc-item-card .twbc-image-slot {flex-basis:52px!important;width:52px!important}
 body .twbc-item-card .twbc-image-slot img {width:52px!important;height:52px!important}
 body .twbc-item-card dl.variation {grid-template-columns:minmax(0,1fr)!important;gap:0!important}
}

/* 1.7.5: compact mobile cards and stable, always-centred 44px purchase values. */
body.twbc-auto-ready .woocommerce-cart-form :is(button,input)[name="update_cart"] {display:none!important}
body .twbc-item-card .twbc-label-mobile {display:none!important}
body .twbc-item-card .twbc-figure-value {overflow-wrap:normal!important;word-break:normal!important}
body .twbc-item-card .amount, body .twbc-item-card bdi {white-space:nowrap!important;word-break:keep-all!important}
body .twbc-item-card .twbc-purchase-row .twbc-figure-value {
 min-height:44px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
 white-space:nowrap!important;column-gap:3px!important
}
body .twbc-item-card .twbc-purchase-row .tax_label {flex-basis:100%!important}
body .woocommerce-cart-form .twbc-item-card input.qty {height:44px!important;min-height:44px!important;width:80px!important;font-size:16px!important}
body .twbc-item-card .twbc-edit-basket {margin:6px 0 0!important;width:33.333%!important;text-align:center!important}
body .twbc-cart-status:not(.twbc-update-error) {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
body .twbc-cart-status.twbc-update-error {font-size:12px!important;padding:8px 10px!important}
body .twbc-cart-status .twbc-retry {padding:4px 9px!important;min-height:30px!important;border:1px solid #b08a58!important;border-radius:4px!important;background:#faf8f5!important;color:#292725!important;font-size:12px!important}
@media(max-width:600px) {
 body .twbc-item-card .twbc-label-desktop {display:none!important}
 body .twbc-item-card .twbc-label-mobile {display:inline!important}
 /* Override only verified cart/review wrappers; billing and payment padding stay native. */
 body.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form,
 body.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce-cart-form.twbc-auto-save {padding:6px!important}
 body.woocommerce-checkout .woocommerce-checkout-review-order-table.twbc-card-table {table-layout:fixed!important}
 body.woocommerce-checkout table.twbc-card-table tr.twbc-card-ready > td.product-name {padding:6px 0!important}
 body table.twbc-card-table .twbc-item-card {padding:10px!important}
 body .twbc-item-card .twbc-item-header {gap:9px!important;margin-bottom:10px!important}
 body .twbc-item-card .twbc-figure {padding:0 3px!important}
 body .twbc-item-card .twbc-figure-label {height:28px!important;min-height:28px!important;margin-bottom:2px!important;align-items:center!important;font-size:11px!important;line-height:1.2!important}
 body .twbc-item-card .twbc-reference-row .twbc-figure-value {min-height:24px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
 body .twbc-item-card .twbc-reference-row .tax_label {flex-basis:100%!important}
 body .twbc-item-card .twbc-reference-row {padding:7px 0!important}
 body .twbc-item-card .twbc-purchase-row {padding-top:8px!important}
}
/* 1.7.6: fallback follows measured card width, at every viewport size. */
 body .twbc-item-card.twbc-wide-subtotal .twbc-purchase-row {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .twbc-item-card.twbc-wide-subtotal .twbc-subtotal-slot {grid-column:1 / -1!important;border-left:0!important;border-top:1px solid #e5e0d9!important;margin-top:7px!important;padding-top:6px!important}
 body .twbc-item-card.twbc-wide-subtotal .twbc-edit-basket {width:50%!important}
 body .twbc-item-card.twbc-large-values .twbc-purchase-row .twbc-figure-value {font-size:14px!important}
body .twbc-removal-status {display:block!important;max-width:180px;margin:5px auto 0;color:#80633e;font-size:11px!important;font-weight:400!important;line-height:1.4!important;white-space:normal!important;text-align:center!important}
body .twbc-removal-pending input.qty {cursor:wait!important;background:#faf8f5!important}
body .twbc-item-card.twbc-wide-subtotal .twbc-figure-label {min-height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important}
/* Compact references depend on card width, including narrow desktop columns. */
body .twbc-item-card {container-type:inline-size}
@container (max-width:330px) {
 body .twbc-item-card .twbc-label-desktop {display:none!important}
 body .twbc-item-card .twbc-label-mobile {display:inline!important}
 body .twbc-item-card .twbc-figure {padding:0 3px!important}
 body .twbc-item-card .twbc-reference-row .twbc-figure-label {min-height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important}
 body .twbc-item-card .twbc-reference-row .twbc-figure-value,
 body .twbc-item-card .twbc-reference-row .amount,
 body .twbc-item-card .twbc-reference-row bdi {font-size:12px!important;white-space:nowrap!important}
}
