/* ═══════════════════════════════════════════════════════════════
   SupplySolution — Cart Page
   Clean, professional B2B cart
   ═══════════════════════════════════════════════════════════════ */

/* ── Redesign slice 1: 60/40 split (grid replaces floats).
       Prior: form-cart float:left ~66% / cart-summary float:right ~25%.
       New:   grid-template-columns 1.6fr 1fr with 32px gap.

       Magento's cart-container DOM order is: form_before → cart-summary → form-cart.
       Without explicit grid placement, summary lands in column 1 (left) and
       form-cart in column 2 (right). We use grid-column to force form-cart
       into column 1 (left) and cart-summary into column 2 (right). ── */
.checkout-cart-index .cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.checkout-cart-index .cart-container .form-cart {
    grid-column: 1;
    grid-row: 1;
    float: none;
    width: auto;
    margin: 0;
}
.checkout-cart-index .cart-container .cart-summary {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    margin: 0;
}
/* Hide the empty "rewards" container so it doesn't consume a grid cell */
.checkout-cart-index .cart-container > .rewards:empty {
    display: none;
}
@media (max-width: 960px) {
    .checkout-cart-index .cart-container {
        grid-template-columns: 1fr;
    }
    .checkout-cart-index .cart-container .form-cart,
    .checkout-cart-index .cart-container .cart-summary {
        grid-column: 1;
    }
    .checkout-cart-index .cart-container .cart-summary { grid-row: 2; }
}

/* ── Page title ───────────────────────────────────────────────── */
.checkout-cart-index .page-title-wrapper { display: none; }

/* (Slice 2a moved to bottom of file so it cascade-wins over the earlier
    .ss-cart-cols-label + .ss-cart-item rules. See end of file.) */

/* ── Cart form wrapper ────────────────────────────────────────── */
.ss-cart-form { max-width: 100%; }

