/* Live cart page only. The drawer and WooCommerce's cart controls keep their own styles. */
.section.glocheckout-cart {
    --cart-paper: #f8f3ed;
    --cart-edge: #e4dbd1;
    --cart-control-edge: #a69787;
    --cart-muted: #63594d;
    --cart-radius: 6px;
    --cart-padding: clamp(16px, 2.4vw, 28px);
    max-width: 1210px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 49px) clamp(14px, 4vw, 52px) clamp(44px, 7vw, 82px);
}

.glocheckout-cart .glocheckout-header {
    max-width: none;
    margin-block-end: clamp(18px, 3vw, 34px);
    padding-block-end: clamp(12px, 2vw, 22px);
}

.glocheckout-cart .glocheckout-header h1 {
    font-size: clamp(2.25rem, 4.1vw, 3.75rem);
}

.glocheckout-cart .gl-buy-cart-native,
.glocheckout-cart .gl-buy-cart-native > .woocommerce {
    font-size: .9375rem;
    line-height: 1.5;
}

.glocheckout-cart .gl-buy-cart-native .woocommerce-notices-wrapper {
    max-width: none;
    padding: 0;
}

.glocheckout-cart .gl-buy-cart-native :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
    margin: 0 0 16px;
    padding: 13px 16px;
    border-color: var(--cart-edge);
    border-radius: 9px;
    background: var(--cart-paper);
    font-size: .9375rem;
    line-height: 1.5;
}

.glocheckout-cart .gl-buy-cart-native .woocommerce-error {
    border-color: #c68885;
    background: #fff2f0;
    color: #7f2826;
}

.glocheckout-cart .gl-buy-cart-native .return-to-shop .button {
    min-height: 46px;
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: .9375rem;
}

