/**
 * WooCommerce Blocks Customization Styles (ISCF)
 * 
 * Clean, row-based layout for the cart page.
 * Supports both modern Cart Block and traditional Cart Table.
 */

/* Hide standard block only when custom layout is successfully rendered */
.wss-custom-cart-active .wc-block-components-sidebar-layout,
.wss-custom-cart-active .shop_table.cart,
.wss-custom-cart-active .cart-collaterals,
.wss-custom-cart-active .woocommerce-cart-form__contents {
    display: none !important;
}

.wp-block-woocommerce-cart,
.woocommerce-cart-form {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 3rem 1rem !important;
}

/* =====================================================================
   Custom Layout Rebuild (For Blocks)
   ===================================================================== */

/* Custom Grid Layout */
@media (min-width: 992px) {
    .wss-custom-cart-wrapper {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 5rem;
        align-items: start;
    }
}

.wss-cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
    gap: 4rem;
}

.wss-cart-item-image {
    flex-shrink: 0;
    width: 150px;
}

.wss-cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wss-cart-item-content {
    flex: 1;
    text-align: left;
}

.wss-cart-item-total-price {
    flex-shrink: 0;
    width: 150px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: right;
    color: #000;
}

.wss-cart-item-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    color: #000;
}

/* Vertical List - Unified Meta and Pricing */
.wss-cart-item-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Tightened space between lines */
}

.wss-cart-item-metadata-group {
    margin-bottom: 1.25rem; /* Space between meta and pricing */
}

.wss-detail-item {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.2; /* Tightened line height */
    padding: 0 !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
}

.wss-detail-item strong {
    font-weight: 700;
    color: #000;
    margin-right: 0.5rem;
}

.wss-item-actions {
    margin-top: 2rem;
}

.wss-remove-link {
    color: #d32f2f;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

/* =====================================================================
   Summary Sidebar
   ===================================================================== */

.wss-summary-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #000;
}

.wss-summary-label {
    font-size: 1.25rem;
    font-weight: 800;
}

.wss-summary-value {
    font-size: 1.75rem;
    font-weight: 900;
}

.wss-checkout-btn {
    display: block !important;
    width: 100%;
    padding: 1.25rem;
    background: var(--green);
    color: #fff !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
}

.wss-checkout-btn:hover {
    background: var(--blue);
}
