/* ==========================================
   YALVENA CART
========================================== */

/* MAIN LAYOUT */

.woocommerce-cart .woocommerce{
    max-width:1400px;
    width:100%;
    margin:50px auto;
    padding:0 20px;

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
}

/* LEFT */

.woocommerce-cart-form{
    flex:1 1 auto;
    min-width:0;
}

/* RIGHT */

.cart-collaterals{
    flex:0 0 360px;
    width:360px !important;
    min-width:360px;
    max-width:360px;
    float:none !important;
}

/* Remove WooCommerce float */

.cart_totals{
    float:none !important;
    width:100% !important;
}


/* ==========================================
   PRODUCT TABLE
========================================== */

.shop_table{
    width:100%;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    border:none !important;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.shop_table th{
    background:#faf7f6;
    padding:18px;
    border:none;
    font-size:15px;
    font-weight:600;
    text-transform:uppercase;
}

.shop_table td{
    padding:24px 18px;
    border:none !important;
    vertical-align:middle;
}

.shop_table tbody tr{
    border-bottom:1px solid #f3f3f3;
}

.shop_table tbody tr:last-child{
    border-bottom:none;
}

/* Product */

.product-remove{
    width:40px;
}

.product-thumbnail{
    width:90px;
}

.product-thumbnail img{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:14px;
}

.product-name{
    width:42%;
}

.product-name a{
    color:#111;
    text-decoration:none;
    font-size:17px;
    font-weight:600;
    line-height:1.5;
}

.product-price,
.product-subtotal{
    white-space:nowrap;
    font-weight:600;
    font-size:17px;
}

.product-quantity{
    width:80px;
}

.product-quantity input{
    width:60px;
}


/* ==========================================
   COUPON
========================================== */

.coupon{
    display:flex;
    align-items:center;
    gap:15px;
}

.coupon input{
    height:48px;
    border-radius:12px;
    border:1px solid #eee;
}

.coupon button,
button[name="update_cart"]{
    background:#D8B7B3 !important;
    color:#fff !important;
    border:none;
    border-radius:14px;
    padding:14px 28px;
}

button[name="update_cart"]{
    float:right;
}


/* ==========================================
   CART TOTALS
========================================== */

.cart_totals{
    width:100% !important;
    background:#fff;
    border-radius:22px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    box-sizing:border-box;
}

.cart_totals h2{
    font-size:34px;
    font-weight:700;
    margin-bottom:30px;
    color:#111;
}

/* Table */

.cart_totals table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.cart_totals table tr{
    border-bottom:1px solid #f2f2f2;
}

.cart_totals table th,
.cart_totals table td{
    padding:18px 0;
    vertical-align:top;
    font-size:17px;
}

.cart_totals table th{
    width:38%;
    text-align:left;
    font-weight:600;
    color:#222;
}

.cart_totals table td{
    width:62%;
    text-align:right;
    font-weight:600;
    color:#222;
    word-break:normal;
    overflow-wrap:break-word;
}

/* Shipping */

.cart_totals .woocommerce-shipping-methods{
    list-style:none;
    padding:0;
    margin:0;
}

.cart_totals .woocommerce-shipping-methods li{
    display:flex;
    justify-content:flex-end;
}

.cart_totals .shipping-calculator-button{
    display:block;
    text-align:right;
    margin-top:10px;
}

/* Total Row */

.order-total th,
.order-total td{
    font-size:22px !important;
    font-weight:700;
}

/* Checkout */

.wc-proceed-to-checkout{
    margin-top:30px;
}

.checkout-button{
    width:100%;
    background:#D8B7B3 !important;
    color:#fff !important;
    border-radius:16px !important;
    padding:18px;
    font-size:18px;
    font-weight:600;
}



/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px){

/* Stack Layout */
.woocommerce-cart .woocommerce{
    display:block;
    padding:0 15px;
}

.woocommerce-cart-form,
.cart-collaterals{
    width:100% !important;
    max-width:100%;
    min-width:100%;
}

.cart-collaterals{
    margin-top:30px;
}

/* Product Table */
.shop_table{
    display:block;
    overflow-x:auto;
}

.shop_table th,
.shop_table td{
    padding:12px;
}

.product-thumbnail img{
    width:70px;
    height:70px;
}

.product-name{
    width:auto;
}

.product-name a{
    font-size:15px;
}

/* Coupon */
.coupon{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.coupon input,
.coupon button,
button[name="update_cart"]{
    width:100%;
}

/* Cart Totals */
.cart_totals{
    width:100%;
    padding:20px;
}

.cart_totals h2{
    font-size:34px;
    margin-bottom:20px;
}
/* Cart Totals Mobile */

.cart_totals{
    width:100%;
    padding:20px;
}

.cart_totals h2{
    font-size:30px;
}

.cart_totals table{
    width:100%;
}

.cart_totals table th{
    width:40%;
    text-align:left;
    font-size:16px;
}

.cart_totals table td{
    width:60%;
    text-align:right;
    font-size:16px;
}

.checkout-button{
    width:100%;
}

}

/* ==========================================
   FORCE NORMAL CART TOTALS TABLE ON MOBILE
========================================== */

@media (max-width:768px){

.cart_totals table.shop_table_responsive,
.cart_totals table.shop_table_responsive tbody{
    display:table !important;
    width:100%;
}

.cart_totals table.shop_table_responsive tr{
    display:table-row !important;
}

.cart_totals table.shop_table_responsive th,
.cart_totals table.shop_table_responsive td{
    display:table-cell !important;
    width:auto !important;
    text-align:left;
    padding:18px 0 !important;
}

.cart_totals table.shop_table_responsive td{
    text-align:right !important;
}

.cart_totals table.shop_table_responsive td::before{
    display:none !important;
}

}