.glocheckout-cart .gl-buy-cart-native .woocommerce-cart-form {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents {
    margin: 0;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents :is(th, td) {
    padding: 15px 7px;
    border-color: var(--cart-edge);
    font-size: .9375rem;
    line-height: 1.4;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents thead th {
    border-top: 0;
    color: var(--cart-muted);
    padding-top: 5px;
    padding-bottom: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.glocheckout-cart .woocommerce-cart-form .cart_item .product-remove {
    width: 44px;
    padding-inline: 0;
}

.glocheckout-cart .woocommerce-cart-form .cart_item .product-remove .remove {
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--cart-muted) !important;
    font-size: 1.375rem;
}

.glocheckout-cart .woocommerce-cart-form .cart_item .product-remove .remove:hover {
    border-color: var(--cart-edge);
    background: var(--cart-paper);
    color: var(--ink) !important;
}

.glocheckout-cart .woocommerce-cart-form .cart_item .product-thumbnail {
    width: 94px;
}

.glocheckout-cart .woocommerce-cart-form .cart_item .product-thumbnail img {
    display: block;
    width: min(100%, 82px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--cart-paper);
    object-fit: cover;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-name {
    max-width: none;
    min-width: 0;
    overflow-wrap: anywhere;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-name a {
    font-size: .975rem;
    font-weight: 700;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.glocheckout-cart .woocommerce-cart-form .cart_item .variation {
    color: var(--cart-muted);
    font-size: .8125rem;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .product-subtotal {
    text-align: end;
    font-weight: 700;
}

.glocheckout-cart .woocommerce-cart-form .cart_item :is(.product-price, .product-subtotal):has(> ins):has(> del) {
    display: table-cell;
}

.glocheckout-cart .woocommerce-cart-form .cart_item :is(.product-price, .product-subtotal) > :is(ins, del) {
    display: inline-block;
}

.glocheckout-cart .woocommerce-cart-form .cart_item :is(.product-price, .product-subtotal) > del {
    margin-inline-start: 4px !important;
    font-size: .8125em;
}

.glocheckout-cart .woocommerce-cart-form table.cart .cart_item .quantity {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
}

.glocheckout-cart .woocommerce-cart-form table.cart .cart_item .quantity input.qty {
    width: 57px;
    min-height: 44px;
    padding: 6px;
    border: 1px solid var(--cart-control-edge);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
}

.glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents td.actions {
    padding: 16px 0 0;
    border: 0;
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon {
    display: flex;
    float: inline-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon .input-text {
    float: none;
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--cart-control-edge);
    border-radius: 5px 0 0 5px;
    background: #fbf8f4;
    font-size: 1rem;
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .button {
    float: none;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--cart-control-edge);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .button:not(:disabled):hover {
    background: var(--cart-paper);
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon .button {
    margin-inline-start: -1px;
    border-radius: 0 5px 5px 0;
    background: var(--cart-paper);
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon :is(input, button):focus-visible {
    position: relative;
    z-index: 1;
}

.glocheckout-cart .woocommerce-cart-form table.cart td.actions .button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.glocheckout-cart .gl-buy-cart-native .cart-collaterals {
    display: block;
    min-width: 0;
    margin-top: 20px;
}

.glocheckout-cart .gl-buy-cart-native .cart_totals {
    float: none;
    width: 100%;
    padding: var(--cart-padding);
    border: 0;
    border-radius: var(--cart-radius);
    background: var(--cart-paper);
}

.glocheckout-cart .gl-buy-cart-native .cart_totals h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: 1.2;
}

.glocheckout-cart .gl-buy-cart-native .gl-buy-shipping-note {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-color: var(--cart-edge);
    color: var(--cart-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.glocheckout-cart .gl-buy-cart-native .gl-buy-shipping-note .text-link {
    margin-top: 2px;
    color: var(--ink);
    font-size: .875rem;
}

.glocheckout-cart .gl-buy-cart-native .cart_totals table.shop_table {
    margin: 0 0 16px;
}

.glocheckout-cart .gl-buy-cart-native .cart_totals table.shop_table :is(th, td) {
    padding: 10px 0;
    border-color: var(--cart-edge);
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.glocheckout-cart .gl-buy-cart-native .cart_totals table.shop_table .order-total :is(th, td),
.glocheckout-cart .gl-buy-cart-native .cart_totals table.shop_table .order-total td::before {
    font-size: 1.15rem;
    font-weight: 700;
}

.glocheckout-cart .gl-buy-cart-native .cart_totals .cart-discount .amount {
    color: #8b3a32;
    font-weight: 600;
}

.glocheckout-cart .cart_totals :is(.woocommerce-shipping-methods, .shipping-calculator-form) {
    margin: 0;
}

.glocheckout-cart .cart_totals .woocommerce-shipping-calculator :is(input.input-text, select) {
    min-height: 44px;
    font-size: 1rem;
}

.glocheckout-cart .cart_totals .woocommerce-shipping-calculator .button {
    min-height: 44px;
}

.glocheckout-cart .gl-buy-cart-native .wc-proceed-to-checkout {
    padding: 0;
}

.glocheckout-cart .gl-buy-cart-native .wc-proceed-to-checkout > .checkout-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 12px 15px;
    border-radius: 4px;
    background: #171717;
    color: #fff;
    font-size: .9375rem;
    line-height: 1.35;
    text-align: center;
}

.glocheckout-cart .gl-buy-cart-native .wc-proceed-to-checkout > .checkout-button:hover {
    background: #4b392b;
}

.glocheckout-cart .gl-live-cart-shipping-pending {
    margin: 0 0 12px;
    color: var(--cart-muted);
    font-size: .875rem;
    line-height: 1.45;
}

.glocheckout-cart .gl-live-cart-policy {
    display: flex;
    width: fit-content;
    min-height: 44px;
    margin: 6px auto 0;
    align-items: center;
    gap: 7px;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.glocheckout-cart .gl-live-cart-policy svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 769px) {
    .glocheckout-cart .woocommerce-cart-form table.cart td.actions {
        display: table-cell;
        text-align: end;
    }
}

@media (min-width: 1020px) {
    .glocheckout-cart .gl-buy-cart-native :where(.woocommerce):has(> .woocommerce-cart-form):has(> .cart-collaterals),
    .glocheckout-cart .gl-buy-cart-native:has(> .woocommerce-cart-form):has(> .cart-collaterals) {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        align-items: start;
        column-gap: clamp(32px, 4vw, 54px);
    }

    .glocheckout-cart .gl-buy-cart-native :where(.woocommerce):has(> .woocommerce-cart-form) > :not(.woocommerce-cart-form, .cart-collaterals),
    .glocheckout-cart .gl-buy-cart-native:has(> .woocommerce-cart-form) > :not(.woocommerce-cart-form, .cart-collaterals) {
        grid-column: 1 / -1;
    }

    .glocheckout-cart .gl-buy-cart-native .cart-collaterals {
        margin-top: 0;
    }

    .glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon {
        width: min(68%, 390px);
    }
}

@media (max-width: 768px) {
    .glocheckout-cart .gl-buy-cart-native .woocommerce-cart-form {
        padding: 0;
        border: 0;
    }

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

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas: 'image name remove' 'image price price' 'image qty total';
        align-items: center;
        gap: 3px 12px;
        margin: 0;
        padding: 11px 0;
        border: 0;
        border-bottom: 1px solid var(--cart-edge);
        background: #fff;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item > td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: start !important;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item > td::before {
        content: none;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-thumbnail {
        grid-area: image;
        align-self: start;
        width: 100%;
        padding-top: 2px;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-name {
        grid-area: name;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-remove {
        grid-area: remove;
        align-self: start;
        justify-self: end;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-price {
        grid-area: price;
        color: var(--cart-muted);
        font-size: .875rem;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-quantity {
        grid-area: qty;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-subtotal {
        grid-area: total;
        justify-self: end;
        font-size: .9375rem;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item :is(.product-price, .product-subtotal):has(> ins):has(> del) {
        display: block;
    }

    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item .product-subtotal::before {
        content: attr(data-title);
        display: block;
        float: none;
        color: var(--cart-muted);
        font-size: .75rem;
        font-weight: 400;
        text-align: end;
    }

    .glocheckout-cart .woocommerce-cart-form table.cart td.actions {
        display: grid;
        justify-items: stretch;
        gap: 8px;
        padding-top: 12px;
        background: transparent;
    }

    .glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon {
        float: none;
        flex-wrap: nowrap;
    }

    .glocheckout-cart .woocommerce-cart-form table.cart td.actions .coupon .input-text {
        flex: 1 1 90px;
    }

    .glocheckout-cart .woocommerce-cart-form table.cart td.actions > .button {
        justify-self: end;
    }
}

@media (max-width: 345px) {
    .glocheckout-cart .woocommerce-cart-form table.woocommerce-cart-form__contents .cart_item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        column-gap: 9px;
    }
}
