/* Main Layout: Two Columns */
.mcc-cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.mcc-cart-items-column {
    flex: 1 1 60%;
}

.mcc-cart-totals-column {
    flex: 1 1 30%;
    min-width: 300px;
}

/* Cart Header */
.mcc-cart-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Individual Cart Item */
.mcc-cart-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eaeaea;
    padding: 25px 0;
    gap: 20px;
}

.mcc-item-image img {
    width: 100px;
    height: auto;
    object-fit: cover;
}

/* Item Details */
.mcc-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mcc-product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.mcc-product-price {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}

.qib-button-wrapper.qib-button-wrapper-0 {
    border: 1px solid 
color-mix(in srgb, currentColor 30%, transparent);
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    position: relative;
    width: 107px;
}

.qib-button-wrapper.qib-button-wrapper-0 button {
    background: none transparent !important;
    border: 0 !important;
    box-shadow: none;
    color: currentColor !important;
    cursor: pointer !important;
    font-size: .9em !important;
    font-style: normal;
    font-weight: 400;
    margin: 0px !important;
    min-width: 15px !important;
    opacity: .6;
    padding: 0 !important;
    text-align: center;
    text-decoration: none;
    border-radius: 4px 0 0 4px !important;
}

.qib-button-wrapper .quantity input.input-text.qty.text {
    appearance: textfield;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: currentColor;
    flex: 1 1 auto;
    font-size: var(--wp--preset--font-size--small, 14px) !important;
    line-height: 1.4 !important;
    margin: 0;
    min-width: 40px;
    order: 2;
    padding: .4em 0 !important;
    text-align: center;
    vertical-align: middle;
}

.mcc-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Trash Icon Styling */
.mcc-remove-btn a {
    color: #888;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.mcc-remove-btn a:hover {
    color: #d9534f;
    background: transparent;
}

.mcc-remove-btn svg {
    fill: #686868;
    width: 20px;
}

input#coupon_code {
    font-size: 14px;
    font-weight: 500;
}

button.button[name="apply_coupon"] {
    background-color: #000 !important;
    color: #fff !important;
    text-align: center;
    display: block;
    padding: 18px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    text-transform: none;
    transition: background 0.3s ease !important;
}

/* Right Side Item Total */
.mcc-item-subtotal {
    font-size: 16px;
    color: #666;
    text-align: right;
}

/* Remove default WooCommerce table from Cart Totals */
.mcc-cart-totals-column .cart_totals table {
    border: none;
    width: 100%;
}

.mcc-cart-totals-column .cart_totals th,
.mcc-cart-totals-column .cart_totals td {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    background: transparent;
}

/* --- CART TOTALS SECTION --- */

/* The Box */
.mcc-totals-box-wrapper {
    border: 1px solid #dcdcdc;
    padding: 30px;
    background-color: #fff;
    margin-bottom: 20px;
}

/* Heading */
.mcc-totals-heading {
    font-size: 13px !important;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Coupon Toggle */
.mcc-coupon-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    color: #666;
    font-size: 15px;
    transition: color 0.3s ease;
}

.mcc-coupon-toggle:hover {
    color: #000;
}

/* Coupon Input Form Area */
.mcc-custom-coupon-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mcc-custom-coupon-form input.input-text {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
}

.mcc-custom-coupon-form button.button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
}

.mcc-total-row {
    display: flex;
    justify-content: space-between;
}

/* Estimated Total */
.mcc-estimated-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.mcc-total-label {
    font-size: 18px;
    color: #555;
}

.mcc-total-row {
    margin-top: 9px;
}

.mcc-custom-totals-area * {
    font-weight: 400;
    font-size: 15px;
}

.mcc-total-row.coupon {
    display: flex;
    justify-content: space-between;
}

.mcc-total-amount bdi {
    font-size: 22px;
    color: #333;
    font-weight: normal;
}

/* --- CHECKOUT BUTTON --- */
.mcc-checkout-btn-wrap a.checkout-button {
    background-color: #000 !important;
    color: #fff !important;
    text-align: center;
    display: block;
    width: 100%;
    padding: 18px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    /* Square corners */
    text-transform: none;
    transition: background 0.3s ease !important;
}

.mcc-checkout-btn-wrap a.checkout-button:hover {
    background-color: #333 !important;
}

/* Hide WooCommerce default totals table if it tries to render inside */
.mcc-totals-box-wrapper table.shop_table {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mcc-cart-container {
        flex-direction: column;
    }
	
	.mcc-cart-items-column {
    flex: 1 1 100%;
    width: 100%;
}
	
	.mcc-cart-item {
		align-items: center;
		text-align: left;
	}
	
	.mcc-item-title-price a.mcc-product-name {
   		 font-size: 12px;
	}

	.mcc-item-actions {
		display: flex;
		align-items: center;
		gap: 0;
		margin-top: 0;
}

    .mcc-item-actions {
        justify-content: left;
    }
	
	.mcc-total-row {
   		 margin-top: 13px;
	}
	
	.mcc-custom-totals-area * {
		font-weight: 400;
		font-size: 13px;
	}
	
	.mcc-totals-box-wrapper {
 	   padding: 16px !important;
	}
	
	.mcc-cart-totals-column {
		flex: 1 1 100%;
		min-width: 300px;
		width: 100%;
	}
	
	.mcc-cart-header {
    	margin-bottom: 0 !important;
	}
}