/**
 * Compact, responsive cart workspace.
 *
 * The live store uses WooCommerce's classic cart shortcode. Block Cart rules
 * are included as a fallback so a future editor change keeps the same scale.
 */

body.graham-cart-page {
    --graham-cart-blue: #075da8;
    --graham-cart-green: #149447;
    --graham-cart-ink: #17324a;
    --graham-cart-muted: #607487;
    --graham-cart-line: #d4e0e8;
    --graham-cart-soft: #f4f8fa;
}

body.graham-cart-page .wp-site-blocks main,
body.graham-cart-page main.wp-block-group,
body.graham-cart-page main.site-main,
body.graham-cart-page .site-main,
body.graham-cart-page .entry-content,
body.graham-cart-page .wp-block-post-content {
    box-sizing: border-box;
    margin-top: 0 !important;
}

body.graham-cart-page .wp-site-blocks main,
body.graham-cart-page main.wp-block-group,
body.graham-cart-page main.site-main,
body.graham-cart-page .site-main {
    padding-top: 24px !important;
}

body.graham-cart-page .woocommerce {
    box-sizing: border-box;
    color: var(--graham-cart-ink);
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

body.graham-cart-page .woocommerce-notices-wrapper:empty {
    display: none;
}

body.graham-cart-page .woocommerce-info,
body.graham-cart-page .woocommerce-message,
body.graham-cart-page .woocommerce-error {
    align-items: flex-start;
    background: #f3f8fc;
    border: 1px solid #7eb7df;
    border-radius: 6px;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--graham-cart-ink);
    display: flex;
    font-size: 0.9rem;
    gap: 10px;
    line-height: 1.45;
    margin: 0 0 14px !important;
    min-height: 0;
    padding: 13px 16px 13px 48px !important;
}

body.graham-cart-page .woocommerce-info::before,
body.graham-cart-page .woocommerce-message::before,
body.graham-cart-page .woocommerce-error::before {
    left: 16px;
    top: 13px;
}

body.graham-cart-page .woocommerce-cart-form {
    margin: 0;
}

