/* Custom WooCommerce Cart Page Styles */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    max-width: 1440px;
    margin: 50px auto 70px auto;
    font-family: 'Inter', sans-serif;
}

.woocommerce-cart .ct-container, 
.woocommerce-cart [data-layout] {
    max-width: 1440px !important;
}

.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 800px;
    max-width: 950px;
}

.woocommerce-cart .cart-collaterals {
    flex: 1 1 400px;
    max-width: 445px;
    background: #F6F6F6;
    border-radius: 15px;
    padding: 30px;
}

/* Cart Table Styling */
.woocommerce table.shop_table.cart {
    border: none;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.woocommerce table.shop_table.cart thead th {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #041F2B;
    border: none;
    padding: 15px 24px;
    background: #F6F6F6;
}

.woocommerce table.shop_table.cart thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.woocommerce table.shop_table.cart thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.woocommerce table.shop_table.cart tbody tr.cart_item {
    background: #FFFFFF;
    box-shadow: none;
}

.woocommerce table.shop_table.cart td {
    padding: 24px;
    border-top: 1px solid #E4E4E4;
    border-bottom: 1px solid #E4E4E4;
    vertical-align: middle;
}

.woocommerce table.shop_table.cart td:first-child {
    border-left: 1px solid #E4E4E4;
    border-top-left-radius: 21px;
    border-bottom-left-radius: 21px;
}

.woocommerce table.shop_table.cart td:last-child {
    border-right: 1px solid #E4E4E4;
    border-top-right-radius: 21px;
    border-bottom-right-radius: 21px;
}

/* "Course Details" Column */
.woocommerce table.shop_table.cart td.product-thumbnail {
    width: 100px;
}
.woocommerce table.shop_table.cart td.product-thumbnail img {
    border-radius: 12px;
    width: 83px;
    height: 75px;
    object-fit: cover;
}
.woocommerce table.shop_table.cart td.product-name a {
    color: #041F2B;
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
}
.woocommerce table.shop_table.cart td.product-price {
    font-size: 20px;
    color: #041F2B;
}
.woocommerce table.shop_table.cart td.product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E4E4E4;
    border-radius: 20px;
    padding: 5px 15px;
    background: #FFFFFF;
}

.woocommerce table.shop_table.cart td.product-quantity .quantity .qty {
    width: 40px;
    padding: 0;
    text-align: center;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 500;
    color: #5A6261;
    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce table.shop_table.cart td.product-quantity .quantity .qty::-webkit-outer-spin-button,
.woocommerce table.shop_table.cart td.product-quantity .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce table.shop_table.cart td.product-quantity .quantity .qty-minus,
.woocommerce table.shop_table.cart td.product-quantity .quantity .qty-plus {
    cursor: pointer;
    font-size: 18px;
    color: #9A9A9A;
    background: transparent;
    border: none;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce table.shop_table.cart td.product-quantity .quantity .qty-minus:hover,
.woocommerce table.shop_table.cart td.product-quantity .quantity .qty-plus:hover,
.woocommerce table.shop_table.cart td.product-quantity .quantity .qty-minus:focus,
.woocommerce table.shop_table.cart td.product-quantity .quantity .qty-plus:focus,
.woocommerce table.shop_table.cart td.product-quantity .quantity .minus:hover,
.woocommerce table.shop_table.cart td.product-quantity .quantity .plus:hover,
.woocommerce table.shop_table.cart td.product-quantity .quantity .minus:focus,
.woocommerce table.shop_table.cart td.product-quantity .quantity .plus:focus,
.woocommerce table.shop_table.cart td.product-quantity .quantity button:hover,
.woocommerce table.shop_table.cart td.product-quantity .quantity input[type="button"]:hover {
    color: #9A9A9A !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove button */
.woocommerce table.shop_table.cart td.product-remove {
    text-align: right;
}
.woocommerce table.shop_table.cart td.product-remove a.remove-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #F40E39 !important;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}
.woocommerce table.shop_table.cart td.product-remove a.remove-action-btn:hover {
    color: #d10a30 !important;
}
.woocommerce table.shop_table.cart td.product-remove a.remove-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Order Summary */
.cart_totals h2 {
    font-size: 18px;
    font-weight: 600;
    color: #041F2B;
    text-transform: uppercase;
    margin-bottom: 35px;
    padding-bottom: 0;
    border-bottom: none;
}

.custom-coupon-section .coupon-title {
    font-size: 14px;
    color: #5A6261;
    margin-bottom: 15px;
    font-weight: 500;
}

.custom-coupon-section .coupon {
    display: flex;
    background: #fff;
    border: 1px solid #E4E4E4;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 25px;
}

.custom-coupon-section .coupon input.input-text {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    color: #9A9A9A;
    background: transparent;
    box-shadow: none;
}
.custom-coupon-section .coupon input.input-text:focus {
    outline: none;
    box-shadow: none;
}

.custom-coupon-section .coupon button.button {
    background: #041F2B;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-transform: none;
}
.custom-coupon-section .coupon button.button:hover {
    background: #021219;
}

/* Badges */
.cart-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.cart-badges .badge {
    background: #fff;
    border: 1px solid #E4E4E4;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 15px;
    color: #9A9A9A;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Totals Table */
.cart_totals table.shop_table {
    border: none;
    background: transparent;
    border-radius: 0;
    margin: 0;
}
.cart_totals table.shop_table th {
    font-weight: 500;
    color: #9A9A9A;
    font-size: 15px;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #E8E8E8;
}
.cart_totals table.shop_table td {
    text-align: right;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #E8E8E8;
}
.cart_totals table.shop_table tr.cart-subtotal th {
    color: #9A9A9A;
}
.cart_totals table.shop_table tr.order-total th {
    color: #041F2B;
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
}
.cart_totals table.shop_table tr.order-total td {
    color: #31CCF3;
    font-size: 16px;
    font-weight: 500;
    border-bottom: none;
}

.cart_totals .tax-disclaimer {
    font-size: 14px;
    color: #5A6261;
    margin: 15px 0 30px;
    text-align: left;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    padding: 0;
}
.wc-proceed-to-checkout a.checkout-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #041F2B;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.wc-proceed-to-checkout a.checkout-button:hover {
    background: #021219;
}
.wc-proceed-to-checkout a.checkout-button::after {
    content: "➔";
    font-size: 18px;
}

/* Cart Hero Section Full Width Hack */
.woocommerce-cart .cart-hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 1;
}