/* ── Header ───────────────────────────────────────────────────── */
.ss-cart-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0 16px;
    border-bottom: 2px solid var(--border-divider);
    margin-bottom: 0;
}
.ss-cart-title {
    font-family: var(--ss-font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ss-cart-title svg { color: var(--ss-blue); }
.ss-cart-count {
    font-family: var(--ss-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-faint);
    background: var(--border-divider);
    padding: 3px 10px;
    border-radius: 999px;
}

/* ── Column labels ────────────────────────────────────────────── */
.ss-cart-cols-label {
    display: grid;
    grid-template-columns: 1fr 140px 110px 140px 48px;
    gap: 16px;
    padding: 10px 20px;
    background: var(--bg-card-dim);
    border-bottom: 1px solid var(--ss-border);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ss-ink-3);
}
.ss-cart-col-label--price,
.ss-cart-col-label--qty,
.ss-cart-col-label--subtotal { text-align: center; }
@media (max-width: 768px) { .ss-cart-cols-label { display: none; } }

/* ── Items container ──────────────────────────────────────────── */
.ss-cart-items {
    border: 1px solid var(--ss-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: var(--ss-white);
}

/* ── Single item row ──────────────────────────────────────────── */
.ss-cart-item {
    display: grid;
    grid-template-columns: 88px 1fr 140px 110px 140px 48px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-divider);
    transition: background .15s;
}
.ss-cart-item:last-child { border-bottom: none; }
.ss-cart-item:hover { background: var(--bg-row-hover); }
@media (max-width: 900px) {
    .ss-cart-item {
        grid-template-columns: 72px 1fr 80px;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }
    .ss-cart-item__price,
    .ss-cart-item__qty,
    .ss-cart-item__subtotal { grid-column: 2; }
    .ss-cart-item__remove-wrap { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* ── Product image ────────────────────────────────────────────── */
.ss-cart-item__img-wrap {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    border: 1px solid var(--ss-border);
    overflow: hidden;
    background: var(--bg-card-dim);
    flex-shrink: 0;
}
.ss-cart-item__img-link { display: block; width: 100%; height: 100%; }
.ss-cart-item__img-wrap img,
.ss-cart-item__img-wrap .product-image-container,
.ss-cart-item__img-wrap .product-image-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
}
.ss-cart-item__img-wrap img { padding: 8px; }
@media (max-width: 900px) {
    .ss-cart-item__img-wrap { width: 72px; height: 72px; grid-row: 1 / span 2; }
}

/* ── Item info ────────────────────────────────────────────────── */
.ss-cart-item__sku {
    font-family: var(--ss-mono);
    font-size: 1rem;
    color: var(--ss-ink-3);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ss-cart-item__name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ss-cart-item__name-link,
.ss-cart-item__name-link:visited { color: var(--text-primary); text-decoration: none; }
.ss-cart-item__name-link:hover { color: var(--ss-blue); }

.ss-cart-item__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    margin: 6px 0 0;
    font-size: 1.1rem;
    color: var(--text-faint);
}
.ss-cart-item__options dt { font-weight: 600; }
.ss-cart-item__options dt::after { content: ':'; margin-right: 3px; }

.ss-cart-item__msg {
    font-size: 1.1rem;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 6px;
}
.ss-cart-item__msg--error   { background: var(--danger-soft); color: var(--danger); }
.ss-cart-item__msg--notice  { background: var(--warning-soft); color: var(--warning); }
.ss-cart-item__msg--success { background: var(--success-soft); color: var(--success); }

/* ── Prices ───────────────────────────────────────────────────── */
.ss-cart-item__price,
.ss-cart-item__subtotal {
    text-align: center;
}
.ss-cart-item__price .price,
.ss-cart-item__subtotal .price {
    font-family: var(--ss-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}
.ss-cart-item__subtotal .price { color: var(--ss-blue); }
.ss-cart-item__price .price-label,
.ss-cart-item__subtotal .price-label { display: none; }

/* ── Qty input ────────────────────────────────────────────────── */
.ss-cart-item__qty { display: flex; justify-content: center; }
.ss-cart-item__qty-input {
    width: 68px;
    padding: 7px 8px;
    text-align: center;
    border: 1.5px solid var(--ss-border);
    border-radius: 8px;
    font-family: var(--ss-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.ss-cart-item__qty-input:focus { border-color: var(--ss-blue); box-shadow: 0 0 0 3px var(--accent-soft); }
.ss-cart-item__qty-input::-webkit-inner-spin-button,
.ss-cart-item__qty-input::-webkit-outer-spin-button { opacity: 1; }

/* ── Icon buttons (remove / edit) ────────────────────────────── */
.ss-cart-item__remove-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Suppress any remaining raw action links (wishlist, etc.) */
.ss-cart-item__remove-wrap .action.towishlist,
.ss-cart-item__remove-wrap .action-towishlist,
.ss-cart-item__remove-wrap span:not([class]),
.ss-cart-item__remove-wrap .actions-toolbar { display: none !important; }
/* Remove — trash icon (extends shared base) */
.ss-cart-item__remove,
a.ss-cart-item__remove {
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
}
.ss-cart-item__remove::before,
a.ss-cart-item__remove::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 15px;
    height: 15px;
    background: var(--ss-ink-3);
    transition: background .15s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Remove needs the base box styles since it doesn't extend .ss-cart-item__icon-btn */
.ss-cart-item__remove,
a.ss-cart-item__remove {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--ss-border);
    background: var(--ss-white);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
.ss-cart-item__remove:hover::before,
a.ss-cart-item__remove:hover::before { background: var(--ss-red); }
.ss-cart-item__remove:hover,
a.ss-cart-item__remove:hover { background: var(--danger-soft); border-color: var(--danger-soft); }

/* ── Icon buttons shared base ─────────────────────────────────── */
.ss-cart-item__icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--ss-border);
    background: var(--ss-white);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    overflow: hidden;
    flex-shrink: 0;
    /* Push any text content off-screen */
    text-indent: -9999px;
    white-space: nowrap;
}
/* Pseudo-element carries the SVG icon */
.ss-cart-item__icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 15px;
    height: 15px;
    background: var(--ss-ink-3);
    transition: background .15s;
    flex-shrink: 0;
}

/* Edit — pencil icon */
.ss-cart-item__icon-btn--edit::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ss-cart-item__icon-btn--edit:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.ss-cart-item__icon-btn--edit:hover::before { background: var(--ss-blue); }

/* ── Cart footer actions ──────────────────────────────────────── */
.ss-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}
.ss-cart-actions__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.ss-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--ss-font);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.ss-cart-btn--ghost {
    background: var(--bg-card-dim);
    color: var(--text-muted);
    border: 1.5px solid var(--ss-border);
}
.ss-cart-btn--ghost:hover { background: var(--border-divider); border-color: var(--border-input); color: var(--text-primary); }

.ss-cart-btn--update {
    background: var(--success-soft);
    color: var(--success);
    border: 1.5px solid var(--success);
}
.ss-cart-btn--update:hover { background: var(--success-soft); border-color: var(--success); }

.ss-cart-btn--danger {
    background: var(--ss-white);
    color: var(--ss-ink-3);
    border: 1.5px solid var(--ss-border);
    font-size: 1.2rem;
}
.ss-cart-btn--danger:hover { background: var(--danger-soft); color: var(--ss-red); border-color: var(--danger-soft); }

/* ── Totals sidebar — matches PDP buy pane surface (#f5f5f4 warm grey)
       for design-system consistency across PDP → cart → checkout. ── */
.cart-summary {
    background: #f5f5f4;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
}
.cart-summary > .title {
    font-family: var(--ss-font);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    border-bottom: 2px solid var(--border-divider);
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: block;
}

/* Totals rows (KO rendered) */
.cart-totals .table-caption { display: none; }
.cart-totals .totals th,
.cart-totals .totals td {
    font-size: 1.3rem;
    padding: 6px 0;
    color: var(--text-muted);
    border: none;
    background: transparent;
}
.cart-totals .totals th { font-weight: 600; color: var(--text-faint); }
.cart-totals .totals td { text-align: right; }
.cart-totals .totals td .price {
    font-family: var(--ss-mono);
    font-weight: 700;
    color: var(--text-primary);
}
.cart-totals .grand .mark,
.cart-totals .grand .amount {
    border-top: 2px solid var(--text-primary);
    padding-top: 12px;
    margin-top: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}
