/*
 * WooCommerce Cart and Checkout Styles
 * Premium cart/checkout styling for Eme's Baked Goods.
 */

:root {
    --commerce-cream: #f7f3ec;
    --commerce-paper: #fffaf3;
    --commerce-ink: #181512;
    --commerce-charcoal: #4c4842;
    --commerce-muted: #746d63;
    --commerce-cocoa: #5a351f;
    --commerce-blush: #efd4cf;
    --commerce-gold: #b98548;
}

body.woocommerce-cart,
body.woocommerce-checkout {
    background:
        radial-gradient(circle at 84% 10%, rgba(239, 212, 207, 0.72), transparent 24rem),
        linear-gradient(180deg, var(--commerce-cream), #fbf8f2 54%, #eee5d8);
    color: var(--commerce-ink);
}

body.woocommerce-cart main,
body.woocommerce-checkout main,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
    margin: 0 auto;
    max-width: 78rem;
    padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
    width: 100%;
}

body.woocommerce-cart h1,
body.woocommerce-checkout h1,
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout h3,
body.woocommerce-cart .cart_totals h2 {
    color: var(--commerce-charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.96;
    margin: 0 0 1.5rem;
}

body.woocommerce-cart h1,
body.woocommerce-checkout h1,
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
}

body.woocommerce-cart > h1,
body.woocommerce-checkout > h1 {
    margin: 0 auto;
    max-width: 78rem;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 0;
    width: 100%;
}

body.woocommerce-cart > h1::before,
body.woocommerce-checkout > h1::before {
    color: var(--commerce-cocoa);
    content: "Eme's Baked Goods";
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

body.woocommerce-checkout h3,
body.woocommerce-cart .cart_totals h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-form-coupon,
body.woocommerce-checkout .woocommerce-form-login,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(24, 21, 18, 0.1);
    border-radius: 1.65rem;
    box-shadow: 0 1.2rem 2.4rem rgba(64, 48, 35, 0.08);
    overflow: hidden;
}

body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .return-to-shop,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    margin-left: auto;
    margin-right: auto;
    max-width: 78rem;
    text-align: center;
}

body.woocommerce-cart .cart-empty,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(24, 21, 18, 0.1);
    border-radius: 1.65rem;
    box-shadow: 0 1.2rem 2.4rem rgba(64, 48, 35, 0.08);
    color: var(--commerce-muted);
    padding: clamp(1.5rem, 6vw, 3rem);
}

body.woocommerce-cart .cart-empty::before {
    color: var(--commerce-cocoa);
}

body.woocommerce-cart .return-to-shop {
    margin-top: 1rem;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-checkout form.checkout {
    padding: clamp(1.1rem, 3vw, 1.75rem);
}

body.woocommerce-cart .woocommerce {
    align-items: start;
    display: grid;
    gap: 1.25rem;
}

body.woocommerce-cart .woocommerce-cart-form {
    min-width: 0;
    width: 100%;
}

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
    border: 0;
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
    border: 0;
    border-bottom: 1px solid rgba(24, 21, 18, 0.1);
    color: var(--commerce-muted);
    padding: 1rem 0.85rem;
    vertical-align: middle;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table th {
    color: var(--commerce-cocoa);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.woocommerce-cart .product-thumbnail img {
    border-radius: 0.8rem;
    height: 4.75rem;
    object-fit: cover;
    width: 4.75rem;
}

body.woocommerce-cart .product-name a,
body.woocommerce-checkout .product-name {
    color: var(--commerce-ink);
    font-weight: 900;
    text-decoration: none;
}

body.woocommerce-cart .product-name {
    line-height: 1.5;
}

body.woocommerce-cart .product-name dl,
body.woocommerce-cart .product-name .variation {
    color: var(--commerce-muted);
    font-size: 0.88rem;
    margin: 0.25rem 0 0;
}

body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal,
body.woocommerce-checkout .order-total,
body.woocommerce-cart .order-total {
    color: var(--commerce-ink);
    font-weight: 900;
}

body.woocommerce-cart .quantity input.qty {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(24, 21, 18, 0.14);
    border-radius: 999px;
    color: var(--commerce-ink);
    min-height: 2.7rem;
    text-align: center;
    width: 5rem;
}

body.woocommerce-cart .product-remove a {
    align-items: center;
    background: rgba(90, 53, 31, 0.08);
    border-radius: 999px;
    color: var(--commerce-cocoa) !important;
    display: inline-flex;
    font-size: 1.2rem;
    height: 2.2rem;
    justify-content: center;
    text-decoration: none;
    width: 2.2rem;
}

body.woocommerce-cart .cart-collaterals {
    margin-top: 0;
    width: 100%;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    float: none;
    margin-left: 0;
    max-width: none;
    padding: clamp(1.25rem, 4vw, 2rem);
    width: 100%;
}

body.woocommerce-cart .cart_totals table {
    margin-bottom: 1.25rem;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
    text-align: stretch;
}

body.woocommerce-cart .coupon {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.woocommerce-cart .coupon label {
    color: var(--commerce-cocoa);
    font-weight: 900;
}

body.woocommerce-cart input.input-text,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce-cart .coupon input {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(24, 21, 18, 0.14);
    border-radius: 1rem;
    color: var(--commerce-ink);
    font: inherit;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    width: 100%;
}

body.woocommerce-checkout textarea {
    min-height: 8rem;
}

body.woocommerce-checkout label {
    color: var(--commerce-cocoa);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

body.woocommerce-checkout .col2-set {
    display: grid;
    gap: 1.25rem;
}

body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2 {
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(24, 21, 18, 0.1);
    border-radius: 1.65rem;
    box-shadow: 0 1.2rem 2.4rem rgba(64, 48, 35, 0.08);
    padding: clamp(1.25rem, 4vw, 2rem);
    width: 100%;
}

body.woocommerce-checkout #order_review_heading {
    margin-top: 2rem;
}

body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order {
    padding: clamp(1.25rem, 4vw, 2rem);
}

body.woocommerce-checkout #payment {
    background: transparent;
}

body.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(24, 21, 18, 0.1);
    padding: 1rem 0;
}

body.woocommerce-checkout #payment div.form-row {
    padding: 1rem 0 0;
}

