/* ── CART PAGE WRAPPER ── */

/* White background only for the empty-cart state — a populated cart keeps
 * the site's normal page background. !important needed: design-tokens.css
 * sets `body { background: var(--paper) !important; }` sitewide (its own
 * defensive override against Blocksy's inline body background), so beating
 * it for this one scoped case requires matching that specificity. */
body.woocommerce-cart:has(.log-cart-empty) {
    background: var(--white, #fff) !important;
}

body.woocommerce-cart .is-layout-constrained,
body.woocommerce-cart .entry-content,
body.woocommerce-cart [class*="ct-container"],
body.woocommerce-cart [class*="content-container"] {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-cart .entry-content {
    padding-top: 0 !important;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── NOTICES (e.g. "item removed" after removing from cart) ──
   WC/Blocksy's defaults use a harsh default focus outline + plain-blue
   action link; restyle to match the site's card + accent-border language. */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
    background: var(--paper);
    border: none;
    border-left: 4px solid var(--sage-500);
    border-radius: var(--r-md, 10px);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--ink-700);
    box-shadow: none;
    outline: none;
}

body.woocommerce-cart .woocommerce-info {
    border-left-color: var(--plum-700);
}

body.woocommerce-cart .woocommerce-error {
    border-left-color: #d64545;
}

body.woocommerce-cart .woocommerce-message a,
body.woocommerce-cart .woocommerce-info a,
body.woocommerce-cart .woocommerce-error a {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    background: var(--sage-500);
    color: var(--plum-950);
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none;
    transition: background .2s var(--ease);
}

body.woocommerce-cart .woocommerce-message a:hover,
body.woocommerce-cart .woocommerce-info a:hover,
body.woocommerce-cart .woocommerce-error a:hover {
    background: var(--sage-400);
}

body.woocommerce-cart .woocommerce-breadcrumb {
    display: none;
}

/* ── BREADCRUMB ── */
.log-cart-breadcrumb {
    font-size: 12px;
    color: var(--gray-600);
    margin: 20px 0;
}

.log-cart-breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color .2s;
}

.log-cart-breadcrumb a:hover {
    color: var(--plum-700);
}

.log-cart-breadcrumb .current,
.log-cart-breadcrumb .breadcrumb_last {
    color: var(--plum-700);
    font-weight: 600;
}

@media (min-width: 641px) {
    .woocommerce .log-cart-page {
        padding-bottom: 64px;
    }
}

/* ── 2-COLUMN LAYOUT (is also the WC form) ──
   Reference (cart_page.html) constrains this to max-width:1160px, centered.
   The outer max-width:none above only clears Blocksy/WC's own container so
   this rule is the sole source of truth for the page's actual content width
   — without it the page stretches edge-to-edge on wide viewports. */
.log-cart-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 22px 24px 0;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

/* ── CART HEADER ── */
.log-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.log-cart-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.log-cart-title {
    font-family: var(--display);
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 0px;
}

.log-cart-title em {
    font-style: italic;
    color: var(--plum-700);
}

.log-cart-count-pill {
    background: var(--blush-100);
    border: 1px solid rgba(122, 31, 110, .15);
    color: var(--plum-700);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 13px;
    border-radius: var(--r-pill);
}

.log-cart-clear-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    border: 1.5px solid var(--line);
    padding: 7px 15px;
    border-radius: var(--r-pill);
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s;
}

.log-cart-clear-btn:hover {
    border-color: #e55;
    color: #e55;
}

/* ── CART ITEMS ── */
.log-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.log-cart-item {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow .28s, transform .28s;
}

.log-cart-item:hover {
    box-shadow: var(--shadow-md);
}

.log-cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--line);
    border-radius: 2px 0 0 2px;
    transition: background .28s;
}

.log-cart-item:hover::before {
    background: var(--plum-700);
}

.log-ci-img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.log-ci-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.log-ci-img a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.log-ci-info {
    flex: 1;
    min-width: 0;
}

/* Groups qty controls + price/remove so they can wrap onto one shared
   full-width row on mobile (see ≤640px), instead of squeezing the name. */
.log-ci-bottom-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.log-ci-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.log-ci-name a {
    color: inherit;
    text-decoration: none;
}