.cart-totals .grand .amount .price {
    font-size: 1.8rem;
    color: var(--ss-blue);
}

/* Checkout button */
.checkout-methods-items { padding: 0; margin: 16px 0 0; list-style: none; }
.checkout-methods-items .action.primary.checkout,
.checkout-methods-items .action.checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--ss-blue);
    color: var(--ss-white);
    border: none;
    border-radius: 8px;
    font-family: var(--ss-font);
    font-size: 16px;
    font-weight: 800;
    line-height: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    letter-spacing: -.2px;
}
.checkout-methods-items .action.primary.checkout:hover,
.checkout-methods-items .action.checkout:hover { background: var(--ss-blue-dk); }
.checkout-methods-items .action.primary.checkout::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

/* Coupon block */
.block.discount { margin-top: 20px; }
.block.discount .title {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
    border-top: 1px solid var(--border-divider);
}
.block.discount .title strong {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.block.discount .content { padding-top: 12px; }
.block.discount input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--ss-border);
    border-radius: 8px;
    font-size: 1.3rem;
    outline: none;
    font-family: var(--ss-font);
    transition: border-color .15s;
    box-sizing: border-box;
}
.block.discount input[type="text"]:focus { border-color: var(--ss-blue); }
.block.discount .action.apply,
.block.discount .action.cancel {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    margin-top: 8px;
    background: var(--border-divider);
    color: var(--text-muted);
    border: 1.5px solid var(--border-card);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--ss-font);
    cursor: pointer;
    justify-content: center;
    transition: background .15s;
}
.block.discount .action.apply:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.block.discount .action.cancel:hover { background: var(--danger-soft); border-color: var(--danger-soft); color: var(--ss-red); }

/* ── Empty cart ───────────────────────────────────────────────── */
.cart-empty {
    text-align: center;
    padding: 80px 24px;
}
.cart-empty p {
    font-size: 1.5rem;
    color: var(--text-faint);
}
.cart-empty .action.continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ss-blue);
    color: var(--ss-white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    margin-top: 16px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ss-cart-title  { font-size: 1.8rem; }
    .ss-cart-actions { flex-direction: column; align-items: stretch; }
    .ss-cart-actions__right { flex-direction: column; }
    .ss-cart-btn { justify-content: center; }
    .cart-summary {
        position: static;
        top: auto;
        margin-top: 24px;
    }
}

/* ── Overrides ────────────────────────────────────────────────── */
.column.main .cart-summary .block > .title strong { font-size: 1.6rem; }

/* ═════════════════════════════════════════════════════════════════
   Slice 2a — hide column-header strip + each item = its own card.
   Placed at END OF FILE so it cascade-wins over the .ss-cart-cols-label
   { display: grid } and .ss-cart-item { border/grid } rules defined
   earlier in this same file.
   ═════════════════════════════════════════════════════════════════ */
.checkout-cart-index .ss-cart-cols-label {
    display: none;
}
.checkout-cart-index .ss-cart-items {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checkout-cart-index .ss-cart-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow .15s ease, border-color .15s ease;
}
.checkout-cart-index .ss-cart-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.05);
}
/* Override earlier ".ss-cart-item:last-child { border-bottom: none }"
   and ".ss-cart-item + .ss-cart-item { border-top }" from single-container
   design — each item now standalone. */
.checkout-cart-index .ss-cart-item + .ss-cart-item {
    border-top: 1px solid #e5e7eb;
}

/* Slice 2b + 2e + 2f: image 140px on left, info top-right, bottom action
   row has qty (left), price-stack (unit small over subtotal big), remove.
   Layout is 4 columns × 2 rows:
     Row 1: [image (spans both)] [info spanning cols 2-4]
     Row 2: [image continues   ] [qty] [price-stack] [remove]  */
.checkout-cart-index .ss-cart-item {
    grid-template-columns: 140px minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
}
.checkout-cart-index .ss-cart-item__img-wrap {
    width: 140px;
    height: 140px;
    grid-column: 1;
    grid-row: 1 / span 2;
}
.checkout-cart-index .ss-cart-item__info {
    grid-column: 2 / -1;
    grid-row: 1;
    /* Hairline divider under the info block — separates name/options
       from the qty/price/action row below (mockup pattern). */
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

/* Slice 2h: "Continue Shopping" (ghost variant) restyled to match the
   real "Update Cart" button — white bg, grey border, dark ink text,
   small radius. NOT green. Matched pair at the bottom of the items col. */
.checkout-cart-index .ss-cart-btn--ghost {
    background: #ffffff !important;
    color: #1a2543 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    box-shadow: none !important;
}
.checkout-cart-index .ss-cart-btn--ghost:hover {
    background: #f9fafb !important;
    color: #1a2543 !important;
    border-color: #9ca3af !important;
}

/* Slice 4: fulfillment / vendor cards — mockup pattern applied to
   the existing .rwc-cart-* DOM from Redwoodcore_Marketplace. */

/* Section wrapper — top divider + max-width match the cart grid */
.checkout-cart-index .rwc-cart-split {
    max-width: 1280px;
    margin: 40px auto 0 !important;
    padding: 32px 0 0 !important;
    border-top: 1px solid #e5e7eb;
    font-family: inherit !important;
}
/* Header — small caps title + optional muted count */
.checkout-cart-index .rwc-cart-split-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.14em !important;
    margin: 0 0 20px !important;
}
/* Grid of vendor cards — auto-fill responsive */
.checkout-cart-index .rwc-cart-split-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px !important;
}

