/* ============================================================
   R&K CART PAGE — betheme-child/woocommerce/cart/cart-styles.css

   Breakpoints:
   - ≥1200px : desktop (table + totals sidebar on the right)
   - 900-1199px : tablet (table layout retained, totals stack below
                  table, right-aligned at max-width 480px to echo
                  the desktop sidebar position)
   - ≤899px : mobile (each cart item collapses to a card with
              grid layout; totals stack below at full width)
   ============================================================ */

   :root {
    --rk-cart-panel-bg: #eae4d9;
    --rk-cart-border:   #c5beb0;
    --rk-cart-text:     #333;
    --rk-cart-muted:    #888;
    --rk-cart-mid:      #555;
}

/* ── Page title ───────────────────────────────────────────── */
.woocommerce-cart h1.page-title,
.woocommerce-cart .section_wrapper > h1,
#Content .entry-content .page-title h1 {
    text-transform: none !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-weight: 300 !important;
    font-size: clamp(22px, 4vw, 38px) !important;
    letter-spacing: 0 !important;
    color: var(--rk-cart-text) !important;
    text-align: center !important;
    margin-bottom: 32px !important;
    font-style: normal !important;
}

/* ── Cart table ───────────────────────────────────────────── */
.rk-cart-table {
    border-collapse: collapse !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

.rk-cart-table thead tr {
    border-top: 2px solid var(--rk-cart-text) !important;
    border-bottom: 1px solid var(--rk-cart-text) !important;
}

.rk-cart-table thead th {
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--rk-cart-text) !important;
    font-weight: normal !important;
    padding: 14px 12px !important;
    text-align: left !important;
    border: none !important;
    background: transparent !important;
}

.rk-cart-table thead th.product-price,
.rk-cart-table thead th.product-quantity,
.rk-cart-table thead th.product-subtotal {
    text-align: center !important;
}

/* ── Main product row ─────────────────────────────────────── */
.rk-cart-table tbody tr.cart_item td {
    border: none !important;
    padding: 18px 12px 6px !important;
    vertical-align: middle !important;
    background: transparent !important;
}

/* Thumbnail */
.rk-cart-table td.product-thumbnail {
    width: 170px !important;
    min-width: 170px !important;
    padding: 18px 20px 6px 0 !important;
    vertical-align: top !important;
}

.rk-cart-table td.product-thumbnail a {
    display: block !important;
    width: 170px !important;
    height: 170px !important;
    background: #f3ede3 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.rk-cart-table td.product-thumbnail a img,
.rk-cart-table td.product-thumbnail > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.rk-cart-table td.product-name {
    vertical-align: top !important;
    padding-top: 18px !important;
}

/* Product info column */
.rk-cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rk-cart-product-category {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    font-style: normal !important;
    color: var(--rk-cart-text) !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}

.rk-cart-product-category a {
    color: inherit !important;
    text-decoration: none !important;
    font-style: normal !important;
}

.rk-cart-product-category a:hover {
    text-decoration: underline !important;
}

.rk-cart-product-sku-inline,
.rk-cart-product-meta,
.rk-cart-product-dims,
.rk-cart-product-dims-metric {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--rk-cart-mid) !important;
    font-style: normal !important;
    line-height: 1.45 !important;
}

.rk-cart-product-sku-inline {
    color: var(--rk-cart-muted) !important;
}

/* SKU column */
.rk-cart-table td.product-sku,
.rk-cart-table th.product-sku {
    white-space: nowrap !important;
}

.rk-cart-sku-col {
    font-family: 'Blair', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--rk-cart-mid) !important;
}

/* Price + subtotal */
.rk-cart-table td.product-price,
.rk-cart-table td.product-subtotal {
    text-align: center !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 13px !important;
    color: var(--rk-cart-text) !important;
    white-space: nowrap !important;
}

.rk-cart-table td.product-price .woocommerce-Price-amount,
.rk-cart-table td.product-subtotal .woocommerce-Price-amount {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}
.rk-trade-price .rk-trade-original .woocommerce-Price-amount {
    color: #a8a8a8;
    text-decoration: line-through;
}