body.woocommerce-cart button.button,
body.woocommerce-cart a.button,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout a.button,
body.woocommerce-checkout #place_order {
    align-items: center;
    background: var(--commerce-ink) !important;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 1rem 2rem rgba(24, 21, 18, 0.16);
    color: var(--commerce-paper) !important;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.1em;
    line-height: 1.2 !important;
    min-height: 3rem;
    padding: 0.9rem 1.35rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

body.woocommerce-cart button.button:hover,
body.woocommerce-cart a.button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-checkout button.button:hover,
body.woocommerce-checkout a.button:hover,
body.woocommerce-checkout #place_order:hover {
    box-shadow: 0 1.2rem 2.4rem rgba(24, 21, 18, 0.2);
    transform: translateY(-2px);
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    font-size: 0.86rem !important;
    margin: 1.25rem 0 0 !important;
    width: 100%;
}

/* WooCommerce Cart and Checkout Blocks */
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
    box-sizing: border-box;
    margin: 0 auto clamp(2.5rem, 7vw, 5rem) !important;
    max-width: 78rem !important;
    padding: 0 clamp(1.25rem, 4vw, 2rem) !important;
    width: 100% !important;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
    align-items: start !important;
    display: grid !important;
    gap: clamp(1.25rem, 4vw, 2rem) !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main {
    margin: 0 !important;
    min-width: 0;
    padding: 0 !important;
    width: 100% !important;
}

body.woocommerce-cart .wc-block-cart-items {
    background: rgba(255, 250, 243, 0.84);
    border: 1px solid rgba(24, 21, 18, 0.1) !important;
    border-collapse: separate !important;
    border-radius: 1.65rem;
    border-spacing: 0;
    box-shadow: 0 1.2rem 2.4rem rgba(64, 48, 35, 0.08);
    overflow: hidden;
    width: 100%;
}