/* Each vendor card */
.checkout-cart-index .rwc-cart-vendor-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03) !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    overflow: visible !important;
    transition: box-shadow .15s, border-color .15s;
}
.checkout-cart-index .rwc-cart-vendor-card:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.05) !important;
}

/* Vendor header — logo + name */
.checkout-cart-index .rwc-cart-vendor-hdr {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 0 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}
.checkout-cart-index .rwc-cart-vendor-logo,
.checkout-cart-index .rwc-cart-vendor-logo-ph {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #ebe9e4 !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #6b7280 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    flex-shrink: 0;
    overflow: hidden;
}
.checkout-cart-index .rwc-cart-vendor-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a2543 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.005em;
}
.checkout-cart-index .rwc-cart-vendor-name a {
    color: #1a2543 !important;
    text-decoration: none !important;
}
.checkout-cart-index .rwc-cart-vendor-name a:hover {
    color: #0059a3 !important;
}

/* Vendor items list */
.checkout-cart-index .rwc-cart-vendor-items {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
}
.checkout-cart-index .rwc-cart-vendor-item {
    display: grid !important;
    grid-template-columns: 1fr auto auto;
    gap: 12px !important;
    align-items: baseline;
    padding: 0 !important;
    border: 0 !important;
    font-size: 12px !important;
    line-height: 1.35;
}
.checkout-cart-index .rwc-cart-item-name {
    color: #1a2543 !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.checkout-cart-index .rwc-cart-item-name a {
    color: inherit !important;
    text-decoration: none !important;
}
.checkout-cart-index .rwc-cart-item-name a:hover {
    color: #0059a3 !important;
}
.checkout-cart-index .rwc-cart-item-qty {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    font-weight: 600;
}
.checkout-cart-index .rwc-cart-item-price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 12px !important;
    color: #1a2543 !important;
    font-weight: 700;
}
/* Backorder pill */
.checkout-cart-index .rwc-cart-item-bo {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    padding: 2px 6px;
    background: rgba(217, 119, 6, 0.1) !important;
    color: #92400e !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Vendor footer — subtotal row */
.checkout-cart-index .rwc-cart-vendor-foot {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #f3f4f6 !important;
}
.checkout-cart-index .rwc-cart-vendor-subtotal-label {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
}
.checkout-cart-index .rwc-cart-vendor-subtotal-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a2543 !important;
    letter-spacing: -0.01em !important;
}

/* Footer note ("Items from different vendors ship separately") */
.checkout-cart-index .rwc-cart-split-note {
    font-size: 11px !important;
    color: #6b7280 !important;
    font-style: italic;
    margin-top: 12px !important;
    text-align: center;
}
.checkout-cart-index .ss-cart-item__qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: center;
}
.checkout-cart-index .ss-cart-item__price-stack {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.1;
}
.checkout-cart-index .ss-cart-item__price-stack .ss-cart-item__price,
.checkout-cart-index .ss-cart-item__price-stack .ss-cart-item__price .price {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-align: right;
    background: transparent;
    padding: 0;
    margin: 0;
}
.checkout-cart-index .ss-cart-item__price-stack .ss-cart-item__subtotal,
.checkout-cart-index .ss-cart-item__price-stack .ss-cart-item__subtotal .price {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a2543 !important;
    text-align: right;
    background: transparent;
    padding: 0;
    margin: 0;
    letter-spacing: -0.01em;
}
.checkout-cart-index .ss-cart-item__remove-wrap {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
    align-self: center;
}

/* Slice 2g: qty stepper — +/- buttons around the number input,
   pill-style single unit like the PDP qty stepper. */
.checkout-cart-index .ss-cart-item__qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.checkout-cart-index .ss-cart-item__qty-btn {
    width: 32px;
    height: 36px;
    background: transparent;
    border: 0;
    color: #1a2543;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    user-select: none;
    transition: background 0.12s;
}
.checkout-cart-index .ss-cart-item__qty-btn:hover {
    background: #f3f4f6;
}
.checkout-cart-index .ss-cart-item__qty-stepper .ss-cart-item__qty-input {
    width: 44px !important;
    height: 36px !important;
    border: 0 !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #1a2543;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}
.checkout-cart-index .ss-cart-item__qty-stepper .ss-cart-item__qty-input:focus {
    box-shadow: none !important;
    border-color: #e5e7eb !important;
}
.checkout-cart-index .ss-cart-item__qty-stepper .ss-cart-item__qty-input::-webkit-outer-spin-button,
.checkout-cart-index .ss-cart-item__qty-stepper .ss-cart-item__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Slice 3a: bump the Order Total value — big, monospace, navy.
   Was: 1.8rem ss-blue. Now: 28px mono navy, matching the mockup's
   "$47.00" hero moment. Label styling untouched for now (later slice). */
.checkout-cart-index .cart-totals .grand .amount .price,
.checkout-cart-index .cart-totals .grand .amount strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a2543 !important;
    letter-spacing: -0.01em;
}

