.woocommerce .cart .button {
    border: none;
    color: white;
}

/* Bootstrap enhancement overrides for cart */
.woocommerce-cart .table th,
.woocommerce-cart .table td {
    vertical-align: middle;
}

/* Minimal fallback when WooCommerce core CSS is dequeued */
.woocommerce form .form-row {
    margin: 0 0 12px;
}

.woocommerce form .form-row input.input-text {
    width: 100%;
}

.woocommerce a.remove:hover {
    opacity: .75;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* Shipping method as selectable cards (match payment styling) */
.cart-page .woocommerce-shipping-methods .shipping-card {
    cursor: pointer;
    display: block;
}

.cart-page .woocommerce-shipping-methods .shipping-card .card-inner {
    transition: border-color .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

.cart-page .woocommerce-shipping-methods .shipping-card:hover .card-inner {
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

/* Selected state: gold border, no shadow */
.cart-page .woocommerce-shipping-methods .shipping-card input[type="radio"]:checked+.card-inner {
    border: 1px solid #a38f61;
    box-shadow: none;
}


.woocommerce .woocommerce-message {
    background: #e6f9ec;
    color: #256c3c;
}

.woocommerce .woocommerce-info {
    background: #eef6ff;
    color: #1e4b78;
}

.woocommerce .woocommerce-error {
    background: #fde8e8;
    color: #8f2d2d;
}

/* (Removed custom button system – using Bootstrap native classes) */
/* Coupon layout + state */
.cart-page .aji-cart-coupon {
    align-items: stretch;
}

.cart-page .aji-cart-coupon input[type="text"] {
    flex: 1 1 auto;
    min-width: 220px;
}

@media (min-width: 768px) {
    .cart-page .aji-cart-coupon input[type="text"] {
        min-width: 280px;
    }
}

@media (min-width: 992px) {
    .cart-page .aji-cart-coupon input[type="text"] {
        min-width: 340px;
    }
}

.cart-page .actions .coupon {
    flex-wrap: nowrap;
}

@media (max-width:575.98px) {
    .cart-page .actions .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-page .actions .coupon button {
        width: 100%;
    }
}

/* Applied coupons: keep neutral styling (no green success state) */
.cart-page .aji-cart-coupon.has-applied-coupon input[type="text"],
.cart-page .aji-cart-coupon.has-applied-coupon input[type="text"]:focus,
.cart-page .aji-cart-coupon.has-applied-coupon button,
.cart-page .aji-cart-coupon.has-applied-coupon button:hover {
    border-color: inherit;
    background: transparent;
    color: inherit;
    box-shadow: none;
    animation: none;
}

@keyframes ajiCouponPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, .45);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: none;
    }
}

/* Lightweight cross-sell base (only if present) */
.aji-cart-page .cross-sells h2 {
    font-size: 17px;
    margin-top: 25px;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: .3px;
}