/* ── Breakdown in addons-row subtotal cell when add-ons applied ─ */
.rk-bd {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 3px !important;
    text-align: right !important;
    min-width: 180px !important;
    font-family: 'Futura Light BT', sans-serif !important;
    margin-left: auto !important;
}

.rk-bd-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 16px !important;
    font-size: 12px !important;
    color: var(--rk-cart-mid) !important;
    line-height: 1.4 !important;
}

.rk-bd-line span:first-child {
    text-align: left !important;
    font-size: 11px !important;
    color: var(--rk-cart-muted) !important;
    letter-spacing: 0.3px !important;
}

.rk-bd-line .woocommerce-Price-amount {
    font-size: 12px !important;
    color: var(--rk-cart-mid) !important;
}

.rk-bd-total {
    border-top: 1px solid var(--rk-cart-border) !important;
    padding-top: 5px !important;
    margin-top: 3px !important;
}

.rk-bd-total span:first-child {
    color: var(--rk-cart-text) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-family: 'Blair', sans-serif !important;
}

.rk-bd-total .woocommerce-Price-amount {
    font-size: 14px !important;
    color: var(--rk-cart-text) !important;
    font-weight: 400 !important;
}

/* Quantity — styled +/- spinner */
.rk-cart-table td.product-quantity {
    text-align: center !important;
}

.rk-cart-table td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #bbb !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    height: 36px !important;
}

.rk-cart-table td.product-quantity .quantity .qty-down,
.rk-cart-table td.product-quantity .quantity .qty-up,
.rk-cart-table td.product-quantity .quantity button {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 32px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 16px !important;
    color: var(--rk-cart-mid) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.rk-cart-table td.product-quantity .quantity .qty-down:hover,
.rk-cart-table td.product-quantity .quantity .qty-up:hover,
.rk-cart-table td.product-quantity .quantity button:hover {
    color: var(--rk-cart-text) !important;
    background: rgba(0,0,0,0.04) !important;
}

.rk-cart-table .quantity input.qty {
    background: none !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 13px !important;
    text-align: center !important;
    width: 38px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--rk-cart-text) !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}

.rk-cart-table .quantity input.qty::-webkit-outer-spin-button,
.rk-cart-table .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove button */
.rk-cart-table td.product-remove {
    text-align: center !important;
    vertical-align: middle !important;
}

.rk-cart-table td.product-remove a.remove {
    font-size: 14px !important;
    color: var(--rk-cart-muted) !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s !important;
    background: none !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.rk-cart-table td.product-remove a.remove:hover {
    opacity: 1 !important;
    color: var(--rk-cart-text) !important;
    background: none !important;
}

/* ── Size + addons row ────────────────────────────────────── */
.rk-cart-details-row td {
    border: none !important;
    padding: 0 12px 18px !important;
    background: transparent !important;
}

.rk-cart-details-row {
    border-bottom: 1px solid var(--rk-cart-border) !important;
}

.rk-cart-table tr.rk-cart-details-row td.rk-cart-details-spacer {
    padding-left: 202px !important;
    padding-top: 0 !important;
    padding-right: 12px !important;
    padding-bottom: 18px !important;
}

.rk-cart-size-line {
    margin-bottom: 8px;
}

.rk-cart-size-label {
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--rk-cart-mid) !important;
    margin-right: 6px !important;
}

.rk-cart-size-value {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 11px !important;
    color: var(--rk-cart-mid) !important;
    letter-spacing: 0.5px !important;
}

/* Addons stack tighter */
.rk-cart-addons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rk-cart-addon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    cursor: pointer !important;
    user-select: none !important;
    width: fit-content !important;
}

.rk-cart-addon input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 13px !important;
    height: 13px !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    background: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 0 !important;
}

.rk-cart-addon input[type="checkbox"]:checked {
    background: var(--rk-cart-text) !important;
    border-color: var(--rk-cart-text) !important;
}

.rk-cart-addon input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 1px !important;
    left: 3px !important;
    width: 5px !important;
    height: 8px !important;
    border: 1px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) !important;
}