/* Slice 3b: Proceed to Checkout button — navy-on-cream to match PDP
   ATC button treatment. Was: blue on white. Now: navy #1a2543 (same as
   design-system ink), white text, uppercase, wider letter-spacing,
   beefier padding to be the visual anchor of the summary. */
.checkout-cart-index .cart-summary .checkout-methods-items .action.primary.checkout,
.checkout-cart-index .cart-summary .checkout-methods-items .action.checkout {
    background: #1a2543 !important;
    color: #ffffff !important;
    padding: 16px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    box-shadow: 0 2px 8px rgba(26, 37, 67, 0.15);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.checkout-cart-index .cart-summary .checkout-methods-items .action.primary.checkout:hover,
.checkout-cart-index .cart-summary .checkout-methods-items .action.checkout:hover {
    background: #263462 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 37, 67, 0.25);
}

/* Slice 3c: section titles — "Summary", "Estimate Shipping and Tax",
   "Apply Discount Code". Small-caps + wider letter-spacing + muted
   color for consistency (matches PDP accordion header treatment). */
.checkout-cart-index .cart-summary > .title,
.checkout-cart-index .cart-summary .block > .title strong,
.checkout-cart-index .cart-summary .block > .title span {
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    line-height: 1.3 !important;
}
.checkout-cart-index .cart-summary > .title {
    /* Top-level "Summary" title spacing */
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
    display: block;
}
.checkout-cart-index .cart-summary .block > .title {
    /* Collapsible section titles — remove Magento's default heavy style */
    background: transparent !important;
    padding: 12px 0 !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: none !important;
    color: #6b7280 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
}

/* Slice 3d: breakdown lines — Subtotal, Shipping, Tax, Discount.
   `:not(.grand)` excludes the Order Total row (grand) so slice 3a's
   28px hero style still applies to it. */
.checkout-cart-index .cart-totals .totals:not(.grand) th,
.checkout-cart-index .cart-totals .totals:not(.grand) .mark {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
}
.checkout-cart-index .cart-totals .totals:not(.grand) td .price,
.checkout-cart-index .cart-totals .totals:not(.grand) .amount .price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a2543 !important;
    letter-spacing: 0 !important;
}
/* Discount line — green (savings) */
.checkout-cart-index .cart-totals .totals.discount td .price,
.checkout-cart-index .cart-totals .totals.discount .amount .price {
    color: #059669 !important;
}

/* Kill Magento's default table borders on breakdown rows (the weird
   underline that appeared under Tax). Grand row keeps its top border
   as a divider (handled below). */
.checkout-cart-index .cart-totals .totals th,
.checkout-cart-index .cart-totals .totals td {
    border: 0 !important;
    box-shadow: none !important;
}

/* Re-apply grand-total hero styling AFTER breakdown rules so it wins.
   28px navy monospace value, upgraded label + top border for hierarchy. */
.checkout-cart-index .cart-totals .grand.totals th,
.checkout-cart-index .cart-totals .grand.totals .mark {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a2543 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.checkout-cart-index .cart-totals .grand.totals td,
.checkout-cart-index .cart-totals .grand.totals .amount {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
}
.checkout-cart-index .cart-totals .grand.totals td .price,
.checkout-cart-index .cart-totals .grand.totals .amount .price,
.checkout-cart-index .cart-totals .grand.totals .amount strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a2543 !important;
    letter-spacing: -0.01em !important;
}

/* Slice 3e: reorder summary children so Discount Code sits directly
   below Estimate Shipping (matches mockup). CSS flex `order` handles
   this without touching layout XML or templates. */
.checkout-cart-index .cart-summary {
    display: flex;
    flex-direction: column;
}
.checkout-cart-index .cart-summary > .summary.title       { order: 0; }
.checkout-cart-index .cart-summary > #block-shipping,
.checkout-cart-index .cart-summary > .block.shipping      { order: 1; }
.checkout-cart-index .cart-summary > #block-discount,
.checkout-cart-index .cart-summary > .block.discount,
.checkout-cart-index .cart-summary > .cart-discount       { order: 2; }
.checkout-cart-index .cart-summary > .cart-totals         { order: 3; }
.checkout-cart-index .cart-summary > .checkout-methods-items,
.checkout-cart-index .cart-summary > ul.checkout-methods-items { order: 4; }

/* Slice 3f: aux links (Multiple Addresses + Request a Quote) — small,
   uppercase, muted, centered. Matches mockup's console__aux pattern. */
