/* ========================================
   KRISETTE & CO CART PAGE STYLES
   Minimal, Clean & Aligned with Mini-Cart Design
   ======================================== */

/* ========================================
   EXPRESS CHECKOUT STYLES FOR CART
   ======================================== */
.krisette-cart-express-checkout {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.krisette-cart-express-checkout h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.express-checkout-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.express-checkout-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #666;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.express-checkout-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

#stripe-payment-request-button-cart {
    width: 100%;
    min-height: 48px;
    margin: 1rem 0;
}

.express-checkout-separator {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.express-checkout-separator span {
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
.wc-block-cart * {
    box-sizing: border-box;
}

/* ========================================
   CART CONTAINER & LAYOUT
   ======================================== */
.wc-block-components-sidebar-layout {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fafafa;
    min-height: 80vh;
}

.wc-block-components-main {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    height: fit-content;
}

.wc-block-components-sidebar {
    flex: 0 0 380px;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* ========================================
   CART HEADER & TITLE
   ======================================== */
.wc-block-cart-items .screen-reader-text h2 {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: none !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

.wc-block-cart-items caption {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* ========================================
   CART TABLE STYLES
   ======================================== */
.wc-block-cart-items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    background: transparent;
}

.wc-block-cart-items thead {
    border-bottom: 1px solid #f5f5f5;
}

.wc-block-cart-items__header {
    background: #fafafa;
    border-radius: 6px 6px 0 0;
}

.wc-block-cart-items__header th {
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    background: #fafafa;
}

.wc-block-cart-items__header-image {
    width: 100px;
    text-align: center;
}

.wc-block-cart-items__header-product {
    text-align: left;
}

.wc-block-cart-items__header-total {
    width: 120px;
    text-align: right;
}

/* ========================================
   CART ITEM ROW STYLES
   ======================================== */
.wc-block-cart-items__row {
    border-bottom: 1px solid #f8f8f8;
    transition: background-color 0.2s ease;
}

.wc-block-cart-items__row:hover {
    background-color: #fafafa;
}

.wc-block-cart-items__row td {
    padding: 1.5rem 1.5rem;
    vertical-align: top;
    border: none;
}

/* ========================================
   PRODUCT IMAGE STYLES
   ======================================== */
.wc-block-cart-item__image {
    text-align: center;
    width: 100px;
}

.wc-block-cart-item__image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
    background: #f8f8f8;
}

.wc-block-cart-item__image img:hover {
    transform: scale(1.02);
}

/* ========================================
   PRODUCT DETAILS STYLES
   ======================================== */
.wc-block-cart-item__product {
    padding-right: 1.5rem;
}

.wc-block-components-product-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.wc-block-components-product-name:hover {
    color: #000;
    text-decoration: none;
}

.wc-block-cart-item__prices {
    margin-bottom: 1rem;
}

.wc-block-components-product-price__value {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* ========================================
   PRODUCT METADATA STYLES
   ======================================== */
.wc-block-components-product-metadata {
    margin-bottom: 1rem;
}

.wc-block-components-product-details {
    margin-bottom: 0.5rem;
}

.wc-block-components-product-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: none;
    font-size: 0.8rem;
}

.wc-block-components-product-details__name {
    font-weight: 400;
    color: #666;
    margin-right: 1rem;
}

.wc-block-components-product-details__value {
    font-weight: 500;
    color: #333;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Estimated delivery date styling */
.wc-block-components-product-details__estimated-delivery-date {
    background: white;
    color: black;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    border: 1px solid #e8e8e8;
}

.wc-block-components-product-details__estimated-delivery-date .wc-block-components-product-details__name {
    color: #666;
    font-weight: 400;
}

.wc-block-components-product-details__estimated-delivery-date .wc-block-components-product-details__value {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

/* ========================================
   QUANTITY SELECTOR STYLES
   ======================================== */
.wc-block-cart-item__quantity {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wc-block-components-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s ease;
}

.wc-block-components-quantity-selector:focus-within {
    border-color: #999;
}

.wc-block-components-quantity-selector__button {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
    background: #f5f5f5;
    color: #333;
}

.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wc-block-components-quantity-selector__input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: white;
}

.wc-block-components-quantity-selector__input:focus {
    outline: none;
}

/* ========================================
   REMOVE ITEM BUTTON STYLES
   ======================================== */
.wc-block-cart-item__remove-link {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e8e8e8;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.wc-block-cart-item__remove-link:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
    text-decoration: none;
}

/* ========================================
   ITEM TOTAL STYLES
   ======================================== */
.wc-block-cart-item__total {
    text-align: right;
    width: 120px;
}

.wc-block-cart-item__total-price-and-sale-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wc-block-cart-item__total .wc-block-components-product-price__value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

/* ========================================
   CART TOTALS SIDEBAR STYLES
   ======================================== */
.wp-block-woocommerce-cart-order-summary-heading-block {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

/* ========================================
   COUPON SECTION STYLES
   ======================================== */
.wc-block-components-totals-coupon {
    margin-bottom: 1.5rem;
}

.wc-block-components-panel__button {
    width: 100%;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #666;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.wc-block-components-panel__button:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

/* ========================================
   TOTALS ITEMS STYLES
   ======================================== */
.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 0.875rem;
}

.wc-block-components-totals-item:last-child {
    border-bottom: none;
}

.wc-block-components-totals-item__label {
    font-weight: 400;
    color: #666;
}

.wc-block-components-totals-item__value {
    font-weight: 500;
    color: #333;
    text-align: right;
}

/* ========================================
   TOTAL PRICE STYLES
   ======================================== */
.wc-block-components-totals-footer-item {
    background: #fafafa;
    color: #333;
    padding: 1.25rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #f5f5f5;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #333;
    font-size: 1.375rem;
    font-weight: 600;
}

/* Center the OR divider text */
.wc-block-components-express-payment-continue-rule {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wc-block-components-express-payment-continue-rule--cart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-block-components-express-payment-continue-rule--cart::before,
.wc-block-components-express-payment-continue-rule--cart::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.wc-block-components-express-payment-continue-rule--cart::before {
    margin-right: 1rem;
}

.wc-block-components-express-payment-continue-rule--cart::after {
    margin-left: 1rem;
}

/* ========================================
   EXPRESS CHECKOUT STYLES
   ======================================== */
.wc-block-components-express-payment {
    margin-bottom: 1.5rem;
}

.wc-block-components-express-payment__content {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fafafa;
}

.wc-block-components-express-payment__event-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wc-block-components-express-payment__event-buttons li {
    margin: 0;
}

/* ========================================
   CONTINUE RULE STYLES
   ======================================== */
.wc-block-components-express-payment-continue-rule {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: #666;
    font-weight: 400;
    font-size: 0.875rem;
}

.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #f5f5f5;
}

.wc-block-components-express-payment-continue-rule::before {
    left: 0;
}

.wc-block-components-express-payment-continue-rule::after {
    right: 0;
}

/* ========================================
   CHECKOUT BUTTON STYLES
   ======================================== */
.wc-block-cart__submit-container {
    margin-top: 1.5rem;
}

.wc-block-cart__submit-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    color: white;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-decoration: none;
}

.wc-block-cart__submit-button:hover {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: #303030;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.wc-block-cart__submit-button:active {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: 0 1px 1px rgba(0,0,0,0.3) inset;
}

/* ========================================
   EMPTY CART STYLES
   ======================================== */
.wc-block-cart--is-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wc-block-cart--is-empty h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.wc-block-cart--is-empty p {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* ========================================
   LOADING STATES
   ======================================== */
.wc-block-cart-items__row.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    /* Force full width container on tablet */
    .woocommerce-cart,
    .woocommerce.woocommerce-cart {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Ensure cart wrapper takes full width */
    .wp-block-woocommerce-cart.alignwide,
    .wc-block-cart {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Stack layout vertically on tablet */
    .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Main content area full width */
    .wc-block-components-main,
    .wc-block-cart__main,
    .wp-block-woocommerce-cart-items-block {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Sidebar full width */
    .wc-block-components-sidebar,
    .wc-block-cart__sidebar,
    .wp-block-woocommerce-cart-totals-block {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        position: static !important;
        top: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure cart forms and inner containers extend full width */
    .woocommerce-cart-form,
    form.woocommerce-cart-form,
    .cart-collaterals,
    .wc-block-cart-items,
    .wc-block-cart-items__row {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Force express checkout to take full width too */
    .wc-block-components-express-payment,
    .wc-block-components-express-payment__content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .wc-block-components-sidebar-layout {
        padding: 1rem;
        gap: 1rem;
    }
    
    .wc-block-components-main,
    .wc-block-components-sidebar {
        padding: 1.5rem;
    }
    
    .wc-block-cart-items__row td {
        padding: 1rem;
    }
    
    .wc-block-cart-item__image {
        width: 80px;
    }
    
    .wc-block-cart-item__image img {
        width: 60px;
        height: 60px;
    }
    
    .wc-block-components-product-name {
        font-size: 1rem;
    }
    
    .wc-block-cart-item__product {
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .wc-block-cart-items {
        display: block;
    }
    
    .wc-block-cart-items thead {
        display: none;
    }
    
    .wc-block-cart-items__row {
        display: block;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .wc-block-cart-items__row td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        width: 100% !important;
        text-align: left !important;
    }
    
    .wc-block-cart-item__image {
        text-align: center;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .wc-block-cart-item__total {
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f8f8f8;
    }
    
    .wc-block-cart-item__total::before {
        content: 'Total: ';
        font-weight: 500;
        color: #666;
    }
    
    .wc-block-cart-item__quantity {
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f8f8f8;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.wc-block-components-quantity-selector__button:focus,
.wc-block-cart-item__remove-link:focus,
.wc-block-cart__submit-button:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.wc-block-components-quantity-selector__input:focus {
    outline: 2px solid #333;
}
/* ========================================
   ENHANCED MOBILE RESPONSIVE DESIGN
   Better spacing and layout for mobile devices
   ======================================== */

@media (max-width: 1024px) {
    /* Force full width container on tablet */
    .woocommerce-cart,
    .woocommerce.woocommerce-cart {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Ensure cart wrapper takes full width */
    .wp-block-woocommerce-cart.alignwide,
    .wc-block-cart {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Stack layout vertically on tablet with better spacing */
    .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: #fafafa;
    }
    
    /* Main content area full width with improved spacing */
    .wc-block-components-main,
    .wc-block-cart__main,
    .wp-block-woocommerce-cart-items-block {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 2rem 1.5rem !important;
    }
    
    /* Sidebar full width with better spacing */
    .wc-block-components-sidebar,
    .wc-block-cart__sidebar,
    .wp-block-woocommerce-cart-totals-block {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        position: static !important;
        top: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Container spacing improvements */
    .wc-block-components-sidebar-layout {
        padding: 1rem !important;
        gap: 1.5rem !important;
        min-height: auto !important;
    }
    
    /* Main content spacing */
    .wc-block-components-main,
    .wc-block-components-sidebar {
        padding: 1.5rem 1rem !important;
        border-radius: 6px !important;
    }
    
    /* Empty cart tablet/mobile */
    .wc-block-cart--is-empty {
        padding: 3rem 2rem !important;
        margin: 1rem !important;
    }
    
    .wc-block-cart--is-empty h2 {
        font-size: 1.35rem !important;
        margin-bottom: 1.5rem !important;
        color: #555 !important;
    }
    
    .wc-block-cart--is-empty p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.6 !important;
        color: #777 !important;
        max-width: 500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 2rem !important;
    }
    
    /* Cart header spacing */
    .wc-block-cart-items .screen-reader-text h2,
    .wc-block-cart-items caption {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    /* Cart table row spacing */
    .wc-block-cart-items__row td {
        padding: 1.25rem 0.75rem !important;
    }
    
    /* Product image adjustments */
    .wc-block-cart-item__image {
        width: 70px !important;
        text-align: center !important;
    }
    
    .wc-block-cart-item__image img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 4px !important;
    }
    
    /* Product details spacing */
    .wc-block-components-product-name {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    .wc-block-cart-item__product {
        padding-right: 0.75rem !important;
    }
    
    /* Product metadata better spacing */
    .wc-block-components-product-metadata {
        margin-bottom: 1.25rem !important;
    }
    
    .wc-block-components-product-details li {
        padding: 0.5rem 0 !important;
        font-size: 0.85rem !important;
    }
    
    .wc-block-components-product-details__estimated-delivery-date {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Quantity selector improvements */
    .wc-block-cart-item__quantity {
        margin-top: 1rem !important;
        gap: 1rem !important;
    }
    
    .wc-block-components-quantity-selector__button {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .wc-block-components-quantity-selector__input {
        width: 55px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    /* Remove button spacing */
    .wc-block-cart-item__remove-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        margin-top: 0.25rem !important;
    }
    
    /* Totals sidebar spacing */
    .wp-block-woocommerce-cart-order-summary-heading-block {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Coupon section spacing */
    .wc-block-components-totals-coupon {
        margin-bottom: 1.25rem !important;
    }
    
    .wc-block-components-panel__button {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Totals items spacing */
    .wc-block-components-totals-item {
        padding: 1rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* Total price section */
    .wc-block-components-totals-footer-item {
        padding: 1.5rem 1.25rem !important;
        margin: 1.25rem 0 !important;
    }
    
    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        font-size: 1.25rem !important;
    }
    
    /* Express checkout spacing */
    .wc-block-components-express-payment {
        margin-bottom: 1.25rem !important;
    }
    
    .wc-block-components-express-payment__content {
        padding: 1.5rem 1.25rem !important;
    }
    
    .krisette-cart-express-checkout {
        padding: 1.5rem 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    /* Checkout button spacing */
    .wc-block-cart__submit-container {
        margin-top: 1.25rem !important;
    }
    
    .wc-block-cart__submit-button {
        padding: 1.25rem 1.5rem !important;
        font-size: 1.05rem !important;
    }
}

@media (max-width: 640px) {
    /* Container adjustments for small mobile */
    .wc-block-components-sidebar-layout {
        padding: 0.75rem !important;
        gap: 1rem !important;
    }
    
    .wc-block-components-main,
    .wc-block-components-sidebar {
        padding: 1.25rem 1rem !important;
    }
    
    /* Card-style layout for cart items */
    .wc-block-cart-items {
        display: block !important;
    }
    
    .wc-block-cart-items thead {
        display: none !important;
    }
    
    .wc-block-cart-items__row {
        display: block !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 8px !important;
        margin-bottom: 1.25rem !important;
        padding: 1.25rem !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    .wc-block-cart-items__row:hover {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }
    
    .wc-block-cart-items__row td {
        display: block !important;
        padding: 0.75rem 0 !important;
        border: none !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Product image in card layout */
    .wc-block-cart-item__image {
        text-align: center !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid #f8f8f8 !important;
    }
    
    .wc-block-cart-item__image img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Product details in card */
    .wc-block-cart-item__product {
        padding-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .wc-block-components-product-name {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center !important;
    }
    
    .wc-block-cart-item__prices {
        text-align: center !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid #f8f8f8 !important;
    }
    
    /* Metadata spacing in card */
    .wc-block-components-product-metadata {
        margin-bottom: 1.25rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid #f8f8f8 !important;
    }
    
    .wc-block-components-product-details li {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #f8f8f8 !important;
    }
    
    .wc-block-components-product-details li:last-child {
        border-bottom: none !important;
    }
    
    /* Quantity controls in card */
    .wc-block-cart-item__quantity {
        justify-content: center !important;
        margin: 1.25rem 0 !important;
        padding: 1rem 0 !important;
        border-top: 1px solid #f8f8f8 !important;
        border-bottom: 1px solid #f8f8f8 !important;
        gap: 1rem !important;
    }
    
    .wc-block-cart-item__quantity::before {
        content: 'Quantity: ' !important;
        font-weight: 500 !important;
        color: #666 !important;
        margin-right: 0.5rem !important;
    }
    
    /* Remove button in card */
    .wc-block-cart-item__remove-link {
        display: block !important;
        text-align: center !important;
        margin: 1rem auto 0 !important;
        width: fit-content !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    /* Total in card */
    .wc-block-cart-item__total {
        text-align: center !important;
        margin-top: 1.25rem !important;
        padding-top: 1.25rem !important;
        border-top: 2px solid #f0f0f0 !important;
    }
    
    .wc-block-cart-item__total::before {
        content: 'Item Total: ' !important;
        display: block !important;
        font-weight: 500 !important;
        color: #666 !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .wc-block-cart-item__total .wc-block-components-product-price__value {
        font-size: 1.25rem !important;
        font-weight: 600 !important;
    }
    
    /* Sidebar improvements for small mobile */
    .wp-block-woocommerce-cart-order-summary-heading-block {
        text-align: center !important;
        font-size: 1.15rem !important;
    }
    
    .wc-block-components-totals-item {
        padding: 1.25rem 0 !important;
        font-size: 0.95rem !important;
    }
    
    .wc-block-components-totals-footer-item {
        text-align: center !important;
        padding: 1.75rem 1.5rem !important;
    }
    
    .wc-block-components-totals-footer-item .wc-block-components-totals-item {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
        font-size: 1rem !important;
    }
    
    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        font-size: 1.5rem !important;
    }
    
    /* Express checkout mobile improvements */
    .krisette-cart-express-checkout {
        padding: 1.25rem !important;
    }
    
    .krisette-cart-express-checkout h2 {
        font-size: 1.1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    #stripe-payment-request-button-cart {
        min-height: 52px !important;
        margin: 1.25rem 0 !important;
    }
    
    /* Checkout button mobile */
    .wc-block-cart__submit-button {
        padding: 1.5rem 2rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
    
    /* Empty cart mobile */
    .wc-block-cart--is-empty {
        padding: 2.5rem 1.5rem !important;
        margin: 1rem !important;
        text-align: center !important;
    }
    
    .wc-block-cart--is-empty h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        color: #555 !important;
        font-weight: 500 !important;
    }
    
    .wc-block-cart--is-empty p {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.6 !important;
        color: #777 !important;
        max-width: 400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .wc-block-components-sidebar-layout {
        padding: 0.5rem !important;
    }
    
    .wc-block-components-main,
    .wc-block-components-sidebar {
        padding: 1rem 0.75rem !important;
    }
    
    .wc-block-cart-items__row {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .wc-block-components-product-name {
        font-size: 1rem !important;
    }
    
    .wc-block-cart-item__total .wc-block-components-product-price__value {
        font-size: 1.1rem !important;
    }
    
    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        font-size: 1.3rem !important;
    }
    
    .wc-block-cart__submit-button {
        padding: 1.25rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Empty cart for extra small mobile */
    .wc-block-cart--is-empty {
        padding: 2rem 1rem !important;
        margin: 0.5rem !important;
    }
    
    .wc-block-cart--is-empty h2 {
        font-size: 1.1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .wc-block-cart--is-empty p {
        font-size: 0.9rem !important;
        margin-bottom: 1.75rem !important;
        line-height: 1.5 !important;
        padding: 0 0.5rem !important;
    }
}