.rk-cart-addon span {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 12px !important;
    color: var(--rk-cart-text) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

.rk-cart-addon span em {
    font-style: normal !important;
    font-size: 11px !important;
    color: var(--rk-cart-muted) !important;
    margin-left: 6px !important;
    letter-spacing: 0 !important;
}

.rk-cart-addon input[type="checkbox"]:checked ~ span {
    color: var(--rk-cart-text) !important;
}

.rk-cart-addon input[type="checkbox"]:checked ~ span em {
    color: var(--rk-cart-mid) !important;
}

.rk-cart-addon.is-loading {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* Item subtotal in details row */
.rk-cart-details-subtotal {
    text-align: right !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 13px !important;
    color: var(--rk-cart-text) !important;
    vertical-align: bottom !important;
}

.rk-cart-details-subtotal .woocommerce-Price-amount {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 13px !important;
}

/* ── Actions row ──────────────────────────────────────────── */
.rk-cart-table td.actions {
    border: none !important;
    padding: 24px 0 !important;
    background: transparent !important;
    text-align: right !important;
}

.rk-cart-table td.actions .button,
.rk-cart-table td.actions button[name="update_cart"],
.rk-cart-table td.actions a[class*="share"],
.rk-cart-table td.actions button[class*="share"] {
    background: transparent !important;
    color: #889e8d !important;
    border: 1px solid #889e8d !important;
    border-radius: 0 !important;
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    padding: 11px 22px !important;
    margin-left: 10px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    line-height: 1 !important;
}

.rk-cart-table td.actions .button:hover,
.rk-cart-table td.actions button[name="update_cart"]:hover,
.rk-cart-table td.actions a[class*="share"]:hover,
.rk-cart-table td.actions button[class*="share"]:hover {
    background: #889e8d !important;
    color: #fff !important;
}

.rk-cart-table td.actions .button:disabled,
.rk-cart-table td.actions button[name="update_cart"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    color: #889e8d !important;
}

/* ── Collapsible Promo Code ──────────────────────────────── */
.message__container { padding-bottom:10px!important;}
.rk-promo-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--rk-cart-border);
    margin-bottom: 18px;
    padding-bottom: 4px;
}

.rk-promo-toggle {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 13px !important;
    color: var(--rk-cart-text) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-align: left !important;
}

.rk-promo-toggle:hover {
    background: transparent !important;
    color: var(--rk-cart-text) !important;
}