.checkout-cart-index .cart-summary .checkout-methods-items > li:not(:first-child) {
    text-align: center;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    background: none !important;
}
.checkout-cart-index .cart-summary .checkout-methods-items .action.multicheckout,
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link a,
.checkout-cart-index .cart-summary .checkout-methods-items > li:not(:first-child) a {
    display: inline-block;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 0;
    background: none !important;
    border: 0 !important;
    transition: color 0.15s;
}
.checkout-cart-index .cart-summary .checkout-methods-items .action.multicheckout:hover,
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link a:hover,
.checkout-cart-index .cart-summary .checkout-methods-items > li:not(:first-child) a:hover {
    color: #1a2543 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
/* "Request a Quote" label is bold, "(B2B)" is quieter */
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link a strong,
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link__btn strong {
    color: #1a2543;
    font-weight: 700;
}
/* Style the RFQ submit form/button to look identical to the aux anchor
   link — POST is required for CSRF-safe conversion. */
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link__form {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    text-align: center;
    background: transparent !important;
}
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link__btn {
    display: inline-block;
    background: none !important;
    border: 0 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    color: #6b7280 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: color 0.15s;
}
.checkout-cart-index .cart-summary .checkout-methods-items .ss-cart-rfq-link__btn:hover {
    color: #1a2543 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Slice 3g: 2×2 trust badges below the aux links (with HR divider on top).
   Grid uses `auto auto` columns so each column is only as wide as its
   content, and the whole grid is centered as a GROUP via justify-content.
   That way icons align vertically within each column (same left edge)
   AND the grid reads as balanced within the panel. */
.checkout-cart-index .cart-summary > .ss-cart-trust,
.checkout-cart-index .cart-summary .ss-cart-trust {
    order: 5;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 14px 32px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.checkout-cart-index .ss-cart-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}
.checkout-cart-index .ss-cart-trust__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 37, 67, 0.06);
    border-radius: 50%;
    color: #1a2543;
    flex-shrink: 0;
}
.checkout-cart-index .ss-cart-trust__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.checkout-cart-index .ss-cart-trust__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.checkout-cart-index .ss-cart-trust__label {
    font-size: 12px;
    font-weight: 700;
    color: #1a2543;
    letter-spacing: -0.005em;
}
.checkout-cart-index .ss-cart-trust__sub {
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 0.02em;
    margin-top: 1px;
}

/* Slice 3h: Estimate Shipping and Tax form — restyle fields to match
   mockup's clean compact look. Labels small caps muted, inputs/selects
   simple minimal border, Update button small navy filled. */
