/* ০. কুইক অর্ডার বাটন স্টাইল (Dynamic - সব কিছু Settings থেকে কন্ট্রোল হবে) */
.mqo-quick-order-btn {
    /* background, color, font-size, width - সব dynamic হবে inline CSS দিয়ে */
    
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.mqo-quick-order-btn:hover {
    opacity: 0.85 !important;
}

.mqo-quick-order-btn:active {
    opacity: 0.7 !important;
}

.mqo-quick-order-btn svg {
    flex-shrink: 0;
}

/* ১. পপআপ মেইন কন্টেইনার */
#mqo_wrap_container {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ২. ইনার বক্স ডিজাইন (অরিজিনাল শ্যাডো এবং সাইজ) */
.mqo_inner_box_large {
    background: #fff;
    width: 100%;
    max-width: 520px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

/* ৩. টাইটেল এবং ক্লোজ বাটন */
.mqo-title {
    font-size: 18px;
    max-width:80%;
    justify-self:center;
    font-weight: 600;
    text-align: center;
    margin: 0 0 20px 0;
    color: #333;
}

#mqo_dismiss_btn {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 32px;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
    font-weight: 300;
}

#mqo_dismiss_btn:hover {
    color: #333;
}

/* ৪. ইনপুট গ্রুপ এবং আইকন স্টাইল */
.mqo_input_group_icon {
    position: relative;
    margin-bottom: 15px;
}

.mqo-icon {
    position: absolute;
    left: 15px;
    top: 14px;
    font-size: 20px;
    z-index: 1;
}

.mqo_input_group_icon input {
    width: 100%;
    padding: 14px 15px 14px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

/* ৫. এড্রেস ফিল্ড (পরিবর্তিত ডিজাইন: অন্য ইনপুট ফিল্ডের মতো সমান করা হয়েছে) */
.mqo_input_group_icon textarea#mqo_user_address {
    width: 100%;
    min-height: 52px !important; /* ইনপুট ফিল্ডের হাইট */
    height: 52px !important;
    padding: 14px 15px 14px 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: none !important; /* বড় করার অপশন বন্ধ */
    overflow: hidden !important;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* এড্রেস ফিল্ডের আইকন অ্যালাইনমেন্ট ঠিক করা */
.mqo_input_group_icon textarea#mqo_user_address ~ .mqo-icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.mqo_input_group_icon input:focus,
.mqo_input_group_icon textarea:focus {
    outline: none;
    border-color: #FF8C00; /* Dynamic হবে inline CSS দিয়ে */
}

/* ৬. শিপিং মেথড (পরিবর্তিত ডিজাইন: নীল সিলেকশন বক্স রিমুভ করা হয়েছে) */
.mqo-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: #333;
}

.mqo-radio-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent; /* ক্লিকের হাইলাইট রিমুভ */
}

.mqo-radio-label:hover {
    border-color: #FF8C00; /* Dynamic হবে inline CSS দিয়ে */
    background: #fff9f0; /* Dynamic হবে inline CSS দিয়ে */
}

.mqo-radio-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    outline: none !important; /* ব্লু বক্স রিমুভ */
    box-shadow: none !important; /* শ্যাডো রিমুভ */
}

.mqo-radio-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mqo-price {
    color: #333;
    font-weight: 600;
}

/* ৭. কুপন সেকশন */
.mqo-coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mqo-coupon-section input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.mqo-coupon-btn {
    padding: 12px 20px;
    background: #FF8C00; /* Dynamic হবে inline CSS দিয়ে */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 15px;
}

/* ৮. প্রোডাক্ট সামারি এবং প্রাইস ব্রেকডাউন */
.mqo-product-summary {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.mqo-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mqo-product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mqo-product-info {
    flex: 1;
    min-width: 0;
}

.mqo-product-info h5 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
}

.mqo-variation-info {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.mqo-product-price {
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.mqo-price-breakdown {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mqo-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: #666;
}

.mqo-total-row {
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.mqo-total-price {
    color: #FF8C00; /* Dynamic হবে inline CSS দিয়ে */
    font-size: 18px;
}

/* ৯. অর্ডার বাটন (থিম কালার অনুযায়ী dynamic) */
#mqo_confirm_order_btn,
.mqo-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF8C00 0%, #ff7700 100%); /* Dynamic হবে inline CSS দিয়ে */
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3); /* Dynamic হবে inline CSS দিয়ে */
    margin-bottom: 10px;
}

#mqo_confirm_order_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4); /* Dynamic হবে inline CSS দিয়ে */
}

/* Phone number validation error message */
.mqo-phone-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ১০. মোবাইল রেসপন্সিভ (Fixed) */
@media (max-width: 768px) {


#mqo_dismiss_btn {
    position: fixed;
    right: 35px;
    top: 25px;
    cursor: pointer;
    font-size: 50px;
    color: black;
    line-height: 1;
    transition: color 0.2s;
    font-weight: 300;
}

#mqo_dismiss_btn:hover {
    color: black;
}

    #mqo_wrap_container {
        padding: 0px;
        align-items: flex-start;
        justify-content: center;
    }
    
    .mqo_inner_box_large {
        width: 90vw !important;
        max-width: 90vw !important;
        padding: 20px;
        border-radius: 12px;
        margin-top: 20px;
	margin-bottom:50px;
    }
    
    /* কুপন বাটনের ফন্ট সাইজ ছোট করা */
    .mqo-coupon-btn {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    /* Product info section mobile optimization */
    .mqo-product-info {
        flex: 1;
        min-width: 0;
    }
    
    .mqo-product-info h5 {
        font-size: 14px;
        margin: 0 0 5px 0;
    }
    
    .mqo-variation-info {
        font-size: 12px;
        color: #666;
    }
}

/* Body scroll lock when popup is open */
body.mqo-popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}