.rk-promo-chevron {
    color: var(--rk-cart-mid);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.rk-promo-toggle[aria-expanded="true"] .rk-promo-chevron {
    transform: rotate(180deg);
}

.rk-promo-body {
    margin-top: 10px;
}

.rk-promo-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.rk-promo-input {
    flex: 1 !important;
    background: #fff !important;
    border: 1px solid var(--rk-cart-border) !important;
    border-radius: 0 !important;
    padding: 9px 12px !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 12px !important;
    color: var(--rk-cart-text) !important;
    height: 36px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.rk-promo-input:focus {
    outline: none !important;
    border-color: #889e8d !important;
}

.rk-promo-apply {
    flex-shrink: 0 !important;
    background: var(--rk-cart-text) !important;
    color: #fff !important;
    border: 1px solid var(--rk-cart-text) !important;
    border-radius: 0 !important;
    padding: 0 18px !important;
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    height: 36px !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background 0.2s !important;
}

.rk-promo-apply:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

/* ── Right panel — "Your Selection Total" ─────────────────── */
.woocommerce .cart-collaterals {
    border: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent !important;
}

.woocommerce-cart .woocommerce-cart-form {
    margin-top: 0 !important;
}

.woocommerce .cart-collaterals .cart_totals {
    background: var(--rk-cart-panel-bg) !important;
    border: 2px solid black !important;
    border-radius: 8px !important;
    padding: 32px 30px !important;
    box-shadow: none !important;
}
.woocommerce .cart-collaterals h4 { 
    font-style: normal!important;
    border-bottom: 1px solid gray;
    margin-bottom: 18px!important;
    padding-bottom: 5px!important;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-cart .cart-collaterals .cart_totals h2,
body .woocommerce .cart-collaterals .cart_totals > h2,
body.woocommerce-cart #Content .cart-collaterals .cart_totals h2,
html body .woocommerce-cart .cart_totals h2 {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    color: var(--rk-cart-text) !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    margin-bottom: 24px !important;
    font-style: normal !important;
    padding-bottom: 22px !important;
    border-bottom: 1px solid var(--rk-cart-border) !important;
}

.cart_totals h2,
.cart_totals h2 * {
    font-style: normal !important;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Default row spacing — generous breathing room */
.woocommerce .cart-collaterals .cart_totals table.shop_table tr {
    border: none !important;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th,
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
    border: none !important;
    border-top: none !important;
    padding: 10px 0 !important;
    background: transparent !important;
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 14px !important;
    color: var(--rk-cart-text) !important;
    font-weight: 400 !important;
    vertical-align: top !important;
}

/* Labels — slightly muted but readable */
.woocommerce .cart-collaterals .cart_totals table.shop_table th {
    color: var(--rk-cart-mid) !important;
    font-size: 13px !important;
    padding-right: 16px !important;
    width: 35% !important;
    font-weight: 400 !important;
}

/* Values — full text color, right-aligned */
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
    text-align: right !important;
    color: var(--rk-cart-text) !important;
}

/* Shipping row — fix the crowded address */
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.shipping td,
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.shipping th {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.woocommerce .cart-collaterals .cart_totals .shipping-calculator-button,
.woocommerce .cart-collaterals .cart_totals tr.shipping .woocommerce-shipping-destination {
    display: block !important;
    font-size: 11px !important;
    color: var(--rk-cart-muted) !important;
    margin-top: 4px !important;
    font-style: normal !important;
    line-height: 1.5 !important;
}

/* TOTAL row — visual anchor */
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th,
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td {
    border-top: 1px solid var(--rk-cart-border) !important;
    padding-top: 16px !important;
    padding-bottom: 4px !important;
    margin-top: 8px !important;
    color: var(--rk-cart-text) !important;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th {
    font-size: 14px !important;
    color: var(--rk-cart-text) !important;
    font-weight: 500 !important;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total .woocommerce-Price-amount {
    font-family: 'Futura Light BT', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--rk-cart-text) !important;
}

.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Checkout button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Blair', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding: 16px 0 !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    margin-bottom: 8px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #000 !important;
}


/* ============================================================
   ── STACKING (≤1199px) ─────────────────────────────────────
   For everything below desktop, force the cart form and the
   totals collateral to stack vertically (totals below table).
   At ≥1200px the default WooCommerce float layout puts totals
   on the right; this block disables that.
   Applied to BOTH tablet (900-1199) and mobile (≤899).
   ============================================================ */
@media (max-width: 1199px) {
    .woocommerce-cart .woocommerce {
        display: block !important;
    }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals,
    .woocommerce .cart-collaterals,
    .woocommerce .cart-collaterals .cart_totals {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        display: block !important;
    }
}

/* ============================================================
   ── TABLET LAYOUT (900-1199px) ──────────────────────────────
   Keep the desktop table layout (columns visible, no card
   transformation) but constrain the totals panel to a
   reasonable width and right-align it below the table — this
   visually echoes the desktop sidebar position rather than
   spanning the full table width awkwardly.
   ============================================================ */
@media (min-width: 900px) and (max-width: 1199px) {
    .woocommerce .cart-collaterals .cart_totals {
        max-width: 480px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        margin-top: 32px !important;
    }
}

/* ============================================================
   ── MOBILE LAYOUT (≤899px) ──────────────────────────────────
   Each cart item collapses into a card with grid layout.
   Column headers hidden, product-subtotal column hidden,
   cells reflow vertically with custom mobile styling.
   ============================================================ */
@media (max-width: 899px) {

    /* Page-level horizontal padding (so cards aren't edge-to-edge) */
    .woocommerce-cart .section_wrapper,
    .woocommerce-cart .container,
    .woocommerce-cart #Content > .content_wrapper,
    .woocommerce-cart #Content {
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box !important;
    }

    /* Smaller page title with bottom border */
    .woocommerce-cart h1.page-title,
    #Content .entry-content .page-title h1 {
        font-size: 22px !important;
        margin-bottom: 16px !important;
        border-bottom: 1px solid #bbb !important;
        padding-bottom: 7px !important;
    }

    /* HARD KILL: column headers on mobile */
    .rk-cart-table thead,
    .rk-cart-table thead tr,
    .rk-cart-table thead th,
    table.rk-cart-table thead {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Kill data-title labels */
    .rk-cart-table tbody td::before,
    .rk-cart-table tbody th::before {
        display: none !important;
        content: none !important;
    }

    /* Make the table itself flow as blocks */
    .rk-cart-table,
    .rk-cart-table tbody,
    .rk-cart-table tr {
        display: block !important;
        width: 100% !important;
    }

    /* HARD KILL: redundant cells on mobile.
       The subtotal cell must not render at all. */
    .rk-cart-table td.product-subtotal,
    .rk-cart-table tbody td.product-subtotal,
    table.rk-cart-table td.product-subtotal {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* ─── EACH CART ITEM = COMPACT CARD ─── */
    .rk-cart-table tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 120px 1fr !important;
        column-gap: 18px !important;
        row-gap: 0 !important;
        padding: 22px 0 !important;
        border: none !important;
        align-items: stretch !important;
        position: relative !important;
    }

    .rk-cart-table tbody tr.cart_item td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
        white-space: normal !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /* THUMBNAIL — fills the full card height */
    .rk-cart-table td.product-thumbnail {
        grid-row: 1 / span 3 !important;
        grid-column: 1 !important;
        width: 120px !important;
        min-width: 120px !important;
        padding: 0 !important;
        align-self: stretch !important;
        height: 100% !important;
    }
    .rk-cart-table td.product-thumbnail a,
    .rk-cart-table td.product-thumbnail > img {
        width: 120px !important;
        height: 100% !important;
        min-height: 180px !important;
        padding: 8px !important;
    }

    /* PRODUCT NAME */
    .rk-cart-table td.product-name,
    .rk-cart-table td.product-name a,
    .woocommerce table.shop_table td.product-name,
    .woocommerce table.shop_table td.product-name a {
        grid-row: 1 !important;
        grid-column: 2 !important;
        padding-left: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    .rk-cart-product-info {
        gap: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .rk-cart-product-category {
        font-size: 18px !important;
        font-weight: 300 !important;
        margin-bottom: 6px !important;
        line-height: 1.15 !important;
        text-align: left !important;
    }
    .rk-cart-product-sku-inline {
        font-size: 12px !important;
        color: var(--rk-cart-muted) !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }
    .rk-cart-product-meta,
    .rk-cart-product-dims {
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: var(--rk-cart-mid) !important;
    }
    .rk-cart-product-dims-metric {
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: var(--rk-cart-mid) !important;
        margin-bottom: 0 !important;
    }

    /* PRICE — clear separation from meta */
    .rk-cart-table td.product-price {
        grid-row: 2 !important;
        grid-column: 2 !important;
        padding: 16px 0 0 !important;
        font-size: 16px !important;
        color: var(--rk-cart-text) !important;
        font-weight: 400 !important;
    }
    .rk-cart-table td.product-price .woocommerce-Price-amount {
        font-size: 12px !important;
        font-weight: 400 !important;
    }

    .rk-trade-price {
        align-items: start!important;
        margin-bottom: 10px;
    }

    /* QUANTITY */
    .rk-cart-table td.product-quantity {
        grid-row: 3 !important;
        grid-column: 2 !important;
        padding: 14px 0 0 !important;
        text-align: left !important;
    }
    .rk-cart-table td.product-quantity .quantity {
        height: 28px !important;
    }
    .rk-cart-table td.product-quantity .quantity .qty-down,
    .rk-cart-table td.product-quantity .quantity .qty-up,
    .rk-cart-table td.product-quantity .quantity button {
        width: 24px !important;
        height: 28px !important;
        font-size: 13px !important;
    }
    .rk-cart-table .quantity input.qty {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    /* REMOVE — × icon, absolutely positioned in top-right of card */
    .rk-cart-table td.product-remove {
        position: absolute !important;
        top: 18px !important;
        right: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: right !important;
    }
    .rk-cart-table td.product-remove a.remove {
        font-size: 16px !important;
        font-family: inherit !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        color: var(--rk-cart-muted) !important;
        opacity: 0.5 !important;
        text-decoration: none !important;
        line-height: 1 !important;
        display: inline-block !important;
        padding: 4px 6px !important;
    }
    .rk-cart-table td.product-remove a.remove::after {
        content: '' !important;
    }
    .rk-cart-table td.product-remove a.remove:hover {
        opacity: 1 !important;
        color: var(--rk-cart-text) !important;
    }

    /* ─── ADDONS ROW ─── */
    .rk-cart-details-row {
        display: block !important;
        padding: 0 0 24px !important;
        margin: 0 !important;
        border-bottom: 1px solid #d8d2c4 !important;
    }
    .rk-cart-details-row td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
    }
    .rk-cart-table tr.rk-cart-details-row td.rk-cart-details-spacer {
        padding: 0 !important;
    }

    .rk-cart-addons {
        gap: 8px !important;
        padding: 0 !important;
    }
    .rk-cart-addon {
        gap: 10px !important;
    }
    .rk-cart-addon input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
    }
    .rk-cart-addon span {
        font-size: 12px !important;
    }
    .rk-cart-addon span em {
        font-size: 11px !important;
    }

    /* Item subtotal/breakdown */
    .rk-cart-details-subtotal {
        text-align: right !important;
        padding-top: 14px !important;
        font-size: 13px !important;
    }
    .rk-cart-details-subtotal .woocommerce-Price-amount {
        font-size: 13px !important;
    }

    .rk-bd {
        min-width: 100% !important;
        margin-top: 14px !important;
        gap: 6px !important;
    }
    .rk-bd-line {
        font-size: 12px !important;
        color: var(--rk-cart-mid) !important;
    }
    .rk-bd-line span:first-child {
        font-size: 12px !important;
        color: var(--rk-cart-mid) !important;
        letter-spacing: 0 !important;
    }
    .rk-bd-line .woocommerce-Price-amount {
        font-size: 12px !important;
        color: var(--rk-cart-mid) !important;
    }
    .rk-bd-total {
        border-top: none !important;
        padding-top: 10px !important;
        margin-top: 6px !important;
    }
    .rk-bd-total span:first-child {
        font-size: 11px !important;
        letter-spacing: 1.5px !important;
        color: var(--rk-cart-text) !important;
    }
    .rk-bd-total .woocommerce-Price-amount {
        font-size: 14px !important;
        color: var(--rk-cart-text) !important;
        font-weight: 500 !important;
    }

    /* ─── ACTIONS ROW ─── */
    .rk-cart-table td.actions {
        display: block !important;
        padding: 20px 0 !important;
        text-align: center !important;
    }
    .rk-cart-table td.actions .button,
    .rk-cart-table td.actions button[name="update_cart"],
    .rk-cart-table td.actions a[class*="share"],
    .rk-cart-table td.actions button[class*="share"] {
        display: block !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        padding: 12px 0 !important;
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }

    /* ─── TOTALS PANEL — mobile-specific padding ─── */
    .woocommerce .cart-collaterals .cart_totals {
        padding: 20px 16px !important;
        margin-top: 24px !important;
    }
    .woocommerce .cart-collaterals .cart_totals h2,
    .woocommerce-cart .cart-collaterals .cart_totals h2 {
        font-size: 16px !important;
        margin-bottom: 14px !important;
        padding-bottom: 14px !important;
    }
}

.rk-trade-price {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	line-height: 1.3;
}

.rk-trade-price .rk-trade-original {
	color: #c8c2b5;
	font-size: 13px;
	font-weight: 300;
}

.rk-trade-price .rk-trade-discounted {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.rk-trade-price .rk-trade-label {
    font-family: 'Futura Light BT', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #889e8d;
    margin-top: 3px;
}

.rk-cart-product-fiber {
    font-family: 'Futura Light BT', sans-serif;
    font-size: 13px;
    color: #555;
    margin-top: 4px;
    /* font-style: italic; */
}

/* Mobile — keep stacked but reduce gap so it doesn't dominate the row */
@media (max-width: 768px) {
	.rk-trade-price .rk-trade-original { font-size: 12px; }
	.rk-trade-price .rk-trade-label { font-size: 13px; }
    .content_wrapper .section_wrapper { padding: 0!important; }
    .cart-collaterals { padding: 0!important; }
}

.woocommerce-cart #fkcart-floating-toggler { display: none!important }