.checkout-cart-index .cart-summary .block.shipping .content {
    padding: 8px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.checkout-cart-index .cart-summary .block.shipping .content > p {
    font-size: 11px !important;
    color: #6b7280 !important;
    margin: 0 0 12px !important;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.checkout-cart-index .cart-summary .block.shipping .fieldset {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkout-cart-index .cart-summary .block.shipping .field {
    margin: 0 !important;
    padding: 0 !important;
}
.checkout-cart-index .cart-summary .block.shipping .field .label,
.checkout-cart-index .cart-summary .block.shipping .field > label,
.checkout-cart-index .cart-summary .block.shipping .field > .label span {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.2;
    width: auto !important;
    float: none !important;
    text-align: left !important;
}
.checkout-cart-index .cart-summary .block.shipping .control {
    width: 100% !important;
}
.checkout-cart-index .cart-summary .block.shipping input[type="text"],
.checkout-cart-index .cart-summary .block.shipping input[type="number"],
.checkout-cart-index .cart-summary .block.shipping select {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 10px !important;
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #1a2543 !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s;
}
.checkout-cart-index .cart-summary .block.shipping input:focus,
.checkout-cart-index .cart-summary .block.shipping select:focus {
    border-color: #1a2543 !important;
    box-shadow: 0 0 0 3px rgba(26, 37, 67, 0.08) !important;
}
/* Update button — small navy filled, consistent with CTA but compact */
.checkout-cart-index .cart-summary .block.shipping button,
.checkout-cart-index .cart-summary .block.shipping .actions-toolbar button,
.checkout-cart-index .cart-summary .block.shipping .actions-toolbar .action {
    display: inline-block !important;
    margin-top: 4px !important;
    padding: 8px 18px !important;
    background: #1a2543 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background 0.15s;
}
.checkout-cart-index .cart-summary .block.shipping button:hover {
    background: #263462 !important;
}
/* "Sorry, no quotes available" message — muted small */
.checkout-cart-index .cart-summary .block.shipping .message,
.checkout-cart-index .cart-summary .block.shipping [role="alert"] {
    background: transparent !important;
    border: 0 !important;
    padding: 8px 0 0 !important;
    margin: 8px 0 0 !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    line-height: 1.4;
}

/* Slice 3i: recolor the shipping-rate radio options to navy (were green)
   + strengthen the input focus border so it's clearly visible. */
.checkout-cart-index .cart-summary .block.shipping input[type="text"]:focus,
.checkout-cart-index .cart-summary .block.shipping input[type="number"]:focus,
.checkout-cart-index .cart-summary .block.shipping select:focus {
    border-color: #1a2543 !important;
    border-width: 2px !important;
    padding: 5px 9px !important;
    box-shadow: 0 0 0 3px rgba(26, 37, 67, 0.12) !important;
    outline: none !important;
}
/* Recolor the native radio buttons to navy (was green from theme accent) */
.checkout-cart-index .cart-summary .block.shipping input[type="radio"],
.checkout-cart-index .cart-summary .block.shipping input[type="checkbox"] {
    accent-color: #1a2543 !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
    cursor: pointer;
}
/* (Bordered-card wrapper around rate options reverted per Tony's ask —
    prior rate list styling preferred. Radio color still recolored above.) */

/* Slice 3j: Discount code — same clean treatment as shipping form.
   Input on top, Apply button below on the right (or inline on one row). */
.checkout-cart-index .cart-summary .block.discount .content {
    padding: 8px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.checkout-cart-index .cart-summary .block.discount .fieldset {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}
.checkout-cart-index .cart-summary .block.discount .field {
    margin: 0 !important;
    padding: 0 !important;
}
/* Hide the "Enter discount code" text label — placeholder does the job */
.checkout-cart-index .cart-summary .block.discount .field > .label,
.checkout-cart-index .cart-summary .block.discount .field > label {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.checkout-cart-index .cart-summary .block.discount .control {
    width: 100% !important;
}
.checkout-cart-index .cart-summary .block.discount input[type="text"] {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 10px !important;
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #1a2543 !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s;
}
.checkout-cart-index .cart-summary .block.discount input[type="text"]::placeholder {
    color: #9ca3af;
    font-size: 12px;
}
.checkout-cart-index .cart-summary .block.discount input[type="text"]:focus {
    border-color: #1a2543 !important;
    border-width: 2px !important;
    padding: 5px 9px !important;
    box-shadow: 0 0 0 3px rgba(26, 37, 67, 0.12) !important;
}
/* Apply Discount button — small navy filled (matches Update button) */
.checkout-cart-index .cart-summary .block.discount .actions-toolbar {
    padding: 0 !important;
    margin: 8px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}
.checkout-cart-index .cart-summary .block.discount .actions-toolbar > div,
.checkout-cart-index .cart-summary .block.discount .actions-toolbar .primary,
.checkout-cart-index .cart-summary .block.discount .actions-toolbar .secondary {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
}
.checkout-cart-index .cart-summary .block.discount .actions-toolbar button,
.checkout-cart-index .cart-summary .block.discount .actions-toolbar .action {
    display: inline-block !important;
    padding: 8px 18px !important;
    background: #1a2543 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: none !important;
}
.checkout-cart-index .cart-summary .block.discount .actions-toolbar button:hover {
    background: #263462 !important;
}
/* Cancel button (visible when a coupon is applied) — outlined muted style */
.checkout-cart-index .cart-summary .block.discount .actions-toolbar .action.cancel {
    background: transparent !important;
    color: #6b7280 !important;
    border: 1px solid #d1d5db !important;
    padding: 7px 17px !important;
}
.checkout-cart-index .cart-summary .block.discount .actions-toolbar .action.cancel:hover {
    background: #f3f4f6 !important;
    color: #1a2543 !important;
    border-color: #9ca3af !important;
}
/* Free shipping — green + bold hint like mockup's "FREE" callout */
.checkout-cart-index .cart-totals .totals.shipping td .price:only-child {
    /* placeholder in case Magento renders "FREE" text */
}

/* Slice 2c: strip the SKU pill styling — becomes a plain small
   uppercase muted meta line (mockup pattern). Vendor name gets
   added in front by a separate template edit (slice 2d). */
.checkout-cart-index .ss-cart-item__sku {
    display: block;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px !important;
    font-weight: 600;
    color: #6b7280 !important;
    text-transform: none;
    letter-spacing: 0.02em;
    border-radius: 0 !important;
    line-height: 1.3;
    width: auto;
    max-width: none;
}

/* ═══════════════════════════════════════════════════════════════
   Free Shipping progress bar (2026-07-28 redesign)
   Matches cart summary/item card language: white bg, subtle
   border, mono numbers, navy accents. Success state uses a soft
   green tint (not a full green flood). Progress bar is thin and
   flat — no gradient.
   ─────────────────────────────────────────────────────────────── */
.rwc-freeship-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    padding: 12px 16px;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rwc-freeship-banner .rwc-fs-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.35;
}
.rwc-freeship-banner .rwc-fs-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.rwc-freeship-banner .rwc-fs-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}
.rwc-freeship-banner .rwc-fs-label {
    flex: 1;
    min-width: 0;
}
.rwc-freeship-banner .rwc-fs-amt {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.rwc-freeship-banner .rwc-fs-pct {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

/* Thin flat progress bar */
.rwc-freeship-progress {
    height: 4px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}
.rwc-freeship-progress .rwc-fs-fill {
    height: 100%;
    background: #1a2543;
    border-radius: 999px;
    transition: width .4s ease;
}

/* Qualified state — soft green accent */
.rwc-freeship-banner--qualified {
    background: rgba(21, 128, 61, 0.06);
    border-color: rgba(21, 128, 61, 0.20);
}
.rwc-freeship-banner--qualified .rwc-fs-text {
    color: #15803d;
}
.rwc-freeship-banner--qualified .rwc-fs-icon {
    color: #15803d;
}
.rwc-freeship-banner--qualified .rwc-fs-label {
    font-weight: 600;
}

/* Free shipping bar — constrain width to match cart-container column 1
   (form-cart at 1.6fr in a 1.6fr:1fr grid with 32px gap). Broader
   selector so it wins regardless of exact DOM parent (content is
   invisible container, so the banner ends up wherever content lands). */
.checkout-cart-index .rwc-freeship-banner {
    max-width: calc((100% - 32px) * 1.6 / 2.6) !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .checkout-cart-index .rwc-freeship-banner {
        max-width: 100% !important;
    }
}
/* Kill any leftover % indicator (in case of DOM caching or older HTML) */
.checkout-cart-index .rwc-freeship-banner .rwc-fs-pct {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE CART (≤767px)
   Fixes:
   1. Item card was running desktop grid (140px img + 4 cols) on phones —
      caused everything to overflow / squish. Now: 72px image + tight
      action row that actually fits.
   2. Sticky checkout bar at bottom (above the site-wide bottom nav) so
      user can tap Checkout without scrolling to the summary.
   3. Hide the "Update Cart" button — the qty stepper posts on change,
      the button is redundant on mobile.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Reserve space at bottom for BOTH the site bottom nav (60px + safe-area)
       AND the sticky checkout bar (60px). Total ≈ 120px + safe-area. */
    body.checkout-cart-index {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Cart summary — kill sticky positioning on mobile (was sitting under
       the header and hiding items when scrolling). Stack it below items. */
    .checkout-cart-index .cart-summary {
        position: static !important;
        top: auto !important;
        margin-top: 16px;
    }

    /* Cart page is single-column on mobile */
    .checkout-cart-index .cart-container {
        display: block !important;
    }

    /* ── Item card: shrink image to 72px, compress the action row ── */
    .checkout-cart-index .ss-cart-item {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 10px !important;
        padding: 12px !important;
    }
    .checkout-cart-index .ss-cart-item__img-wrap {
        width: 72px !important;
        height: 72px !important;
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
    }
    .checkout-cart-index .ss-cart-item__info {
        grid-column: 2 !important;
        grid-row: 1 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .checkout-cart-index .ss-cart-item__name {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .checkout-cart-index .ss-cart-item__sku {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    /* Action row: full width under the info block. Grid = stepper | price | remove */
    .checkout-cart-index .ss-cart-item__qty,
    .checkout-cart-index .ss-cart-item__price-stack,
    .checkout-cart-index .ss-cart-item__remove-wrap {
        grid-row: 2 !important;
    }
    .checkout-cart-index .ss-cart-item__qty {
        grid-column: 2 !important;
        justify-self: start !important;
    }
    .checkout-cart-index .ss-cart-item__price-stack {
        /* Position via flex 1 on info row parent — we drop this into a
           separate row 2 that spans col 2. Use a nested grid. */
        display: none !important;
    }
    .checkout-cart-index .ss-cart-item__remove-wrap {
        grid-column: 2 !important;
        justify-self: end !important;
        margin-top: -34px !important;
    }

    /* Show price + subtotal INSIDE the info block on mobile so both
       land in row 1. Cleaner than the desktop split. */
    .checkout-cart-index .ss-cart-item__info::after {
        display: none;
    }

    /* Give the info block a mini subtotal display so user sees price on mobile.
       We'll do this via JS clone instead — see cart-mobile-sticky.js. */
    .checkout-cart-index .ss-cart-item__mobile-price {
        display: flex;
        gap: 8px;
        align-items: baseline;
        margin-top: 4px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }
    .checkout-cart-index .ss-cart-item__mobile-price .unit {
        font-size: 11px;
        color: #6b7280;
        font-weight: 500;
    }
    .checkout-cart-index .ss-cart-item__mobile-price .sub {
        font-size: 15px;
        color: #1a2543;
        font-weight: 700;
    }

    /* Kill Update Cart button on mobile — qty stepper posts on change */
    .checkout-cart-index .ss-cart-btn--update {
        display: none !important;
    }
    /* Kill Clear Cart button on mobile — rare action, saves vertical space */
    .checkout-cart-index #empty_cart_button {
        display: none !important;
    }

    /* ── Sticky checkout bar (built via JS — see cart-mobile-sticky.js) ── */
    .ss-cart-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9997;
    }
    .ss-cart-sticky-bar__total {
        display: flex;
        flex-direction: column;
        gap: 2px;
        line-height: 1;
    }
    .ss-cart-sticky-bar__total-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #6b7280;
    }
    .ss-cart-sticky-bar__total-value {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 20px;
        font-weight: 800;
        color: #1a2543;
        letter-spacing: -0.01em;
    }
    .ss-cart-sticky-bar__btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 22px;
        background: #1a2543;
        color: #ffffff;
        border: 0;
        border-radius: 6px;
        font-family: inherit;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(26, 37, 67, 0.2);
    }
    .ss-cart-sticky-bar__btn:hover,
    .ss-cart-sticky-bar__btn:focus {
        background: #0f172a;
        color: #ffffff;
    }
    .ss-cart-sticky-bar__btn svg {
        width: 16px;
        height: 16px;
    }
}
/* Desktop: never show the sticky bar (JS builds it but CSS keeps it hidden) */
@media (min-width: 768px) {
    .ss-cart-sticky-bar { display: none !important; }
}
