.dabilux-after-add-to-cart-wrapper {
    margin-top: 16px;
}
.dabilux-quick-buy-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 2;
    text-align: center;
}
.dabilux-quick-buy-button:hover {
    background-color: #1d4ed8;
}
.dabilux-quick-buy-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* --- POPUP WRAPPER & OVERLAY --- */
#dabiluxPopupOverlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s;
    z-index: 99998;
    opacity: 1;
    pointer-events: auto;
}
#dabiluxPopupOverlay.dabilux-hidden {
    opacity: 0;
    pointer-events: none;
}
#dabiluxQuickBuyPopup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99999;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    overflow-y: auto;
}
.dabilux-input-group .dabilux-form-input {
    width: 75% !important;
}
#dabiluxQuickBuyPopup.dabilux-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}
#dabiluxQuickBuyPopup .dabilux-popup-content {
    background-color: white;
    width: 100%;
    max-width: 1000px !important;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* --- COLUMNS & GENERAL LAYOUT --- */
#dabiluxQuickBuyPopup .dabilux-popup-column {
    padding: 24px;
}
#dabiluxQuickBuyPopup .dabilux-popup-column-left {
    width: 100%;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}
#dabiluxQuickBuyPopup .dabilux-voucher-container {
    display: block !important;
}
#dabiluxQuickBuyPopup .dabilux-popup-column-right {
    width: 100%;
}

#dabiluxQuickBuyPopup .dabilux-popup-title { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 24px; }
#dabiluxQuickBuyPopup .dabilux-popup-subtitle { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 12px; }
#dabiluxQuickBuyPopup .dabilux-divider { margin-top: 24px; margin-bottom: 24px; border: 0; border-top: 1px solid #e5e7eb; }
#dabiluxQuickBuyPopup .dabilux-product-summary { display: flex; gap: 16px; }
#dabiluxQuickBuyPopup .dabilux-product-image { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); flex-shrink: 0; }
#dabiluxQuickBuyPopup .dabilux-product-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
#dabiluxQuickBuyPopup .dabilux-product-name { font-weight: 600; color: #1f2937; line-height: 1.25; font-size: 16px; }
#dabiluxQuickBuyPopup .dabilux-product-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
#dabiluxQuickBuyPopup .dabilux-product-variation-name { font-size: 14px; color: #6b7280; margin: 0; }
#dabiluxQuickBuyPopup .dabilux-product-price { font-size: 18px; font-weight: 700; color: #2563eb; margin: 0; }
#dabiluxQuickBuyPopup .dabilux-quantity-selector { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 8px; }
#dabiluxQuickBuyPopup .dabilux-quantity-btn { padding: 4px 8px; font-size: 20px; font-weight: 700; color: #4b5563; background: transparent; border: none; cursor: pointer; }
#dabiluxQuickBuyPopup .dabilux-quantity-btn:hover { background-color: #f3f4f6; }
#dabiluxQuickBuyPopup .dabilux-quantity-input { width: 40px; text-align: center; border: none; border-left: 1px solid #d1d5db; border-right: 1px solid #d1d5db; background-color: white; padding: 4px 0; height: auto; min-height: unset; }
#dabiluxQuickBuyPopup .dabilux-quantity-input:focus { outline: none; }
#dabiluxQuickBuyPopup .dabilux-freeship-container, #dabiluxQuickBuyPopup .dabilux-voucher-container { margin-top: 24px; }
#dabiluxQuickBuyPopup .dabilux-freeship-message { font-size: 14px; text-align: center; color: #374151; margin-bottom: 8px; }
#dabiluxQuickBuyPopup .dabilux-progress-bar-bg { background-color: #e5e7eb; border-radius: 9999px; height: 10px; overflow: hidden; }
#dabiluxQuickBuyPopup .dabilux-progress-bar-fg { background-color: #2563eb; height: 100%; border-radius: 9999px; transition: width 0.3s; }
#dabiluxQuickBuyPopup .dabilux-totals-summary { margin-top: auto; display: flex; flex-direction: column; gap: 12px; color: #374151; }
#dabiluxQuickBuyPopup .dabilux-totals-row { display: flex; justify-content: space-between; }
#dabiluxQuickBuyPopup .dabilux-totals-value { font-weight: 500; }
#dabiluxQuickBuyPopup .dabilux-totals-row-final { font-size: 18px; font-weight: 700; color: #111827; padding-top: 8px; border-top: 1px solid #e5e7eb; }
#dabiluxQuickBuyPopup .dabilux-totals-value-final { color: #2563eb; }
#dabiluxQuickBuyPopup .dabilux-text-green { color: #16a34a; }
#dabiluxQuickBuyPopup .dabilux-form-header { display: flex; justify-content: space-between; align-items: center; }
#dabiluxQuickBuyPopup .dabilux-close-button { color: #9ca3af; background: none; border: none; cursor: pointer; padding: 0; transition: color 0.3s; }
#dabiluxQuickBuyPopup .dabilux-close-button:hover { color: #4b5563; }
#dabiluxQuickBuyPopup .dabilux-close-button svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#dabiluxQuickBuyPopup .dabilux-form-body { display: flex; flex-direction: column; gap: 16px; }
#dabiluxQuickBuyPopup .dabilux-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
#dabiluxQuickBuyPopup .dabilux-form-group { display: flex; flex-direction: column; }
#dabiluxQuickBuyPopup .dabilux-form-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 4px; }
#dabiluxQuickBuyPopup .dabilux-form-input, #dabiluxQuickBuyPopup .dabilux-form-input:focus { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); transition: border-color 0.2s, box-shadow 0.2s; font-size: 16px; line-height: 24px; height: auto; min-height: unset; background-color: white; color: #111827; }
#dabiluxQuickBuyPopup .dabilux-form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgb(59 130 246 / 0.5); }
#dabiluxQuickBuyPopup .dabilux-input-group { display: flex; gap: 8px; }
#dabiluxQuickBuyPopup .dabilux-apply-voucher-btn { background-color: #1f2937;
    color: white;
    font-weight: 600;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    width: 25%; }
