/* =========================================================
   BIG Survey - Custom Cart Page Layout (55/40 Split & Order Fix)
   ========================================================= */

/* =======================================================
   1. MAIN CONTAINER & COLUMN SPLIT
   ======================================================= */
.woocommerce-cart .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    color: #111 !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0px auto 0px auto !important;
    padding: 0 0px !important;
    box-sizing: border-box !important;
}

/* Fix WooCommerce hidden notices breaking the flex layout */
.woocommerce-notices-wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 0 !important;
}

/* Left Column (Cart Items) - 50% Width */
.woocommerce-cart-form {
    flex: 0 0 50% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
    margin: 0 !important;
}

/* Right Column (Totals) - 50% Width */
.cart-collaterals {
    flex: 0 0 50% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 2 !important;
    margin: 0 !important;
}

/* Hide standard elements & unwanted native columns */
.woocommerce-cart-form table.shop_table thead,
button[name="update_cart"],
.woocommerce-cart-form .actions .coupon,
.woocommerce-cart-form th.product-remove,
.woocommerce-cart-form td.product-remove,
.woocommerce-cart-form th.product-price,
.woocommerce-cart-form td.product-price,
.woocommerce-cart-form th.product-quantity,
.woocommerce-cart-form td.product-quantity {
    display: none !important;
}

/* Custom Header for Items List */
.bs-cart-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #111;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0;
    color: #111;
    width: 100%;
}

/* =======================================================
   2. CART ITEMS (PURE FLEXBOX ROW)
   ======================================================= */
.woocommerce-cart-form table.shop_table {
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.woocommerce-cart-form table.shop_table tr.cart_item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 30px 0 !important;
    border-bottom: 1px solid #d1d5db !important;
    background: transparent !important;
    width: 100% !important;
}

.woocommerce-cart-form table.shop_table td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Image */
.woocommerce-cart-form td.product-thumbnail {
    flex: 0 0 100px !important;
    width: 100px !important;
    margin-right: 30px !important;
}

.woocommerce-cart-form td.product-thumbnail img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

/* Name Cell */
.woocommerce-cart-form td.product-name {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    min-width: 0 !important;
}

.woocommerce-cart-form td.product-name > a:first-child {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: block !important;
}

.woocommerce-cart-form td.product-name > a:first-child:hover {
    color: #2196F3 !important;
}

.bs-custom-price {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
}

.woocommerce-cart-form dl.variation,
ul.wc-item-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    font-size: 13px !important;
    color: #555 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-cart-form dl.variation dt,
ul.wc-item-meta li strong {
    font-weight: 600 !important;
    color: #111 !important;
}

.woocommerce-cart-form dl.variation dd,
ul.wc-item-meta li {
    margin: 0 !important;
}

/* Quantity Box */
.bs-cart-qty-wrap {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #777 !important;
    border-radius: 4px !important;
    height: 38px !important;
    width: 100px !important;
    background: #fff !important;
    margin-top: 6px !important;
}

.bs-cart-qty-btn {
    width: 32px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    color: #111 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    outline: none !important;
}

.bs-cart-qty-btn:hover {
    background: #f0f0f0 !important;
    color: #FFCC00 !important;
}

.woocommerce-cart-form td.product-name input.qty {
    width: 36px !important;
    height: 100% !important;
    text-align: center !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid #777 !important;
    border-right: 1px solid #777 !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    -moz-appearance: textfield !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.woocommerce-cart-form td.product-name input.qty::-webkit-outer-spin-button,
.woocommerce-cart-form td.product-name input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bs-custom-remove {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
    margin-top: 4px !important;
    display: inline-block !important;
}

.bs-custom-remove:hover {
    color: #e74c3c !important;
}

/* Subtotal Cell */
.woocommerce-cart-form td.product-subtotal {
    flex: 0 0 auto !important;
    text-align: right !important;
    padding-left: 20px !important;
}

.woocommerce-cart-form td.product-subtotal .amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* =======================================================
   3. RIGHT COLUMN (TOTALS & COUPON)
   ======================================================= */
.cart_totals h2 {
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #111 !important;
    border-bottom: 1px solid #111 !important;
    padding-bottom: 12px !important;
    margin: 0 0 24px 0 !important;
}

/* Coupon Accordion */
.bs-coupon-section {
    margin-bottom: 24px;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 24px;
}

.bs-coupon-toggle {
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #111 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.bs-coupon-toggle svg {
    transition: transform 0.3s ease;
}

.bs-coupon-toggle.active svg {
    transform: rotate(180deg);
}

.bs-coupon-content {
    display: none;
    margin-top: 16px;
}

.bs-coupon-content .coupon {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.bs-coupon-content input.input-text {
    flex: 1 1 auto !important;
    height: 48px !important;
    border: 1px solid #111 !important;
    border-radius: 4px !important;
    padding: 0 16px !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    color: #111 !important;
    box-shadow: none !important;
    width: 100% !important;
}

.bs-coupon-content button.button {
    flex: 0 0 auto !important;
    height: 48px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0 24px !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.bs-coupon-content button.button:hover {
    background: #333 !important;
}

/* Totals Table */
.cart_totals table.shop_table {
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
    display: block !important;
}

.cart_totals table.shop_table tbody {
    display: block !important;
    width: 100% !important;
}

.cart_totals table.shop_table tr {
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    width: 100% !important;
}

.cart_totals table.shop_table th {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    width: auto !important;
}

.cart_totals table.shop_table td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-align: right !important;
    width: auto !important;
}

.cart_totals .cart-discount th {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

.cart_totals .cart-discount th .woocommerce-remove-coupon {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
}

.cart_totals .order-total {
    border-top: 1px solid #111 !important;
    margin-top: 8px !important;
    padding-top: 24px !important;
    border-bottom: none !important;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 24px !important;
}

.wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 54px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin: 0 !important;
    text-transform: none !important;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background: #333 !important;
}

.woocommerce-shipping-calculator {
    display: none !important;
}

.woocommerce-message {
    border-top-color: #27ae60 !important;
}

/* =======================================================
   4. MOBILE RESPONSIVENESS
   ======================================================= */
@media (max-width: 1024px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column !important;
        gap: 40px !important;
        padding: 0 20px !important;
    }

    .woocommerce-cart-form {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        order: 1 !important;
    }

    .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        order: 2 !important;
    }
}

@media (max-width: 768px) {
    .bs-cart-header {
        display: none !important;
    }

    .woocommerce-cart-form table.shop_table tr.cart_item {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }

    .woocommerce-cart-form td.product-thumbnail {
        width: 80px !important;
        flex: 0 0 80px !important;
        margin-right: 16px !important;
    }

    .woocommerce-cart-form td.product-name > a:first-child {
        font-size: 15px !important;
    }

    .woocommerce-cart-form td.product-subtotal {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px dashed #e2e2e2 !important;
        padding-top: 16px !important;
        margin-top: 8px !important;
    }

    .woocommerce-cart-form td.product-subtotal::before {
        content: "Total:" !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #111 !important;
        display: block !important;
    }
}