.aji-cart-page .cross-sells ul.products {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.aji-cart-page .cross-sells ul.products li.product {
    background: #fff;
    border: 1px solid #eceff2;
    border-radius: 10px;
    padding: 12px 12px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.aji-cart-page .cross-sells ul.products li.product a {
    text-decoration: none !important;
}

.aji-cart-page .cross-sells ul.products li.product .price {
    color: #C39D63;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

.aji-cart-page .cross-sells ul.products li.product:hover {
    border-color: #dcdfe3;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .06);
}


/* Removed Elementor-specific overrides (not needed with Bootstrap classes) */

/* =============================
   Proceed to checkout button (native Woo anchor)
   ============================= */
.cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    background: #C39D63;
    border: 1px solid #C39D63;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    padding: .9rem 1.35rem;
    line-height: 1.15;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 3px 10px -2px rgba(195, 157, 99, .38);
    transition: .18s background ease, .18s border-color ease, .18s box-shadow ease, .15s transform ease;
    position: relative;
}

.cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:hover {
    background: #b69153;
    border-color: #b69153;
    box-shadow: 0 6px 18px -4px rgba(195, 157, 99, .55);
    text-decoration: none !important;
}

.cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:focus-visible {
    outline: 2px solid #b69153;
    outline-offset: 3px;
    text-decoration: none !important;
}

.cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:active {
    transform: translateY(1px);
}

.cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward::after {
    content: '\f285';
    /* Bootstrap Icons arrow-right-short */
    font-family: "bootstrap-icons";
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    transform: translateX(0);
    transition: transform .18s ease;
}

.cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward:hover::after {
    transform: translateX(4px);
}

/* Full width on small screens */
@media (max-width: 576px) {
    .cart-page .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward {
        width: 100%;
    }
}


/* Enhanced table styling inspired by modern data tables */
.woocommerce-cart .table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    table-layout: auto;
    width: 100%;
}

/* Show the remove column but make it very narrow with proper button */
.woocommerce-cart .product-remove {
    width: 40px;
    padding: 0.5rem 0.25rem !important;
    border: none;
    text-align: center;
}

.woocommerce-cart .product-remove th {
    width: 40px;
    padding: 0.75rem 0.25rem !important;
}

.woocommerce-cart .product-remove a.remove.btn {
    position: static;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-cart .product-remove a.remove.btn:hover {
    background: #dc3545;
    color: #fff !important;
    border-color: #dc3545;
    transform: scale(1.05);
}

.woocommerce-cart .table td {
    padding: 1.25rem 1rem;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.woocommerce-cart .table th {
    padding: 1rem;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    color: #6b7280;
    background: #fafbfc;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

/* Enhanced card wrapper */
.woocommerce-cart .table-responsive {
    border-radius: 16px;
    transition: all 0.2s ease;
}

/* Row interactions */
.woocommerce-cart tbody tr {
    border: none;
    transition: all 0.15s ease;
}

.woocommerce-cart tbody tr:hover {
    background-color: #fafbfc;
}

.woocommerce-cart tbody tr:hover td {
    border-bottom-color: #d1d5db;
}

.woocommerce-cart tbody tr:first-child td {
    border-top: none;
}

.woocommerce-cart tbody tr:last-child td {
    border-bottom: none;
}

/* First and last cell rounded corners */
.woocommerce-cart .table th:first-child {
    border-top-left-radius: 16px;
}

.woocommerce-cart .table th:last-child {
    border-top-right-radius: 16px;
}

.woocommerce-cart tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.woocommerce-cart tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* Responsive optimizations */
@media (max-width: 991px) {

    .woocommerce-cart .product-price-ext,
    .woocommerce-cart .product-taxes {
        font-size: 11px;
        width: 70px;
    }

    .woocommerce-cart .product-subtotal {
        width: 85px;
        font-size: 14px;
    }

    .woocommerce-cart .product-quantity {
        width: 70px;
    }
}

@media (max-width: 767px) {

    .woocommerce-cart .table th,
    .woocommerce-cart .table td {
        padding: 0.75rem 0.5rem;
    }

    .woocommerce-cart td.product-name {
        font-size: 14px;
    }

    .woocommerce-cart td.product-name a {
        font-size: 15px;
    }

    .woocommerce-cart .product-thumbnail img {
        max-width: 55px;
    }

    .woocommerce-cart a.remove.btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

/* Step flow enhancements */
.step-flow .step-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    transition: all .25s ease;
}

.step-flow .active .step-icon {
    box-shadow: 0 4px 14px rgba(195, 157, 99, .45);
}

.step-flow .step-icon.bg-light {
    background: #f1f3f5 !important;
}

@media (max-width: 575.98px) {
    .step-flow .small {
        font-size: 11px;
    }

    .step-flow .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Optimized column layout */

/* Combined image + remove column */
.woocommerce-cart .product-remove {
    width: 24px;
    padding: 0.5rem 0.25rem !important;
    text-align: center;
    position: relative;
}

.woocommerce-cart .product-remove a.remove.btn:hover {
    background: #dc3545;
    color: #fff !important;
    border-color: #dc3545;
    transform: scale(1.05);
}

/* Optimized column widths for better product name space */

.woocommerce-cart .product-thumbnail {
    width: 90px;
    padding: 0.5rem !important;
    position: relative;
}

.woocommerce-cart .product-thumbnail img {
    border-radius: 10px;
    max-width: 70px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.woocommerce-cart .product-thumbnail img:hover {
    transform: scale(1.02);
}

/* Product name - maximum space available */
.woocommerce-cart td.product-name {
    font-size: 15px;
    line-height: 1.4;
    width: 45%;
    /* Fixed percentage instead of auto */
    max-width: none;
    padding-right: 1rem !important;
}

.woocommerce-cart td.product-name a {
    font-weight: 600;
    text-decoration: none;
    color: #111827;
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    transition: color 0.15s ease;
}

.woocommerce-cart td.product-name a:hover {
    color: #C39D63;
}

/* Compact numeric columns */
.woocommerce-cart .product-price-ext {
    width: 100px;
    color: #374151;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.woocommerce-cart .product-taxes {
    width: 90px;
    color: #6b7280;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}

.woocommerce-cart .product-quantity {
    width: 80px;
    text-align: center;
}

.woocommerce-cart .product-subtotal {
    width: 110px;
    color: #C39D63;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

/* Product details accordion system */
.woocommerce-cart td.product-name .product-details {
    margin-top: 6px;
}

/* Accordion toggle with Keen-style header */
.woocommerce-cart .product-meta-accordion {
    margin-top: 8px;
}

.woocommerce-cart .product-meta-accordion .accordion-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 6px;
}

.woocommerce-cart .product-meta-accordion .accordion-header:hover {
    background-color: rgba(195, 157, 99, 0.08);
}

/* Keen accordion icon animation */
.woocommerce-cart .product-meta-accordion .accordion-icon {
    transition: transform 0.2s ease;
    color: #6b7280;
}

.woocommerce-cart .product-meta-accordion .accordion-header:not(.collapsed) .accordion-icon {
    transform: rotate(90deg);
    color: #C39D63;
}

.woocommerce-cart .product-meta-accordion .accordion-header.collapsed .accordion-icon {
    transform: rotate(0deg);
}

.woocommerce-cart .product-meta-accordion .toggle-text {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.2s ease;
}

.woocommerce-cart .product-meta-accordion .accordion-header:hover .toggle-text {
    color: #C39D63;
}

/* Accordion content */
.woocommerce-cart .product-meta-accordion .accordion-content {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    background: #f8fafc;
    border-radius: 4px;
    margin-top: 6px;
    border-left: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.woocommerce-cart .product-meta-accordion .accordion-content:hover {
    background: #f1f5f9;
    border-left-color: #C39D63;
}

/* Formatted cart item data inside accordion */
.woocommerce-cart .product-meta-accordion .accordion-content .wc-item-meta-list {
    font-size: 11px;
    line-height: 1.2;
    margin: 0;
}

.woocommerce-cart .product-meta-accordion .accordion-content .wc-item-meta-label {
    font-weight: 600;
    margin-right: 4px;
}

.woocommerce-cart .product-meta-accordion .accordion-content .wc-item-meta-value {
    margin-bottom: 2px;
}

.woocommerce-cart .product-meta-accordion .accordion-content>div,
.woocommerce-cart .product-meta-accordion .accordion-content>p {
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.2;
}

.woocommerce-cart .product-meta-accordion .accordion-content>div:last-child,
.woocommerce-cart .product-meta-accordion .accordion-content>p:last-child {
    margin-bottom: 0;
}

/* Fallback styles for variations and other meta not in accordion */
.woocommerce-cart td.product-name .variation,
.woocommerce-cart td.product-name small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.3;
}

/* Quantity input base (will be optionally enhanced by JS later) */
.woocommerce-cart .quantity input[type=number] {
    max-width: 70px;
    text-align: center;
    font-weight: 600;
}

.woocommerce-cart .quantity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.woocommerce-cart .quantity input {
    background: #fff;
    border: 1px solid #d9dde2;
    border-radius: 4px;
    height: 38px;
}

.woocommerce-cart .quantity input:focus {
    border-color: #C39D63;
    box-shadow: 0 0 0 2px rgba(195, 157, 99, .25);
}

/* Optional future buttons placeholder (kept minimal now) */
.woocommerce-cart .quantity button {
    display: none;
}

/* Subtotals accent */
.woocommerce-cart td.product-subtotal strong,
.woocommerce-cart td.product-subtotal span,
.woocommerce-cart .order-total td,
.woocommerce-cart .order-total th {
    font-weight: 600;
}

/* Golden theme button override */
.woocommerce a.button.checkout,
a.checkout-button.button.alt.wc-forward,
.wc-proceed-to-checkout a.checkout-button {
    background: #C39D63;
    border-radius: 6px;
    border: 0;
    box-shadow: 0 3px 8px rgba(195, 157, 99, .35);
    font-weight: 600;
    letter-spacing: .5px;
}

.wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    text-align: center;
    padding: .95rem 1.25rem;
    font-size: 15px;
}

.wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(1px);
}

.woocommerce a.button.checkout:hover,
a.checkout-button.button.alt.wc-forward:hover,
.wc-proceed-to-checkout a.checkout-button:hover {
    opacity: .9;
}

/* Coupon row */
.woocommerce-cart .actions .form-control {
    box-shadow: none;
}

/* Card style (cart totals) synergy */
.woocommerce .cart_totals.card {
    border-radius: 12px;
}

.woocommerce .cart_totals .table {
    margin: 0;
}

/* Accessibility improvement hidden label fallback */
label.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* Remove extra spacing inside responsive wrapper */
.woocommerce-cart .table-responsive {
    background: #fff;
}

/* Enhanced coupon/actions section */
.woocommerce-cart .actions {
    background: #fafbfc;
    border-top: 2px solid #f3f4f6;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    margin: 0 -1px -1px;
}

.cart-page .aji-cart-coupon input[type="text"] {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.cart-page .aji-cart-coupon input[type="text"]:focus {
    border-color: #C39D63;
    box-shadow: 0 0 0 3px rgba(195, 157, 99, 0.1);
    outline: none;
}

.woocommerce-cart .actions .btn {
    font-size: 13px;
    letter-spacing: .03em;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.woocommerce-cart .actions .btn-outline-secondary {
    border-color: #d1d5db;
    color: #6b7280;
    background: #fff;
}

.woocommerce-cart .actions .btn-outline-secondary:hover {
    border-color: #C39D63;
    color: #C39D63;
    background: #fef9f3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(195, 157, 99, 0.15);
}

.woocommerce-cart .actions .btn-secondary {
    background: #C39D63;
    border: 1px solid #C39D63;
    color: #fff;
}

.woocommerce-cart .actions .btn-secondary:hover {
    background: #b39052;
    border-color: #b39052;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(195, 157, 99, 0.25);
}

/* Totals card adjustments */
.woocommerce .cart_totals.card {
    padding: .75rem .75rem 1.25rem;
}

.cart-totals-col {
    position: relative;
}

@media (min-width: 992px) {
    .cart-totals-col {
        position: sticky;
        top: 140px;
    }
}

.woocommerce .cart_totals.card {
    border-radius: 14px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .08);
}

.woocommerce .cart_totals.card .card-header {
    padding: 1rem 1rem .25rem;
}

.woocommerce .cart_totals.card table td,
.woocommerce .cart_totals.card table th {
    padding: .5rem .75rem;
}

/* Visual emphasis total */
.woocommerce .cart_totals .order-total td,
.woocommerce .cart_totals .order-total th {
    font-size: 15px;
}

.woocommerce .cart_totals .order-total td {
    font-weight: 700;
}

/* Minor utility */
.text-muted {
    color: #6b7280 !important;
}

/* Remove button refinement */
.woocommerce-cart a.remove.btn {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

/* Badge style (ex: BON INCLUS) unify */
.woocommerce-cart .ticket-info,
.woocommerce-cart .badge-inline,
.woocommerce-cart .badge {
    background: #0f766e;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    letter-spacing: .5px;
    border-radius: 20px;
    display: inline-block;
}

/* Subtle fade-in for table */
.woocommerce-cart table.cart {
    animation: cartFade .4s ease;
}

@keyframes cartFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html .woocommerce-cart th,
html .woocommerce-cart td,
html .woocommerce-cart table.shop_table {
    border: none !important;
}

/* =============================
   Minimal product lines table (matching totals aesthetic)
   ============================= */
.aji-cart-lines-simple {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #ffffff;
}

.aji-cart-lines-simple thead tr th {
    background: transparent !important;
    border: none !important;
    padding: 1rem .75rem;
    font-size: 11px;
    letter-spacing: .08em;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
}

.aji-cart-lines-simple tbody tr {
    background: transparent !important;
}

.aji-cart-lines-simple tbody tr td {
    background: transparent !important;
    border: none !important;
    padding: 1rem .75rem;
    position: relative;
}

/* Dotted separators between body rows */
.aji-cart-lines-simple tbody tr+tr td:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, #d8dde3 0, #d8dde3 6px, transparent 6px, transparent 12px);
    opacity: .95;
}

/* Keep first row clean */
.aji-cart-lines-simple tbody tr:first-child td:before {
    display: none;
}

/* Remove previous hover gray fill */
.aji-cart-lines-simple tbody tr:hover td {
    background: transparent !important;
}

/* Thumbnail cell tighter */
.aji-cart-lines-simple td.product-thumbnail {
    width: 90px;
}

/* Remove table-level dashed row util classes from earlier markup */
.aji-cart-lines-simple.table-row-dashed.table-row-gray-300 {
    --bs-table-bg: transparent;
}

/* Harmonize with mobile stacked variant: remove inner borders in stacked cards (reuse existing mobile code) */
@media (max-width: 680px) {
    .aji-cart-lines-simple tbody tr {
        border: 1px solid #e5e7eb;
        background: #fff !important;
    }

    .aji-cart-lines-simple tbody tr td {
        padding: 6px 0 !important;
    }

    .aji-cart-lines-simple tbody tr+tr td:before {
        display: none;
    }
}

tr.recurring-totals,
.recurring-total,
.woocommerce-shipping-destination,
.woocommerce-shipping-calculator {
    display: none;
}

a.checkout-button.button.alt.wc-forward {
    padding: 20px;
    background-color: #C39D63;
    border: none;
    color: white;
    font-size: 18px;
}

a.checkout-button.button.alt.wc-forward:hover {
    opacity: 0.8;
}

/* =============================
   Minimal totals style (no dense gray backgrounds)
   ============================= */
.aji-cart-totals-simple {
    background: #ffffff;
    border: 1px solid #eceff2;
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .06);
    border-radius: 16px;
}

.aji-cart-totals-simple .table-responsive {
    background: transparent;
    box-shadow: none;
}

.aji-cart-totals-simple table.shop_table {
    background: transparent;
}

.aji-cart-totals-simple table.shop_table tr {
    background: transparent !important;
}

.aji-cart-totals-simple table.shop_table th,
.aji-cart-totals-simple table.shop_table td {
    background: transparent !important;
    border: none !important;
    padding: .65rem .25rem !important;
}

.aji-cart-totals-simple table.shop_table tr+tr td,
.aji-cart-totals-simple table.shop_table tr+tr th {
    position: relative;
}

.aji-cart-totals-simple table.shop_table tr+tr td:before,
.aji-cart-totals-simple table.shop_table tr+tr th:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, #d8dde3 0, #d8dde3 6px, transparent 6px, transparent 12px);
    opacity: .9;
}

/* Subtotal + taxes muted weight */
.aji-cart-totals-simple .cart-subtotal th,
.aji-cart-totals-simple .cart-subtotal td,
.aji-cart-totals-simple .fee th,
.aji-cart-totals-simple .fee td,
.aji-cart-totals-simple .tax-rate th,
.aji-cart-totals-simple .tax-rate td,
.aji-cart-totals-simple .tax-total th,
.aji-cart-totals-simple .tax-total td {
    font-size: 13px;
}

/* Discount line accent */
.aji-cart-totals-simple .cart-discount th,
.aji-cart-totals-simple .cart-discount td {
    color: #0f766e;
    font-weight: 600;
}

/* Shipping block unify (Woo outputs its own container) */
.aji-cart-totals-simple .woocommerce-shipping-methods li {
    margin: 4px 0;
}

.aji-cart-totals-simple .woocommerce-shipping-totals th {
    vertical-align: top;
}

/* Order total emphasis */
.aji-cart-totals-simple .order-total th {
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #44403c;
}

.aji-cart-totals-simple .order-total td {
    font-size: 22px !important;
    font-weight: 700;
    color: #111827;
}

/* Spacing above checkout button */
.aji-cart-totals-simple .separator {
    display: none;
}

.aji-cart-totals-simple .wc-proceed-to-checkout {
    margin-top: .75rem;
}

/* Compact on very small screens */
@media (max-width: 480px) {

    .aji-cart-totals-simple table.shop_table th,
    .aji-cart-totals-simple table.shop_table td {
        padding: .5rem 0 !important;
    }

    .aji-cart-totals-simple .order-total td {
        font-size: 20px !important;
    }
}

/* Coupon area enhancements */
.aji-cart-coupon h6 i {
    font-size: 16px;
}

.aji-cart-coupon .input-group .form-control {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.aji-cart-coupon .input-group .btn {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.aji-cart-coupon .badge {
    font-size: 11px;
    letter-spacing: .5px;
}

.aji-cart-coupon .badge a {
    line-height: 1;
}

.aji-cart-coupon .badge a:hover {
    opacity: .8;
}

.aji-applied-coupons .badge {
    background: #f8fafc;
}

.aji-applied-coupons .badge:hover {
    background: #f1f5f9;
}

.aji-cart-coupon [data-bs-toggle="collapse"] .show-when-expanded {
    display: none;
}

.aji-cart-coupon [data-bs-toggle="collapse"].collapsed .show-when-collapsed {
    display: inline;
}

.aji-cart-coupon [data-bs-toggle="collapse"].collapsed .show-when-expanded {
    display: none;
}

.aji-cart-coupon [data-bs-toggle="collapse"]:not(.collapsed) .show-when-collapsed {
    display: none;
}

.aji-cart-coupon [data-bs-toggle="collapse"]:not(.collapsed) .show-when-expanded {
    display: inline;
}

@media (max-width: 680px) {
    .aji-cart-coupon .input-group {
        flex-wrap: nowrap;
    }

    .aji-cart-coupon .input-group .form-control {
        min-width: 0;
    }

    .aji-cart-coupon .bg-light.border {
        font-size: 11px;
    }
}

/* =============================
   Responsive stacking (tables -> cards on small screens)
   Progressive enhancement without changing PHP templates
   ============================= */
@media (max-width: 680px) {

    /* Cart line items table */
    .woocommerce-cart table.cart {
        display: block;
        border: 0;
    }

    .woocommerce-cart table.cart thead {
        display: none;
    }

    .woocommerce-cart table.cart tbody {
        display: block;
    }

    .woocommerce-cart table.cart tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        margin-bottom: 18px;
        padding: 14px 16px 12px;
        box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .05);
    }

    .woocommerce-cart table.cart tr:last-child {
        margin-bottom: 0;
    }

    .woocommerce-cart table.cart td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        border: 0 !important;
        padding: 6px 0 !important;
        background: transparent !important;
        position: relative;
    }

    .woocommerce-cart table.cart td:before {
        content: attr(data-title);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #6b7280;
        flex: 1 1 auto;
        text-align: left;
        line-height: 1.3;
    }

    /* Thumbnail separate block */
    .woocommerce-cart table.cart td.product-thumbnail {
        order: 0;
        padding: 0 0 10px !important;
    }

    .woocommerce-cart table.cart td.product-thumbnail:before {
        content: none;
    }

    .woocommerce-cart table.cart td.product-thumbnail img {
        max-width: 90px;
    }

    /* Product name spans full width */
    .woocommerce-cart table.cart td.product-name {
        order: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .woocommerce-cart table.cart td.product-name:before {
        content: attr(data-title);
        margin-bottom: 2px;
    }

    .woocommerce-cart table.cart td.product-price-ext,
    .woocommerce-cart table.cart td.product-taxes,
    .woocommerce-cart table.cart td.product-quantity,
    .woocommerce-cart table.cart td.product-subtotal,
    .woocommerce-cart table.cart td.product-remove {
        order: 2;
    }

    /* Remove button inline refinement */
    .woocommerce-cart table.cart td.product-remove {
        justify-content: flex-end;
        padding-top: 4px !important;
    }

    .woocommerce-cart table.cart td.product-remove:before {
        content: none;
    }

    /* Quantity center alignment adaptation */
    .woocommerce-cart table.cart td.product-quantity:before {
        flex: 0 0 auto;
    }

    /* Subtotal emphasis */
    .woocommerce-cart table.cart td.product-subtotal {
        border-top: 1px dashed #e5e7eb !important;
        margin-top: 6px;
        padding-top: 10px !important;
    }

    /* Accordion meta spacing tweak */
    .woocommerce-cart .product-meta-accordion .accordion-content {
        background: #f9fafb;
    }

    /* Cart totals table -> stacked list */
    .cart_totals.card .table-responsive {
        display: block;
    }

    .cart_totals.card table.shop_table {
        display: block;
        border: 0;
    }

    .cart_totals.card table.shop_table thead {
        display: none;
    }

    .cart_totals.card table.shop_table tbody {
        display: block;
    }

    .cart_totals.card table.shop_table tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 14px 10px;
        margin-bottom: 12px;
    }

    .cart_totals.card table.shop_table tr:last-child {
        margin-bottom: 0;
    }

    .cart_totals.card table.shop_table td,
    .cart_totals.card table.shop_table th {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 0 !important;
        border: 0 !important;
        background: transparent !important;
        font-size: 14px;
    }

    .cart_totals.card table.shop_table th {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #6b7280;
        padding-bottom: 4px !important;
    }

    .cart_totals.card table.shop_table .order-total {
        border: 1px solid #d1b98a;
        background: linear-gradient(135deg, #fffdfa, #fff6e8);
    }

    .cart_totals.card table.shop_table .order-total th {
        color: #44403c;
    }

    .cart_totals.card table.shop_table .order-total td {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
    }

    /* Space above checkout button now that rows are cards */
    .cart_totals.card .separator {
        display: none;
    }

    .cart_totals.card .wc-proceed-to-checkout {
        margin-top: 18px;
    }
}