.log-ci-name a:hover {
    color: var(--plum-700);
}

.log-ci-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.log-ci-badge-fda {
    font-size: 10px;
    font-weight: 800;
    background: rgba(29, 219, 149, .1);
    color: var(--sage-700);
    border-radius: var(--r-pill);
    padding: 2px 8px;
}

.log-ci-sku {
    font-size: 11px;
    color: var(--gray-400);
}

.log-ci-variation {
    font-size: 12px;
    color: var(--gray-600);
}

.log-ci-unit-price {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 3px;
    font-weight: 600;
}

.log-ci-qty-wrap {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.log-ci-qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-700);
    background: none;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
    font-family: inherit;
}

.log-ci-qty-btn:hover {
    background: var(--blush-100);
    color: var(--plum-700);
}

.log-ci-qty-num {
    /* Blocksy forces input[type=number]{width:var(--has-width,100%)} at higher
       selector specificity (input:is([type=number])) than a single class —
       must win with !important + fixed flex-basis, not just a plain width. */
    width: 40px !important;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-900);
    border: none;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0 !important;
    height: 34px;
    outline: none;
}

.log-ci-qty-num::-webkit-inner-spin-button,
.log-ci-qty-num::-webkit-outer-spin-button {
    display: none;
}

.log-ci-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.log-ci-price {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    color: var(--plum-700);
}

.log-ci-remove,
a.log-ci-remove {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: all .22s;
    text-decoration: none;
    font-size: 12px;
}

.log-ci-remove:hover,
a.log-ci-remove:hover {
    background: #fff0f0;
    border-color: #e55;
    color: #e55;
}

/* ── CART FOOTER ── */
.log-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1.5px solid var(--line);
    flex-wrap: wrap;
    gap: 10px;
}

.log-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-700);
    border: 1.5px solid var(--line);
    padding: 10px 18px;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: all .25s;
}

.log-continue-btn:hover {
    border-color: var(--plum-700);
    color: var(--plum-700);
}

.log-cart-update-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    background: none;
    border: 1.5px solid var(--line);
    padding: 10px 16px;
    border-radius: var(--r-pill);
    cursor: pointer;
    font-family: inherit;
    transition: all .22s;
}

.log-cart-update-btn:hover {
    border-color: var(--plum-700);
    color: var(--plum-700);
}

/* Reference has no visible "Update Cart" control — quantity edits auto-submit
   via JS (see log-cart.js). Kept in the DOM as the auto-submit target and a
   fallback; hidden fully (not sr-only) so it isn't a dead, invisible tab-stop. */
.log-visually-hidden {
    display: none;
}

/* ── EMPTY STATE ── */
.log-cart-empty {
    background: transparent;
    padding: 72px 40px;
    text-align: center;
}

.log-cart-empty-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.log-cart-empty h3 {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 8px;
}

.log-cart-empty p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    max-width: 360px;
    margin: 0 auto 28px;
}

.log-cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--plum-700), var(--plum-800));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: all .25s;
}

.log-cart-empty-btn:hover {
    background: linear-gradient(135deg, var(--plum-600), var(--plum-700));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(122, 31, 110, .3);
}

/* Empty sidebar */
.log-cart-empty-sidebar {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 24px;
    text-align: center;
}

.log-ces-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.log-ces-text {
    font-size: 13px;
    color: var(--gray-600);
}

/* ── RIGHT SIDEBAR: ORDER SUMMARY ── */
.log-cart-summary {
    position: sticky;
    top: 120px;
}

.admin-bar .log-cart-summary {
    top: 152px;
}

.log-cart-summary-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.log-cart-summary-header {
    background: linear-gradient(135deg, var(--plum-800), var(--plum-950));
    padding: 20px 22px 18px;
    position: relative;
    overflow: hidden;
}

.log-cart-summary-header::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(94, 238, 192, .07);
    border-radius: 50%;
    top: -70px;
    right: -50px;
}

.log-cart-summary-header h3 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    margin: 0 0 3px;
}

.log-cart-summary-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    position: relative;
    z-index: 1;
    margin: 0;
}

.log-cart-summary-body {
    background: var(--white);
}