body.woocommerce-cart .wc-block-cart-items__header th {
    border-bottom: 1px solid rgba(24, 21, 18, 0.1) !important;
    color: var(--commerce-cocoa);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 1rem !important;
    text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items__row td {
    border-bottom: 0 !important;
    padding: clamp(1rem, 3vw, 1.35rem) 1rem !important;
    vertical-align: middle !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
    border-radius: 0.9rem;
    height: 5.25rem !important;
    object-fit: cover;
    width: 5.25rem !important;
}

body.woocommerce-cart .wc-block-components-product-name {
    color: var(--commerce-ink);
    display: inline-block;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata p {
    color: var(--commerce-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

body.woocommerce-cart .wc-block-cart-item__total,
body.woocommerce-cart .wc-block-formatted-money-amount {
    color: var(--commerce-ink);
    font-weight: 900;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
    align-items: center;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(24, 21, 18, 0.14);
    border-radius: 999px;
    display: inline-flex;
    min-height: 2.7rem;
    overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
    background: transparent !important;
    border: 0 !important;
    color: var(--commerce-ink);
    font-weight: 800;
    min-height: 2.7rem;
    text-align: center;
    width: 3.5rem !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
    background: transparent !important;
    border: 0 !important;
    color: var(--commerce-cocoa);
    min-height: 2.7rem;
    min-width: 2.4rem;
}

body.woocommerce-cart .wc-block-cart-item__quantity {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.7rem;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
    align-items: center;
    background: rgba(90, 53, 31, 0.08) !important;
    border: 0 !important;
    border-radius: 999px;
    color: var(--commerce-cocoa) !important;
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    padding: 0 !important;
    width: 2.4rem;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
    height: 1.1rem;
    width: 1.1rem;
}

body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
    background: rgba(255, 250, 243, 0.84);
    border: 1px solid rgba(24, 21, 18, 0.1);
    border-radius: 1.65rem;
    box-shadow: 0 1.2rem 2.4rem rgba(64, 48, 35, 0.08);
    box-sizing: border-box;
    margin: 0 !important;
    padding: clamp(1.25rem, 4vw, 2rem) !important;
    width: 100% !important;
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-checkout .wc-block-components-title {
    color: var(--commerce-cocoa);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem !important;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin: 0 0 1rem !important;
    text-transform: uppercase;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
    border-top: 1px solid rgba(24, 21, 18, 0.1) !important;
    padding: 1rem 0 !important;
}

body.woocommerce-cart .wc-block-components-panel__button,
body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-totals-item {
    color: var(--commerce-muted);
    font-size: 0.95rem;
}

body.woocommerce-cart .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item {
    align-items: center;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--commerce-ink);
    font-size: 1.25rem;
    font-weight: 900;
}

body.woocommerce-cart .wc-block-cart__submit-container {
    margin-top: 1.25rem;
}

body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    align-items: center !important;
    background: var(--commerce-ink) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 1rem 2rem rgba(24, 21, 18, 0.16);
    color: var(--commerce-paper) !important;
    display: flex !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    justify-content: center !important;
    letter-spacing: 0.1em;
    min-height: 3.2rem !important;
    padding: 0.95rem 1.35rem !important;
    text-decoration: none !important;
    text-transform: uppercase;
    width: 100% !important;
}

body.woocommerce-cart .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-button__text {
    color: inherit !important;
    font-weight: inherit !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-textarea {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(24, 21, 18, 0.14) !important;
    border-radius: 1rem !important;
    color: var(--commerce-ink) !important;
    min-height: 3rem;
}

@media (min-width: 820px) {
    body.woocommerce-cart .wc-block-components-sidebar-layout,
    body.woocommerce-checkout .wc-block-components-sidebar-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr) !important;
    }
}

@media (max-width: 640px) {
    body.woocommerce-cart .wc-block-cart-items__header {
        display: none;
    }

    body.woocommerce-cart .wc-block-cart-items,
    body.woocommerce-cart .wc-block-cart-items tbody,
    body.woocommerce-cart .wc-block-cart-items__row,
    body.woocommerce-cart .wc-block-cart-items__row td {
        display: block;
        width: 100%;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        padding-bottom: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__product,
    body.woocommerce-cart .wc-block-cart-item__total {
        padding-top: 0.75rem !important;
    }
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    color: var(--commerce-cocoa);
    font-weight: 800;
    line-height: 1.6;
    list-style: none;
    margin: 1rem auto;
    max-width: 78rem;
    padding: 1rem 1.2rem;
}

@media (max-width: 760px) {
    body.woocommerce-cart table.shop_table_responsive tr,
    body.woocommerce-checkout table.shop_table_responsive tr {
        border-bottom: 1px solid rgba(24, 21, 18, 0.1);
        display: block;
        padding: 0.75rem 0;
    }

    body.woocommerce-cart table.shop_table_responsive tr td,
    body.woocommerce-checkout table.shop_table_responsive tr td {
        border-bottom: 0;
        display: flex;
        justify-content: space-between;
        padding: 0.65rem 0;
        text-align: right !important;
    }

    body.woocommerce-cart table.shop_table_responsive tr td::before,
    body.woocommerce-checkout table.shop_table_responsive tr td::before {
        color: var(--commerce-cocoa);
        content: attr(data-title);
        font-weight: 900;
        padding-right: 1rem;
        text-align: left;
    }

    body.woocommerce-cart .product-thumbnail {
        display: none !important;
    }
}

@media (min-width: 820px) {
    body.woocommerce-cart .woocommerce {
        grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
    }

    body.woocommerce-cart .woocommerce-notices-wrapper,
    body.woocommerce-cart .wc-empty-cart-message,
    body.woocommerce-cart .cart-empty,
    body.woocommerce-cart .return-to-shop {
        grid-column: 1 / -1;
    }

    body.woocommerce-checkout .col2-set {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