body.graham-cart-page table.shop_table.cart {
    background: #fff;
    border: 1px solid var(--graham-cart-line);
    border-collapse: separate;
    border-radius: 6px;
    border-spacing: 0;
    box-shadow: 0 7px 22px rgba(23, 50, 74, 0.055);
    margin: 0 0 18px;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

body.graham-cart-page table.shop_table.cart thead {
    background: var(--graham-cart-soft);
}

body.graham-cart-page table.shop_table.cart thead th {
    border: 0;
    border-bottom: 1px solid var(--graham-cart-line);
    color: var(--graham-cart-ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    padding: 11px 12px;
    text-transform: none;
    vertical-align: middle;
}

body.graham-cart-page table.shop_table.cart thead th.product-remove {
    width: 48px;
}

body.graham-cart-page table.shop_table.cart thead th.product-thumbnail {
    width: 84px;
}

body.graham-cart-page table.shop_table.cart thead th.product-name {
    width: auto;
}

body.graham-cart-page table.shop_table.cart thead th.product-price {
    width: 150px;
}

body.graham-cart-page table.shop_table.cart thead th.product-quantity {
    width: 118px;
}

body.graham-cart-page table.shop_table.cart thead th.product-subtotal {
    width: 160px;
}

body.graham-cart-page table.shop_table.cart tbody tr.cart_item {
    background: #fff;
}

body.graham-cart-page table.shop_table.cart tbody tr.cart_item:hover {
    background: #fbfdfe;
}

body.graham-cart-page table.shop_table.cart tbody td {
    border: 0;
    border-bottom: 1px solid var(--graham-cart-line);
    box-sizing: border-box;
    font-size: 0.88rem;
    line-height: 1.35;
    padding: 11px 12px;
    vertical-align: middle;
}

body.graham-cart-page table.shop_table.cart td.product-remove {
    padding-left: 10px;
    padding-right: 4px;
    text-align: center;
}

body.graham-cart-page table.shop_table.cart td.product-remove a.remove {
    align-items: center;
    background: #fff2f2;
    border: 1px solid #edcaca;
    border-radius: 6px;
    color: #a92c2c !important;
    display: inline-flex;
    font-size: 0 !important;
    height: 30px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease;
    width: 30px;
}

body.graham-cart-page table.shop_table.cart td.product-remove a.remove::before {
    content: "\00d7";
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

body.graham-cart-page table.shop_table.cart td.product-remove a.remove:hover,
body.graham-cart-page table.shop_table.cart td.product-remove a.remove:focus-visible {
    background: #fde1e1;
    border-color: #d89c9c;
    color: #7e1818 !important;
}

body.graham-cart-page table.shop_table.cart td.product-thumbnail {
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
}

body.graham-cart-page table.shop_table.cart td.product-thumbnail img {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #edf1f4;
    border-radius: 5px;
    display: block;
    height: 68px !important;
    margin: 0 auto;
    max-height: 68px;
    object-fit: contain;
    padding: 3px;
    width: 68px !important;
}

body.graham-cart-page table.shop_table.cart td.product-name {
    color: var(--graham-cart-muted);
    padding-left: 14px;
}

body.graham-cart-page table.shop_table.cart td.product-name > a {
    color: var(--graham-cart-ink);
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 5px;
    text-decoration-color: #9fb4c2;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

body.graham-cart-page table.shop_table.cart td.product-name > a:hover,
body.graham-cart-page table.shop_table.cart td.product-name > a:focus-visible {
    color: var(--graham-cart-blue);
}

body.graham-cart-page table.shop_table.cart td.product-name dl.variation {
    align-items: center;
    color: var(--graham-cart-muted);
    display: grid;
    font-size: 0.78rem;
    gap: 4px 7px;
    grid-template-columns: max-content minmax(0, 1fr);
    line-height: 1.3;
    margin: 4px 0 0;
}

body.graham-cart-page table.shop_table.cart td.product-name dl.variation dt,
body.graham-cart-page table.shop_table.cart td.product-name dl.variation dd {
    display: block;
    float: none;
    margin: 0;
    padding: 0;
}

body.graham-cart-page table.shop_table.cart td.product-name dl.variation dd p {
    margin: 0;
}

body.graham-cart-page table.shop_table.cart td.product-name dl.variation dt.variation-Offer,
body.graham-cart-page table.shop_table.cart td.product-name dl.variation dt.variation-offer {
    color: #536b7d;
    font-size: 0.68rem;
    font-weight: 800;
}

body.graham-cart-page table.shop_table.cart td.product-name dl.variation dd.variation-Offer,
body.graham-cart-page table.shop_table.cart td.product-name dl.variation dd.variation-offer {
    color: #075da8;
    font-size: 0.7rem;
    font-weight: 800;
    justify-self: start;
    white-space: nowrap;
}

body.graham-cart-page table.shop_table.cart td.product-price,
body.graham-cart-page table.shop_table.cart td.product-subtotal {
    color: var(--graham-cart-ink);
    font-variant-numeric: tabular-nums;
    white-space: normal;
}

body.graham-cart-page table.shop_table.cart td.product-subtotal {
    font-weight: 800;
}

body.graham-cart-page table.shop_table.cart td.product-quantity .quantity {
    display: inline-flex;
    margin: 0;
    width: auto;
}

body.graham-cart-page table.shop_table.cart td.product-quantity input.qty {
    background: #fff;
    border: 1px solid #9fb7c7;
    border-radius: 6px;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--graham-cart-ink);
    font-size: 0.95rem;
    font-weight: 700;
    height: 40px;
    line-height: 1;
    min-height: 40px;
    padding: 6px 8px;
    text-align: center;
    width: 72px;
}

body.graham-cart-page table.shop_table.cart td.product-quantity input.qty:focus {
    border-color: var(--graham-cart-blue);
    box-shadow: 0 0 0 3px rgba(7, 93, 168, 0.13);
    outline: 0;
}

body.graham-cart-page table.shop_table.cart td.actions {
    background: var(--graham-cart-soft);
    border-bottom: 0;
    padding: 10px 12px;
    text-align: right;
}

body.graham-cart-page table.shop_table.cart td.actions .coupon {
    align-items: center;
    display: inline-flex;
    float: left;
    gap: 7px;
}

body.graham-cart-page table.shop_table.cart td.actions .coupon input.input-text {
    border: 1px solid #a8becd;
    border-radius: 6px;
    box-sizing: border-box;
    height: 38px;
    margin: 0;
    min-height: 38px;
    padding: 7px 10px;
    width: 170px;
}

body.graham-cart-page table.shop_table.cart td.actions button.button,
body.graham-cart-page table.shop_table.cart td.actions input.button {
    background: var(--graham-cart-green) !important;
    border: 1px solid var(--graham-cart-green) !important;
    color: #fff !important;
    font-weight: 800 !important;
    min-height: 38px !important;
    opacity: 1;
    padding: 8px 14px !important;
}

body.graham-cart-page table.shop_table.cart td.actions button.button:disabled,
body.graham-cart-page table.shop_table.cart td.actions button.button:disabled[disabled] {
    background: #8abf9d !important;
    border-color: #8abf9d !important;
    color: #fff !important;
}

body.graham-cart-page .cart-collaterals {
    gap: 18px;
    margin-top: 0;
}

body.graham-cart-page .cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid var(--graham-cart-line);
    border-radius: 6px;
    box-shadow: 0 7px 22px rgba(23, 50, 74, 0.055);
    max-width: 430px;
    padding: 16px 18px 18px;
    width: min(100%, 430px) !important;
}

body.graham-cart-page .cart-collaterals .cart_totals h2 {
    color: var(--graham-cart-ink);
    font-size: 1.15rem;
    margin: 0 0 10px;
}

body.graham-cart-page .cart-collaterals .cart_totals table.shop_table {
    border: 0;
    border-collapse: collapse;
    box-shadow: none;
    margin: 0 0 12px;
}

body.graham-cart-page .cart-collaterals .cart_totals table.shop_table th,
body.graham-cart-page .cart-collaterals .cart_totals table.shop_table td {
    border-bottom: 1px solid var(--graham-cart-line);
    font-size: 0.88rem;
    padding: 10px 4px;
}

body.graham-cart-page .cart-collaterals .wc-proceed-to-checkout {
    padding: 0;
}

body.graham-cart-page .cart-collaterals .wc-proceed-to-checkout .checkout-button {
    background: var(--graham-cart-green) !important;
    border: 1px solid var(--graham-cart-green) !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
}

/* Block Cart fallback. */
body.graham-cart-page .wp-block-woocommerce-cart {
    border-radius: 6px;
    padding: 18px !important;
}

body.graham-cart-page .wc-block-cart-items__row {
    min-height: 96px;
}

body.graham-cart-page .wc-block-cart-item__image img {
    height: 72px !important;
    object-fit: contain;
    width: 72px !important;
}

body.graham-cart-page .wc-block-components-quantity-selector {
    min-height: 38px;
    width: 106px;
}

@media (max-width: 980px) {
    body.graham-cart-page .wp-site-blocks main,
    body.graham-cart-page main.wp-block-group,
    body.graham-cart-page main.site-main,
    body.graham-cart-page .site-main {
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-top: 18px !important;
    }

    body.graham-cart-page table.shop_table.cart thead th.product-thumbnail {
        width: 72px;
    }

    body.graham-cart-page table.shop_table.cart thead th.product-price,
    body.graham-cart-page table.shop_table.cart thead th.product-subtotal {
        width: 125px;
    }

    body.graham-cart-page table.shop_table.cart thead th.product-quantity {
        width: 96px;
    }

    body.graham-cart-page table.shop_table.cart tbody td {
        padding: 10px 8px;
    }

    body.graham-cart-page table.shop_table.cart td.product-thumbnail img {
        height: 58px !important;
        width: 58px !important;
    }
}

@media (max-width: 700px) {
    body.graham-cart-page .wp-site-blocks main,
    body.graham-cart-page main.wp-block-group,
    body.graham-cart-page main.site-main,
    body.graham-cart-page .site-main {
        padding: 12px 8px 36px !important;
    }

    body.graham-cart-page .woocommerce-info,
    body.graham-cart-page .woocommerce-message,
    body.graham-cart-page .woocommerce-error {
        font-size: 0.82rem;
        margin-bottom: 10px !important;
        padding: 10px 11px 10px 38px !important;
    }

    body.graham-cart-page .woocommerce-info::before,
    body.graham-cart-page .woocommerce-message::before,
    body.graham-cart-page .woocommerce-error::before {
        left: 12px;
        top: 10px;
    }

    body.graham-cart-page table.shop_table_responsive.cart {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: block;
        overflow: visible;
    }

    body.graham-cart-page table.shop_table_responsive.cart thead {
        display: none;
    }

    body.graham-cart-page table.shop_table_responsive.cart tbody {
        display: grid;
        gap: 9px;
    }

    body.graham-cart-page table.shop_table_responsive.cart tr.cart_item {
        border: 1px solid var(--graham-cart-line);
        border-radius: 6px;
        box-shadow: 0 4px 14px rgba(23, 50, 74, 0.05);
        display: grid;
        gap: 0 10px;
        grid-template-areas:
            "image name remove"
            "image price price"
            "quantity subtotal subtotal";
        grid-template-columns: 78px minmax(0, 1fr) 32px;
        overflow: hidden;
        padding: 10px;
        position: relative;
    }

    body.graham-cart-page table.shop_table_responsive.cart tr.cart_item td {
        border: 0;
        display: block;
        padding: 0;
        text-align: left !important;
    }

    body.graham-cart-page table.shop_table_responsive.cart tr.cart_item td::before {
        content: none;
        display: none;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-remove {
        grid-area: remove;
        justify-self: end;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-remove a.remove {
        height: 30px;
        width: 30px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-thumbnail {
        align-self: start;
        grid-area: image;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-thumbnail img {
        height: 74px !important;
        margin: 0;
        width: 74px !important;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-name {
        align-self: start;
        color: var(--graham-cart-muted);
        grid-area: name;
        padding: 1px 0 3px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-name > a {
        font-size: 0.86rem;
        margin: 0 0 3px;
        padding-right: 2px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-price {
        color: var(--graham-cart-muted);
        font-size: 0.78rem;
        grid-area: price;
        padding-bottom: 8px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-price::before {
        content: "Price: ";
        display: inline;
        float: none;
        font-weight: 700;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-quantity,
    body.graham-cart-page table.shop_table_responsive.cart td.product-subtotal {
        align-items: center;
        border-top: 1px solid var(--graham-cart-line);
        display: flex;
        margin-top: 2px;
        min-height: 50px;
        padding-top: 8px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-quantity {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        grid-area: quantity;
    }

    body.graham-cart-page table.shop_table_responsive.cart tr.cart_item td.product-quantity::before {
        color: var(--graham-cart-muted);
        content: "Quantity";
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-quantity input.qty {
        height: 38px;
        min-height: 38px;
        width: 64px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-subtotal {
        align-items: flex-end;
        flex-direction: column;
        grid-area: subtotal;
        justify-content: center;
        padding-left: 10px;
        text-align: right !important;
    }

    body.graham-cart-page table.shop_table_responsive.cart tr.cart_item td.product-subtotal::before {
        color: var(--graham-cart-muted);
        content: "Subtotal";
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        width: 100%;
    }

    body.graham-cart-page table.shop_table_responsive.cart tr:not(.cart_item) {
        display: block;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.actions {
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 2px 0 0;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.actions .coupon {
        display: grid;
        float: none;
        gap: 7px;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.actions .coupon input.input-text {
        width: 100%;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.actions > button.button,
    body.graham-cart-page table.shop_table_responsive.cart td.actions > input.button {
        align-self: stretch;
        width: 100%;
    }

    body.graham-cart-page .cart-collaterals .cart_totals {
        margin: 0;
        max-width: none;
        padding: 14px !important;
        width: 100% !important;
    }

    body.graham-cart-page .wp-block-woocommerce-cart {
        padding: 10px !important;
    }
}

@media (max-width: 420px) {
    body.graham-cart-page table.shop_table_responsive.cart tr.cart_item {
        gap: 0 8px;
        grid-template-columns: 68px minmax(0, 1fr) 30px;
        padding: 8px;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-thumbnail img {
        height: 64px !important;
        width: 64px !important;
    }

    body.graham-cart-page table.shop_table_responsive.cart td.product-name > a {
        font-size: 0.82rem;
    }
}

/* 0.13.269: compact cart rows with an integrated quantity stepper. */
body.graham-cart-page .woocommerce {
    max-width: 1080px;
}

body.graham-cart-page table.shop_table.cart thead th.product-thumbnail {
    width: 76px;
}

body.graham-cart-page table.shop_table.cart thead th.product-price,
body.graham-cart-page table.shop_table.cart thead th.product-subtotal {
    width: 126px;
}

body.graham-cart-page table.shop_table.cart thead th.product-quantity {
    width: 132px;
}

body.graham-cart-page table.shop_table.cart tbody td {
    padding: 8px 10px;
}

body.graham-cart-page table.shop_table.cart td.product-thumbnail img {
    height: 58px !important;
    max-height: 58px;
    width: 58px !important;
}

body.graham-cart-page table.shop_table.cart td.product-name > a {
    margin-bottom: 3px;
}

body.graham-cart-page table.shop_table.cart td.product-remove a.remove {
    background: #f4f7f9;
    border-color: #cbd8e0;
    color: #536b7d !important;
}

body.graham-cart-page table.shop_table.cart td.product-remove a.remove::before {
    content: "\f182";
    font-family: dashicons;
    font-size: 1rem;
    font-weight: 400;
}

body.graham-cart-page.graham-cart-controls-ready table.shop_table.cart thead th.product-remove,
body.graham-cart-page.graham-cart-controls-ready table.shop_table.cart tbody td.product-remove {
    display: none !important;
}

body.graham-cart-page.graham-cart-controls-ready table.shop_table.cart td.product-remove a.remove::before,
body.graham-cart-page .graham-cart-remove::before {
    content: none;
}

body.graham-cart-page .graham-cart-quantity-controls {
    align-items: flex-end;
    display: inline-flex;
    gap: 7px;
    justify-content: flex-start;
    max-width: 100%;
}

body.graham-cart-page .graham-cart-quantity-field {
    color: #536b7d;
    display: grid;
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 750;
    gap: 3px;
    line-height: 1;
    margin: 0;
}

body.graham-cart-page .graham-cart-quantity-field .quantity {
    display: inline-flex;
    flex: 0 0 auto;
}

body.graham-cart-page .graham-cart-quantity-controls input.qty {
    appearance: auto;
    -moz-appearance: auto;
    -webkit-appearance: auto;
    background: #fff;
    border: 1px solid #a9bdc9;
    border-radius: 6px;
    height: 36px;
    min-height: 36px;
    padding: 4px 5px 4px 8px;
    width: 62px;
}

body.graham-cart-page .graham-cart-remove {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #496477 !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 26px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0 0 2px;
    min-height: 32px;
    padding: 0;
    text-decoration: none;
    width: 26px;
}

body.graham-cart-page .graham-cart-remove:hover,
body.graham-cart-page .graham-cart-remove:focus-visible {
    background: transparent;
    color: #075da8 !important;
    outline: 0;
}

body.graham-cart-page .graham-cart-remove .dashicons {
    font-size: 16px;
    height: 16px;
    line-height: 16px;
    width: 16px;
}

body.graham-cart-page table.shop_table.cart .graham-cart-uom-picker {
    font-size: 0.76rem;
    margin: 7px 0 0;
}

body.graham-cart-page table.shop_table.cart .graham-cart-uom-picker label {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    margin: 0;
}

body.graham-cart-page table.shop_table.cart .graham-cart-uom-picker label > span {
    color: #536b7d;
    font-weight: 750;
    white-space: nowrap;
}

body.graham-cart-page table.shop_table.cart .graham-cart-uom-picker select {
    appearance: auto;
    -webkit-appearance: auto;
    background: #fff;
    border: 1px solid #b4c6d1;
    border-radius: 5px;
    color: #17324a;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    height: 30px;
    line-height: 1;
    margin: 0;
    min-height: 30px;
    min-width: 66px;
    padding: 3px 24px 3px 8px;
    width: auto;
}

body.graham-cart-page table.shop_table.cart td.actions {
    padding: 8px 10px;
}

body.graham-cart-page .wc-block-cart-items__row {
    min-height: 84px;
}

body.graham-cart-page .wc-block-components-quantity-selector {
    min-height: 36px;
    width: 104px;
}

body.graham-cart-page .wc-block-cart-item__remove-link {
    align-items: center;
    color: #536b7d !important;
    display: inline-flex;
    font-size: 0 !important;
    gap: 0;
    text-decoration: none;
}

body.graham-cart-page .wc-block-cart-item__remove-link::before {
    content: "\f182";
    font-family: dashicons;
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 700px) {
    body.graham-cart-page.graham-cart-controls-ready table.shop_table_responsive.cart tr.cart_item {
        grid-template-areas:
            "image name name"
            "image price price"
            "quantity quantity subtotal";
        grid-template-columns: 72px minmax(0, 1fr) minmax(92px, auto);
    }

    body.graham-cart-page.graham-cart-controls-ready table.shop_table_responsive.cart td.product-remove {
        display: none;
    }

    body.graham-cart-page.graham-cart-controls-ready table.shop_table_responsive.cart td.product-quantity {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    body.graham-cart-page.graham-cart-controls-ready table.shop_table_responsive.cart td.product-subtotal {
        justify-content: center;
        margin-top: 2px;
        min-width: 92px;
        padding-left: 8px;
        padding-top: 8px;
    }

    body.graham-cart-page.graham-cart-controls-ready table.shop_table_responsive.cart tr.cart_item td.product-quantity::before {
        content: none !important;
        display: none !important;
    }

    body.graham-cart-page .graham-cart-quantity-controls {
        margin-left: auto;
    }

    body.graham-cart-page .graham-cart-quantity-controls input.qty {
        height: 36px;
        min-height: 36px;
        width: 60px;
    }
}

@media (max-width: 390px) {
    body.graham-cart-page.graham-cart-controls-ready table.shop_table_responsive.cart tr.cart_item {
        grid-template-columns: 64px minmax(0, 1fr) minmax(82px, auto);
    }

    body.graham-cart-page .graham-cart-remove {
        flex-basis: 32px;
        width: 32px;
    }
}

/* 0.13.439: keep landscape tablet and vehicle-browser cart columns readable. */
@media (min-width: 701px) {
    body.graham-cart-page table.shop_table.cart {
        table-layout: fixed !important;
    }

    body.graham-cart-page table.shop_table.cart :is(th, td).product-thumbnail {
        width: 76px !important;
    }

    body.graham-cart-page table.shop_table.cart :is(th, td).product-name {
        min-width: 0;
        width: auto !important;
    }

    body.graham-cart-page table.shop_table.cart :is(th, td).product-price {
        width: 104px !important;
    }

    body.graham-cart-page table.shop_table.cart :is(th, td).product-quantity {
        width: 126px !important;
    }

    body.graham-cart-page table.shop_table.cart :is(th, td).product-subtotal {
        width: 116px !important;
    }

    body.graham-cart-page table.shop_table.cart td.product-name > a {
        hyphens: none;
        max-width: none !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.graham-cart-page table.shop_table.cart td.product-price,
    body.graham-cart-page table.shop_table.cart td.product-subtotal {
        white-space: nowrap;
    }
}

/* 0.15.061: the classic cart must use the full content column. WooCommerce
 * otherwise applies its default 70% form width, leaving an empty right rail. */
body.graham-cart-page .woocommerce-cart-form {
    box-sizing: border-box;
    float: none !important;
    flex: 1 1 100% !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.graham-cart-page .woocommerce-cart-form table.shop_table.cart {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
}

/* Keep the cart item rows aligned with the full-width table, not the old
 * narrow WooCommerce form column. */
@media (min-width: 701px) {
    body.graham-cart-page table.shop_table.cart > thead,
    body.graham-cart-page table.shop_table.cart > tbody,
    body.graham-cart-page table.shop_table.cart > tfoot,
    body.graham-cart-page table.shop_table.cart > thead > tr,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item {
        width: 100% !important;
    }

    body.graham-cart-page table.shop_table.cart {
        table-layout: auto !important;
    }

    body.graham-cart-page table.shop_table.cart > thead > tr,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item {
        display: table-row !important;
    }

    body.graham-cart-page table.shop_table.cart > thead > tr > th,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item > td {
        width: auto !important;
    }

    body.graham-cart-page table.shop_table.cart > thead > tr > th.product-thumbnail,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item > td.product-thumbnail {
        width: 76px !important;
    }

    body.graham-cart-page table.shop_table.cart > thead > tr > th.product-price,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item > td.product-price {
        width: 104px !important;
    }

    body.graham-cart-page table.shop_table.cart > thead > tr > th.product-quantity,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item > td.product-quantity {
        width: 126px !important;
    }

    body.graham-cart-page table.shop_table.cart > thead > tr > th.product-subtotal,
    body.graham-cart-page table.shop_table.cart > tbody > tr.cart_item > td.product-subtotal {
        width: 116px !important;
    }
}