.log-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 16px 18px;
    background: linear-gradient(135deg, var(--plum-700), var(--plum-800));
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 6px 20px rgba(122, 31, 110, .28);
}

.log-cart-checkout-btn:hover {
    background: linear-gradient(135deg, var(--plum-600), var(--plum-700));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(122, 31, 110, .38);
}

/* Coupon */
.log-cart-coupon {
    margin: 4px 18px 14px;
}

.log-cart-coupon-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, var(--plum-950), var(--plum-800));
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.log-cart-coupon-top::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(94, 238, 192, .07);
    border-radius: 50%;
    top: -50px;
    right: -30px;
}

.log-cart-coupon-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--sage-400);
    letter-spacing: .08em;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.log-cart-coupon-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
}

.log-cart-coupon-title span {
    color: var(--sage-400);
}

.log-cart-coupon-min {
    font-size: 11px;
    color: #fff;
    margin-top: 2px;
    display: block;
}

.log-cart-coupon-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.log-cart-coupon-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
    margin-bottom: 8px;
}

.log-cart-coupon-code::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--plum-700);
    flex-shrink: 0;
}

.log-cart-coupon-code-text {
    flex: 1;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: .05em;
}

.log-cart-copy-btn {
    background: linear-gradient(135deg, var(--plum-700), var(--plum-800));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .22s;
}

.log-cart-copy-btn:hover {
    background: var(--plum-600);
}

.log-cart-coupon-input-row {
    display: flex;
    gap: 8px;
}

.log-cart-coupon-input {
    flex: 1;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 13px;
    color: var(--ink-900);
    font-family: inherit;
    transition: border-color .22s;
}

.log-cart-coupon-input:focus {
    outline: none;
    border-color: var(--plum-700);
}

.log-cart-coupon-input::placeholder {
    color: var(--gray-400);
}

.log-cart-coupon-apply {
    background: linear-gradient(135deg, var(--mr-gold), var(--mr-gold-light));
    color: var(--plum-950);
    font-weight: 800;
    font-size: 12.5px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity .22s;
}

.log-cart-coupon-apply:hover {
    opacity: .88;
}

/* Totals */
.log-cart-divider {
    height: 1px;
    background: var(--line);
    margin: 14px 18px;
}

/* Section label — "Order Details" / "Shipping" (matches reference .st-label) */
.log-cart-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-600);
    padding: 0 18px;
    margin-bottom: 12px;
}

.log-cart-details-label {
    padding-top: 16px;
}

.log-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 18px;
    font-size: 13.5px;
}

.log-cart-line span {
    color: var(--ink-700);
    font-weight: 500;
}

.log-cart-line strong {
    color: var(--ink-900);
    font-weight: 700;
}

.log-cart-discount-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 18px;
    font-size: 13.5px;
    color: var(--sage-600);
    font-weight: 700;
}

.log-cart-remove-coupon {
    margin-left: 6px;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 12px;
}

.log-cart-remove-coupon:hover {
    color: #e55;
}

.log-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--paper);
    border-top: 1.5px solid var(--line);
}

.log-cart-total-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-900);
}

.log-cart-total-amount {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    color: var(--plum-700);
}

/* Trust */
.log-cart-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--line);
}

.log-cart-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-700);
}

/* Shipping block wrapper (holds section label + table below Subtotal) */
.log-cart-shipping-block {
    margin: 10px 0 4px;
}

/* wc_cart_totals_shipping_html() prints <tr><th>/<td> fragments meant for a
   shop_table wrapper. We give it a real (but visually reset) <table> so the
   browser doesn't invent an anonymous table and mis-lay the columns out —
   then collapse it back to block so it matches the reference's div layout.
   The package-name <th> ("Shipment") is hidden: our own section label above
   already says "Shipping", so it would be a redundant duplicate heading. */
.log-cart-shipping-table,
.log-cart-shipping-table tbody,
.log-cart-shipping-table tr {
    display: block;
    width: 100%;
}

.log-cart-shipping-table th {
    display: none;
}

.log-cart-shipping-table td {
    display: block;
    padding: 0 18px;
}

/* Blocksy hooks woocommerce_locate_template and serves its OWN cart-shipping
   markup (.ct-shipping-heading "Shipment" div) instead of our theme's
   woocommerce/cart/cart-shipping.php override — hide its duplicate label
   the same way, without touching parent-theme files. */