#dabiluxQuickBuyPopup .dabilux-apply-voucher-btn:hover { background-color: #111827; }
#dabiluxQuickBuyPopup .dabilux-voucher-message { font-size: 14px; margin-top: 8px; }
#dabiluxQuickBuyPopup .dabilux-shipping-container { margin-top: 24px; width: 100%;}
#dabiluxQuickBuyPopup .dabilux-shipping-list { display: grid; flex-direction: column; gap: 8px; grid-template-columns: 1fr 1fr;}
#dabiluxQuickBuyPopup .dabilux-shipping-option { display: flex; align-items: center; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; }
#dabiluxQuickBuyPopup .dabilux-form-radio { width: 16px; height: 16px; accent-color: #2563eb; flex-shrink: 0; }
#dabiluxQuickBuyPopup .dabilux-shipping-label { margin-left: 12px; flex-grow: 1; color: #1f2937; }
#dabiluxQuickBuyPopup .dabilux-shipping-cost { margin-left: auto; padding-left: 16px; font-weight: 600; color: #1f2937; }
#dabiluxQuickBuyPopup .dabilux-shipping-option.dabilux-selected { background-color: #eff6ff; border-color: #3b82f6; }
#dabiluxQuickBuyPopup .dabilux-submit-button { width: 100%; margin-top: 32px; background-color: #2563eb; color: white; font-weight: 700; padding: 12px 24px; border-radius: 8px; border: none; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); cursor: pointer; transition: all 0.3s; font-size: 18px;     text-align: center;
    line-height: 2;}
#dabiluxQuickBuyPopup .dabilux-submit-button:hover { background-color: #1d4ed8; }
#dabiluxQuickBuyPopup .dabilux-submit-button:disabled { background-color: #9ca3af; cursor: not-allowed; }
#dabiluxShippingMethods {
    width: 100%;
}
/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    #dabiluxQuickBuyPopup {
        align-items: center;
        /* Vô hiệu hóa cuộn của popup trên desktop */
        overflow-y: hidden;
    }
    #dabiluxQuickBuyPopup .dabilux-popup-content {
        flex-direction: row;
    }
    #dabiluxQuickBuyPopup .dabilux-popup-column-left {
        width: 41.666667%;
    }
    #dabiluxQuickBuyPopup .dabilux-popup-column-right {
        width: 58.333333%;
        /* Chỉ cho phép cột bên phải cuộn trên desktop */
        overflow-y: auto;
        max-height: 90vh;
    }
    #dabiluxQuickBuyPopup .dabilux-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #dabiluxQuickBuyPopup .dabilux-form-group-full {
        grid-column: span 2 / span 2;
    }
}
@media (max-width: 767px){
    #dabiluxQuickBuyPopup .dabilux-shipping-list
    { display: block;
}}
    

