.touchpro-quick-order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.touchpro-quick-order-content {
    background: #fff;
    padding: 2px;
    border-radius: 5px;
    width: 800px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Cho phép cuộn trên mobile */
@media screen and (max-width: 768px) {
    .touchpro-quick-order-content {
        max-height: 90vh; /* Giới hạn chiều cao tối đa là 90% chiều cao viewport */
        overflow-y: auto; /* Cho phép cuộn dọc khi nội dung vượt quá chiều cao */
    }
}

.touchpro-quick-order-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    border-radius: 4px;
    padding: 2px;
}

.touchpro-quick-order-content h3 {
    /* color: #fff; */
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    /* background-color: #003d7a; */
    padding: 10px 0;
    text-transform: uppercase;
    /* border-top: 2px solid #333; */
    /* border-bottom: 2px solid #333; */
}

.touchpro-quick-order-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Giao diện desktop (màn hình lớn hơn 768px) */
.touchpro-product-info {
    width: 45%;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.touchpro-product-info img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.touchpro-product-info h4 {
    font-size: 18px;
    color: #9b3e3c;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 3px 3px 5px #333;
    margin: 10px 0 5px;
}

.touchpro-product-info .original-price {
    font-size: 30px;
    font-weight: bold;
    color: #E5322D;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 3px 3px 5px #333;
}

.touchpro-product-info .original-price .currency-symbol {
    font-size: 14px;
    vertical-align: baseline;
    margin-left: 2px;
}

.touchpro-product-info .discounted-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
}

.touchpro-product-info .discounted-price .currency-symbol {
    font-size: 12px;
    vertical-align: baseline;
    margin-left: 2px;
}

.touchpro-product-info .quantity {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.touchpro-product-info .quantity span {
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}

.touchpro-product-info .quantity #quantity-input {
    width: 40px;
    height: 30px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
    margin-left: -15px;
}

.touchpro-product-info .quantity .quantity-btn {
    width: 30px;
    height: 30px;
    background: #004d99;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 15px;
}

.touchpro-product-info .quantity .quantity-btn:hover {
    background: #003d7a;
}

.touchpro-product-info select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 5px 0;
}

.touchpro-customer-info {
    width: 50%;
    padding: 10px;
}

.touchpro-customer-info input[type="text"],
.touchpro-customer-info input[type="tel"],
.touchpro-customer-info input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.touchpro-customer-info input::placeholder {
    color: #999;
    font-size: 14px;
    opacity: 1; /* Đảm bảo placeholder rõ ràng */
}

.touchpro-customer-info textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.touchpro-customer-info textarea::placeholder {
    color: #999;
    font-size: 14px;
    opacity: 1; /* Đảm bảo placeholder rõ ràng */
}

.name-phone-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.name-field, .phone-field {
    flex: 1;
}

.payment-methods {
    margin-bottom: 10px;
}

.payment-methods input[type="radio"] {
    margin-right: 5px;
}

.payment-methods label {
    font-weight: normal;
    margin-bottom: 5px;
}

.coupon-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.coupon-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#check-coupon-btn.apply-coupon-btn {
    background: #ff7f50;
    color: #fff;
    border: none;
    /* padding: 8px 15px; */
    cursor: pointer;
    border-radius: 4px;
}

#check-coupon-btn.apply-coupon-btn:hover {
    background: #e67e22;
}

.touchpro-customer-info .submit-order-btn {
    width: 100%;
    background: #004d99;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.touchpro-customer-info .submit-order-btn:hover {
    background: #003d7a;
}

#coupon-result,
#touchpro-quick-order-response {
    margin-top: 10px;
    font-size: 14px;
}

#coupon-result p {
    margin: 5px 0;
}

#coupon-result p.green {
    color: green;
}

#coupon-result p.red {
    color: red;
}

.touchpro-quick-order-btn {
    margin-top: 10px;
    background: #004d99;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.touchpro-quick-order-btn:hover {
    background: #003d7a;
}

#total-amount .currency-symbol {
    font-size: 14px;
    vertical-align: baseline;
    margin-left: 2px;
}

/* Giao diện mobile (màn hình nhỏ hơn hoặc bằng 768px) */
@media screen and (max-width: 768px) {
    .touchpro-quick-order-content {
        max-height: 90vh; /* Giới hạn chiều cao tối đa là 90% chiều cao viewport */
        overflow-y: auto; /* Cho phép cuộn dọc khi nội dung vượt quá chiều cao */
    }

    .touchpro-quick-order-container {
        flex-direction: column;
        gap: 15px;
    }

    .touchpro-product-info,
    .touchpro-customer-info {
        width: 100%;
        padding: 5px;
    }

    .touchpro-product-info img {
        margin-bottom: 5px;
    }

    .touchpro-product-info .quantity {
        margin: 5px 0;
    }

    .touchpro-customer-info input[type="text"],
    .touchpro-customer-info input[type="tel"],
    .touchpro-customer-info input[type="email"],
    .touchpro-customer-info textarea {
        margin-bottom: 5px;
    }

    .payment-methods {
        margin-bottom: 5px;
    }

    .coupon-input {
        margin-bottom: 5px;
    }

    .touchpro-customer-info .submit-order-btn {
        margin-top: 5px;
    }
}