.log-cart-shipping-table .ct-shipping-heading {
    display: none;
}

/* Shipping WC methods */
.log-cart-page .woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-cart-page .woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 11px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    transition: all .22s;
}

.log-cart-page .woocommerce-shipping-methods li:has(input:checked) {
    border-color: var(--plum-700);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(122, 31, 110, .08);
}

/* Custom radio dot (native control hidden — reference uses a plain
   bordered circle with a solid inner dot when checked, not the browser's
   default OS radio widget). */
.log-cart-page .woocommerce-shipping-methods input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--gray-400);
    background: transparent;
    cursor: pointer;
    transition: all .22s;
    order: -1;
}

.log-cart-page .woocommerce-shipping-methods li:has(input:checked) input[type="radio"] {
    border-color: var(--plum-700);
    background: var(--plum-700);
    position: relative;
}

.log-cart-page .woocommerce-shipping-methods li:has(input:checked) input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.log-cart-page .woocommerce-shipping-methods label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-900);
    cursor: pointer;
}

.log-cart-page .woocommerce-shipping-destination {
    font-size: 11px;
    color: var(--gray-600);
    padding: 0 18px;
    margin-top: 8px;
}

/* Native WC shipping list — replaced by the visual cards below, kept in
   the DOM (hidden) so its radio inputs still drive cart totals/AJAX. */
.log-cart-shipping-hidden {
    display: none !important;
}

/* ── Shipping visual cards (name/tag/eta) ──
 * Built client-side by log-cart.js into #log-cart-shipping-visual, using
 * the "log-cart-ship-*" classes below (matches reference .sh-opt). Icon/
 * tag/eta are optional, admin-configurable via the same log_ship_1_*/
* log_ship_2_* settings used on checkout — omitted when blank. */ #log-cart-shipping-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

#log-cart-shipping-visual {
    padding: 5px 15px;
}

.log-cart-ship-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    transition: all .22s var(--ease);
    background: var(--paper);
    margin-bottom: 10px;
}

.log-cart-ship-opt:hover {
    border-color: var(--plum-700);
}

.log-cart-ship-opt.selected {
    border-color: var(--plum-700);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(122, 31, 110, .08);
}

.log-cart-ship-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--gray-400);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .22s var(--ease);
}

.log-cart-ship-opt.selected .log-cart-ship-radio {
    border-color: var(--plum-700);
    background: var(--plum-700);
}

.log-cart-ship-radio-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0;
    transition: opacity .2s;
}

.log-cart-ship-opt.selected .log-cart-ship-radio-dot {
    opacity: 1;
}

.log-cart-ship-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 15px;
}

.log-cart-ship-info {
    flex: 1;
    min-width: 0;
}

.log-cart-ship-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-900);
}

.log-cart-ship-tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    margin-left: 6px;
    vertical-align: middle;
    background: rgba(122, 31, 110, .1);
    color: var(--plum-700);
}

.log-cart-ship-opt:first-child .log-cart-ship-tag {
    background: rgba(201, 147, 26, .15);
    color: var(--mr-gold, #c9931a);
}

.log-cart-ship-eta {
    font-size: 11px;
    color: var(--gray-600);
}

.log-cart-ship-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--plum-700);
    white-space: nowrap;
}

.log-cart-ship-price.free {
    color: var(--sage-600);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .log-cart-layout {
        grid-template-columns: 1fr;
    }

    /* Reference reorders the sidebar above the cart items on mobile
       (.cart-sidebar{order:-1}) — .log-cart-right is the actual grid item. */
    .log-cart-right {
        order: -1;
    }

    .log-cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {

    .log-cart-item {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    .log-ci-info {
        flex-basis: calc(100% - 96px);
    }

    .log-ci-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .log-ci-bottom-row {
        flex-basis: 100%;
        justify-content: space-between;
    }

    .log-ci-right {
        flex-direction: row;
        align-items: center;
    }

    .log-cart-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .log-cart-trust {
        grid-template-columns: 1fr;
    }

    .log-cart-empty {
        padding: 48px 24px;
    }
}