@charset "utf-8";

/* ==========================================================================
   1. BỘ NÚT TĂNG GIẢM SỐ LƯỢNG (Chỉ áp dụng trong .cartlist_sp)
   ========================================================================== */

/* Khối bao quanh bộ tăng giảm dạng DỌC */
.cartlist_sp .qty-wrapper {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 1px solid #cccccc;
    border-radius: 3px;
    overflow: hidden;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Kiểu dáng cho Nút Tăng (+) và Nút Giảm (-) */
.cartlist_sp .qty-wrapper .value-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 20px !important;
    background-color: #008CBA !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    outline: none;

    /* Triệt tiêu giao diện mặc định trên iPhone/Safari */
    -webkit-appearance: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box !important;
}

.cartlist_sp .qty-wrapper .value-button:hover {
    background-color: #006b8f !important;
}

/* Ô nhập số lượng ở giữa */
.cartlist_sp .qty-wrapper input.number-incre-decre {
    width: 100% !important;
    height: 22px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #222222 !important;
    background-color: #ffffff !important;
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none;

    /* Tương thích Safari iOS & loại bỏ mũi tên spin mặc định */
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

/* Xóa 2 mũi tên tăng giảm nhỏ mặc định của ô input number trong giỏ hàng */
.cartlist_sp input[type=number]::-webkit-inner-spin-button,
.cartlist_sp input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   2. THU GỌN HÀNG VÀ Ô CỦA BẢNG GIỎ HÀNG (CHỈ TÁC DỤNG LÊN .cartlist_sp)
   ========================================================================== */

/* Khống chế chiều cao và padding CHỈ TRONG BẢNG GIỎ HÀNG .cartlist_sp */
.cartlist_sp td, 
.cartlist_sp th {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    vertical-align: middle !important;
    height: auto !important;
}

/* Ép các dòng (tr) thu gọn vừa sát với nội dung */
.cartlist_sp tr {
    height: auto !important;
}

/* Tối ưu khoảng cách dòng của Tên Sản Phẩm */
.cartlist_sp td a {
    line-height: 1.3 !important;
    display: inline-block;
}