/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Layout hai cột cho trang giỏ hàng */
.woocommerce-cart .woocommerce-cart-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.woocommerce-cart-form__cart-item.cart_item {
    position: relative;
}

.woocommerce-cart .cart-left {
    flex: 1 1 65%;
    /* Bảng sản phẩm rộng hơn */
    min-width: 300px;
}

.woocommerce-cart .cart-right {
    flex: 1 1 32%;
    /* Phần tổng cộng hẹp hơn */
    min-width: 280px;
    border-left: 1px solid #ddd;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    padding: 0px 20px;
}

.cart.cart_totals h2 {
    margin: 0;
    letter-spacing: .05em;
    line-height: 1.05;
    text-transform: uppercase;
    font-size: 15px;
    text-align: left;
    padding: 5px 0px;
    border-bottom: 3px solid #ececec;
}

.shop_table.shop_table_responsive th,
.shop_table.shop_table_responsive td {
    font-weight: normal !important;

}

.cart_totals .shop_table.shop_table_responsive td {
    text-align: right;
}

/* Làm cho nút "TIẾN HÀNH THANH TOÁN" nổi bật */
.checkout-buttons.wc-forward {
    background: #d45a2e !important;
    /* màu cam giống hình */
    color: #fff !important;
    width: 100%;
    padding: 10px 20px;
    font-weight: 600;
    text-align: center;
    display: block;
    margin-top: 0px;
    display: block;
    text-decoration: none;
}

.discount-code .widget-title {
    border-bottom: 3px solid #ececec;
    font-size: .95em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: #3f3b3b;
}

.discount-code .widget-title i {
    color: #3f3b3b;
}

.discount-code form input {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 0px;
    margin-bottom: 15px;
}

.discount-code form button {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #666;
    font-weight: 400;
    overflow: hidden;
    border-radius: 5px;
    padding: 10px 20px;
    width: 100%;
    position: relative;
    text-shadow: 1px 1px 1px #fff;
    text-transform: none;
}




.woocommerce table.shop_table {
    border: none;
}

/* Cải thiện bảng sản phẩm */
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    padding: 15px 10px;
    vertical-align: middle;
}

.woocommerce-cart table.shop_table td {
    font-size: .9em;
    line-height: 1.3;
}

.woocommerce-cart .product-thumbnails {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-cart table.cart img {
    width: 70px !important;
    min-width: 50px;
}

.woocommerce-cart .product-thumbnails .remove {
    color: #ccc !important;
}

.woocommerce-cart-form__cart-item.cart_item span.amount {
    color: #111;
    font-weight: 700;
    white-space: nowrap;
}

.product-thumbnails a {
    color: #055ac0 !important;
    text-decoration: none !important;
}

.product-thongtin #minus,
.product-thongtin #plus {
    padding: 0px 0px !important;
    width: 30px;
}

.product-thongtin .qty {
    padding: 5px 0px !important;
    width: 30px !important;
}

.product-subtotal {
    text-align: center;
}

.actionssss {
    display: flex;
    gap: 20px;
    align-items: center;
}

.continue-shopping a {
    color: #125aa5;
    background-color: transparent;
    border: 2px solid;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline;
    white-space: nowrap;

}

.continue-shopping a:hover {
    background-color: #125aa5;
    color: #fff;
}

.actionssss .buttonss {
    background-color: #125aa5 !important;
    border-color: rgba(0, 0, 0, .05);
    color: #fff;
    font-weight: bolder;
    padding: 10px 20px;
}

/* nếu là trạng thái disable thì thêm opaccity */
.actionssss .buttonss[disabled] {
    opacity: 0.5;
}

.actionssss .buttonss:hover {
    background-color: #125aa5 !important;
    border-color: rgba(0, 0, 0, .05);

}


.mobile-qty-price {
    display: none;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.cart-name-right {
    display: flex;
    flex-direction: column;
}

.cart-name-right .product-name {
    font-weight: normal !important;
}

@media (max-width: 1024px) {
    .actionssss {
        flex-direction: column;
        gap: 15px;
        flex-direction: column-reverse;
        align-items: start;
    }

    .continue-shopping a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .actionssss .buttonss {
        padding: 6px 12px;
    }
}


@media (max-width: 992px) {
    .woocommerce-cart .woocommerce-cart-layout {
        flex-direction: column;
    }

    .woocommerce-cart .cart-left,
    .woocommerce-cart .cart-right {
        flex: 1 1 100%;
    }

    .woocommerce-cart .cart-right {
        border-left: 1px solid #ddd;
    }
}

@media (max-width: 768px) {

    .cart-mobile {
        display: none;
    }

    .mobile-qty-price {
        display: block;
    }
}

@media (max-width: 600px) {

    .woocommerce table.shop_table th {
        font-size: 12px;
    }


}

@media (max-width: 450px) {
    .mobile-qty-price {
        font-size: 12px;
    }

    .cart-name-right .product-name {
        font-size: 13px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .product-thumbnails {
        position: relative;

    }

    .woocommerce-cart .product-thumbnails .remove {
        position: absolute;
        top: 39%;
        transform: translate(50%);
        right: 10px;
    }

    .product-thongtin .qty {
        padding: 1px 0px !important;
        width: 20px !important;
    }

    .product-thongtin #minus,
    .product-thongtin #plus {
        padding: 0px 0px !important;
        width: 22px;
        font-size: 15px;
    }

    .woocommerce table.shop_table th {
        white-space: nowrap;
    }

    .woocommerce-cart table.shop_table th, .woocommerce-cart table.shop_table td {
        padding: 10px 6px;
        vertical-align: middle;
    }
    
    
}