/* =========================================
   1. BULLETPROOF MODAL CONTAINER
   ========================================= */
#qcc-popup-overlay { 
    display: none; 
    position: fixed !important; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    z-index: 2147483647; 
    justify-content: center; 
    /* FIX: Align flex-start prevents top cut-off on scrollable/tall modals */
    align-items: flex-start; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    /* FIX: Increased top padding so Title isn't hidden under browser bar */
    padding: 40px 10px 20px 10px; 
    box-sizing: border-box; 
    backdrop-filter: blur(3px); 
}

#qcc-popup-modal { 
    background: #ffffff; 
    width: 100%; 
    max-width: 480px; 
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
    position: relative; 
    margin: auto; /* Centers horizontally and vertically with flex-start */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    color: #333; 
    text-align: left; 
    animation: qccSlideUp 0.3s ease-out forwards; 
    overflow: hidden; 
    box-sizing: border-box; 
    z-index: 2147483648; 
}

@keyframes qccSlideUp { 
    from { transform: translateY(20px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

#qcc-popup-modal * { box-sizing: border-box; }

/* Header */
#qcc-modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    border-bottom: 1px solid #eee; 
    background: #fff; 
    position: sticky; 
    top: 0; 
    /* FIX: High Z-Index to keep title visible above scrolled content */
    z-index: 1000; 
    min-height: 54px;
}

#qcc-modal-header .qcc-title,
.qcc-inline-header .qcc-title { 
    font-size: 18px; 
    font-weight: 700; 
    margin: 0; 
    color: #111; 
}

/* Reduce Title Size on Mobile */
@media (max-width: 480px) {
    #qcc-modal-header .qcc-title,
    .qcc-inline-header .qcc-title {
        font-size: 16px !important;
    }
}

#qcc-close-popup { 
    background: none; 
    border: none; 
    font-size: 28px; 
    color: #999; 
    cursor: pointer; 
    padding: 0; 
    line-height: 1; 
}

/* Base Banner Style (Used inside form container now) */
#qcc-shipping-banner { 
    background: #e8f5e9; 
    color: #2e7d32; 
    text-align: center; 
    padding: 8px; 
    font-size: 13px; 
    font-weight: 600; 
    border-bottom: 1px solid #c8e6c9; 
}

.qcc-form-container { 
    padding: 20px; 
    max-height: 80vh; 
    overflow-y: auto; 
    /* Ensure content scrolls under the sticky header */
    position: relative;
    z-index: 1;
}

/* FULL WIDTH FIX: Negative margins to stretch banners inside padded container */
.qcc-form-container > #qcc-shipping-banner,
.qcc-form-container > .qcc-countdown-bar {
    width: calc(100% + 40px); /* 100% + left padding + right padding */
    margin-left: -20px;
    margin-right: -20px;
    max-width: none;
    border-radius: 0;
}

/* Pull the first element up to touch the header line */
.qcc-form-container > #qcc-shipping-banner:first-child,
.qcc-form-container > .qcc-countdown-bar:first-child {
    margin-top: -20px;
    margin-bottom: 20px;
}

/* If Countdown follows Shipping Banner immediately, merge them visually */
.qcc-form-container > #qcc-shipping-banner:first-child + .qcc-countdown-bar {
    margin-top: -20px; 
    margin-bottom: 20px;
}

.qcc-section-title { 
    text-align: center !important; 
    text-transform: uppercase; 
    font-size: 14px; 
    font-weight: 800; 
    margin: 25px 0 15px 0; 
    color: #222; 
    letter-spacing: 0.5px; 
}

/* =========================================
   2. BUNDLES & OFFERS
   ========================================= */
.qcc-bundles-grid { 
    display: flex; 
    justify-content: space-between; 
    gap: 10px; 
    margin-bottom: 20px; 
    position: relative; 
    z-index: 10; 
    align-items: stretch; 
}

.qcc-bundle-option { 
    flex: 1 1 0; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px; 
    text-align: center; 
    cursor: pointer !important; 
    transition: all 0.2s; 
    background: #fff; 
    padding: 0 0 15px 0; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    z-index: 11; 
    height: 100%; 
}

.qcc-bundle-option.active { 
    border-color: #000; 
    background: #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

.qcc-bundle-option h4 { 
    background: #000; 
    color: #fff; 
    font-size: 11px; 
    text-transform: uppercase; 
    padding: 0 5px; 
    margin: 0 0 10px 0; 
    width: calc(100% + 4px);
    margin-left: -2px;
    margin-right: -2px;
    font-weight: 700; 
    height: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 1.2;
}

.qcc-bundle-image { 
    font-size: 24px; 
    margin: 0 0 5px 0; 
    height: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.qcc-bundle-option h3 { 
    margin: 0 0 5px 0; 
    font-size: 14px; 
    font-weight: 900; 
    color: #333; 
    text-transform: uppercase; 
    min-height: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.qcc-bundle-savings { 
    font-size: 11px; 
    color: #28a745 !important; 
    font-weight: 700; 
    margin: 0 0 8px 0; 
    min-height: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.qcc-bundle-price { 
    font-size: 15px; 
    font-weight: 800; 
    color: #000; 
    margin-top: auto; 
    padding-bottom: 5px;
    min-height: 44px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.qcc-bundle-price del { 
    font-size: 11px; 
    color: #999; 
    display: block; 
    font-weight: 400; 
    margin-top: 2px; 
}

@media (max-width: 400px) {
    .qcc-bundles-grid { gap: 5px; }
    .qcc-bundle-option h4 { font-size: 9px; height: 24px; }
    .qcc-bundle-image { font-size: 16px; height: 20px; margin-bottom: 2px; }
    .qcc-bundle-option h3 { font-size: 11px; min-height: 20px; }
    .qcc-bundle-savings { font-size: 9px; min-height: 20px; }
    .qcc-bundle-price { font-size: 12px; min-height: 35px; }
    .qcc-bundle-price del { font-size: 9px; }
}

/* =========================================
   3. VARIATIONS & MIX MATCH
   ========================================= */
.qcc-variations-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-bottom: 25px; 
    position: relative; 
    z-index: 10;
}
@media (min-width: 480px) { .qcc-variations-grid { grid-template-columns: repeat(4, 1fr); } }

.qcc-variation-swatch { 
    border: 1px solid #eee; 
    border-radius: 6px; 
    padding: 10px 5px; 
    cursor: pointer !important; 
    background: #fff; 
    transition: all 0.2s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    position: relative; 
    z-index: 11;
}

.qcc-variation-swatch.selected { 
    border-color: #000; 
    background: #f5f5f5; 
    box-shadow: 0 0 0 1px #000 inset; 
}

/* Out of Stock Style */
.qcc-variation-swatch.qcc-out-of-stock {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
    border-color: #ddd !important;
    background: #f9f9f9 !important;
}
.qcc-variation-swatch.qcc-out-of-stock::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #d32f2f;
    font-weight: bold;
    text-shadow: 0 0 2px white;
    z-index: 12;
}

.qcc-variation-swatch img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: 4px; 
    margin-bottom: 8px; 
    max-width: 60px; 
}

.qcc-swatch-title { 
    font-size: 11px; 
    font-weight: 500; 
    color: #444; 
    line-height: 1.2; 
}

/* Mix & Match Container */
#qcc-mix-match-container { 
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #e0e0e0; 
    margin-bottom: 25px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.qcc-mix-match-row { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
}
.qcc-mix-match-row:last-child {
    margin-bottom: 0;
}

.qcc-mix-match-label { 
    font-weight: 800; 
    font-size: 16px; 
    width: 40px; 
    color: #333; 
    margin-right: 10px; 
}

.qcc-mix-match-select { 
    flex: 1; 
    padding: 0 10px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 14px; 
    height: 42px; 
    background: #fff; 
    color: #333;
    outline: none;
}
.qcc-mix-match-select:focus {
    border-color: #000;
}

/* =========================================
   4. INPUT FIELDS
   ========================================= */
.qcc-input-group { 
    position: relative; 
    margin-bottom: 12px; 
    width: 100%; 
}
.qcc-input-group .qcc-icon { 
    position: absolute; 
    left: 1px; 
    top: 1px; 
    bottom: 1px; 
    width: 44px; 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    color: #666; 
    z-index: 5; 
    pointer-events: none; 
    border-right: 1px solid #ddd !important; 
    background: #f7f7f7 !important; 
    border-radius: 6px 0 0 6px; 
    font-size: 16px; 
}
.qcc-input-group input, 
.qcc-input-group select { 
    width: 100% !important; 
    padding: 12px 12px 12px 56px !important; 
    border: 1px solid #ddd !important; 
    border-radius: 6px !important; 
    font-size: 14px !important; 
    background: #fff !important; 
    color: #333 !important; 
    outline: none; 
    height: 46px !important; 
    box-shadow: none !important; 
    margin: 0 !important; 
}
.qcc-input-group select { 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); 
    background-repeat: no-repeat; 
    background-position: right 15px top 50%; 
    background-size: 10px auto; 
}

/* =========================================
   5. BANNERS & UPSELLS
   ========================================= */
.qcc-extra-banner, .qcc-upsell-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 12px; 
    border-radius: 8px; 
    margin-bottom: 0; 
    background: #fff; 
    border: 1px solid #eee; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
    cursor: pointer; 
    transition: all 0.2s ease;
}
.qcc-extra-banner:hover, .qcc-upsell-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.qcc-extra-banner { 
    margin-bottom: 10px; 
    background: #e8f5e9; 
    border: 1px dashed #4caf50; 
}
.qcc-upsell-wrapper { margin-bottom: 10px; }
.qcc-banner-icon, .qcc-upsell-image { flex-shrink: 0; width: 40px; text-align: center; }
.qcc-banner-icon img, .qcc-upsell-image img { 
    width: 40px !important; 
    height: 40px !important; 
    object-fit: cover !important; 
    border-radius: 4px !important; 
    display: block; 
    margin: 0 !important; 
}
.qcc-banner-icon i { font-size: 22px; color: #4caf50; }
.qcc-banner-details, .qcc-upsell-details { flex: 1; min-width: 0; }
.qcc-banner-title, .qcc-upsell-title { 
    display: block; font-weight: 700; font-size: 13px; color: #333; 
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.qcc-banner-description { 
    display: block; font-size: 11px; color: #666; 
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.qcc-banner-price, .qcc-upsell-price-box { font-weight: 800; font-size: 13px; color: #000; flex-shrink: 0; }
.qcc-banner-action, .qcc-upsell-action { flex-shrink: 0; }

.qcc-upsell-variant-container {
    padding: 5px 10px 10px 10px; 
    background: #f9f9f9; 
    border: 1px solid #eee; 
    border-top: none; 
    border-radius: 0 0 8px 8px; 
    margin-top: -2px; 
    display: none; 
}
.qcc-upsell-variant-select { 
    width: 100%; 
    font-size: 12px; 
    padding: 5px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    background-color: #fff; 
    color: #333; 
}

/* Switch */
.qcc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.qcc-switch input { opacity: 0; width: 0; height: 0; }
.qcc-slider { 
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #ccc; transition: .4s; border-radius: 22px; 
}
.qcc-slider:before { 
    position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; 
    background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}
input:checked + .qcc-slider { background-color: #28a745; }
input:checked + .qcc-slider:before { transform: translateX(18px); background-color: #28a745; }

/* =========================================
   6. BUTTONS (Stacked Layout)
   ========================================= */
.qcc-buttons-container {
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    width: 100%; 
    margin-top: 20px; 
    margin-bottom: 20px; 
}

#qcc-place-order-button, 
#qcc-prepaid-button,
#qcc-whatsapp-button {
    width: 100%; 
    padding: 14px 12px; 
    border: none; 
    border-radius: 5px; 
    font-size: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: opacity 0.2s; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    line-height: 1.4; 
    display: flex !important; align-items: center; justify-content: center; gap: 0 !important; 
    position: relative !important;
    z-index: 1000 !important; /* Forces button above invisible floating layers */
}

#qcc-place-order-button { background-color: #000; }
#qcc-prepaid-button { background-color: #28a745; }
#qcc-whatsapp-button { background-color: #098d3a; }

/* Icon Positioning */
.qcc-icon-pos-left i, .qcc-icon-pos-left .qcc-btn-icon { 
    position: absolute !important; 
    left: 15px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    margin: 0 !important; 
    font-size: 18px; 
    display: inline-block;
    z-index: 5;
}
.qcc-icon-pos-right i, .qcc-icon-pos-right .qcc-btn-icon { 
    position: absolute !important; 
    right: 15px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    margin: 0 !important; 
    font-size: 18px; 
    display: inline-block;
    z-index: 5;
}
.qcc-icon-pos-left span { padding-left: 30px; }
.qcc-icon-pos-right span { padding-right: 30px; }

/* =========================================
   7. COUPON & SUMMARY
   ========================================= */
.qcc-coupon-section { margin-bottom: 0px; margin-top: 10px; }

.qcc-coupon-wrapper { 
    display: flex; align-items: stretch; border: 1px solid #ddd; 
    border-radius: 6px; overflow: hidden; height: 46px; 
}
.qcc-coupon-icon { 
    width: 44px; background: #f7f7f7; display: flex; 
    align-items: center; justify-content: center; color: #666; 
    border-right: 1px solid #ddd; font-size: 16px; 
}
#qcc-coupon-input { 
    flex: 1; border: none !important; padding: 0 12px !important; 
    height: 100% !important; outline: none !important; 
    box-shadow: none !important; border-radius: 0 !important; font-size: 14px; 
}
#qcc-apply-coupon { 
    width: 90px; border: none; cursor: pointer; 
    font-weight: 600; font-size: 14px; background: #333; 
    color: #fff; height: 100%; 
}
#qcc-coupon-message { font-size: 12px; margin-top: 5px; min-height: 15px; }
#qcc-coupon-message.success { color: #2e7d32; }
#qcc-coupon-message.error { color: #d32f2f; }

#qcc-order-summary-card { 
    background: #fafafa; padding: 15px; border-radius: 8px; 
    margin-bottom: 20px; border: 1px solid #eee; margin-top: 0; 
}
.qcc-summary-product-row { 
    display: flex; gap: 12px; margin-bottom: 15px; 
    border-bottom: 1px solid #eee; padding-bottom: 12px; 
}
.qcc-summary-img-container img { 
    width: 60px; height: 60px; object-fit: cover; border-radius: 6px; 
}
.qcc-summary-details-col { flex: 1; }
.qcc-name-text { font-weight: 700; font-size: 14px; }

.qcc-upsell-text div { 
    font-size: 12px; color: #28a745; margin-top: 2px; font-weight: 500; 
}

.qcc-summary-price-row { margin-top: 4px; font-weight: 700; color: #333; font-size: 14px; }
.qcc-summary-totals-block p { display: flex; justify-content: space-between; margin: 5px 0; font-size: 13px; }
.qcc-grand-total { 
    font-weight: 800; font-size: 16px; border-top: 1px dashed #ccc; 
    padding-top: 10px; margin-top: 10px; 
}

/* SUMMARY STYLES */
.qcc-summary-list-item {
    font-size: 13px;
    margin-top: 2px;
    color: #444;
}
.qcc-sl-num {
    font-weight: 700;
    color: #000;
    margin-right: 4px;
}
.qcc-summary-qty {
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    color: #666;
}

/* UPDATE: High Z-index for Main Buy Now Button to fix overlay issues */
#qcc-buy-now-button { 
    width: 100%; padding: 12px; border: none; border-radius: 5px; 
    font-size: 16px; font-weight: 700; cursor: pointer; text-transform: uppercase; 
    transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    line-height: 1.4; 
    display: flex !important; align-items: center; justify-content: center; gap: 0 !important; 
    position: relative !important;
    z-index: 1000 !important; /* Forces button above invisible floating layers */
}
#qcc-buy-now-button i { font-size: 1.5em; }

#qcc-shipping-origin-banner { margin-top: 20px; text-align: center; font-size: 12px; color: #666; padding: 5px; }
.qcc-footer-features { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 10px; }
.qcc-feature-item { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }
.qcc-feat-icon-bg { 
    background-color: #dcfce7; width: 50px; height: 50px; 
    border-radius: 15px; display: flex; align-items: center; 
    justify-content: center; margin-bottom: 8px; 
}
.qcc-feat-icon-bg i { font-size: 20px; color: #15803d; }
.qcc-feature-item span { font-size: 11px; font-weight: 700; color: #4b5563; }
.qcc-footer-banner-img { width: 100%; height: auto; display: block; margin: 15px 0; border-radius: 5px; }

/* =========================================
   8. REVIEWS (Testimonials)
   ========================================= */
.qcc-reviews-section { 
    width: 100%; margin-bottom: 20px; margin-top: 20px; 
    box-sizing: border-box; overflow: hidden; position: relative; 
}
.qcc-reviews-slider { position: relative; width: 100%; overflow: hidden; }
.qcc-reviews-track { display: flex; width: 100%; transition: transform 0.4s ease-in-out; }
.qcc-review-card { 
    flex: 0 0 100%; 
    border: 2px solid #fbc02d; border-radius: 12px; padding: 15px; 
    background: #fff; width: 100%; 
    box-sizing: border-box; 
    padding-bottom: 40px; /* Space for arrows */
    position: relative;
}
.qcc-review-header { display: flex; align-items: center; margin-bottom: 8px; }
.qcc-review-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.qcc-review-meta { display: flex; flex-direction: column; }
.qcc-review-author { font-weight: 800; font-size: 14px; color: #333; line-height: 1.2; }
.qcc-review-verified { 
    font-size: 11px; color: #15803d; background: #dcfce7; 
    padding: 2px 6px; border-radius: 4px; display: inline-block; 
    margin-top: 3px; font-weight: 600; width: fit-content;
}
.qcc-review-verified i { margin-right: 3px; font-size: 10px; }
.qcc-review-stars { color: #fbc02d; font-size: 14px; margin: 8px 0; letter-spacing: 1px; }
.qcc-review-text { font-size: 13px; line-height: 1.5; color: #333; margin: 0; font-style: italic; }

/* NAV ARROWS (Fixed) */
.qcc-rev-prev, .qcc-rev-next {
    position: absolute; 
    bottom: 5px; 
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important;
    width: 30px; height: 30px; 
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; 
    color: #000 !important; 
    font-size: 24px; 
    padding: 5px;
    outline: none;
}
.qcc-rev-prev { right: 50px; left: auto; }
.qcc-rev-next { right: 15px; left: auto; }

/* =========================================
   9. FAQ ACCORDION
   ========================================= */
.qcc-faq-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.qcc-faq-item-ui {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.qcc-faq-item-ui:last-child {
    border-bottom: none;
}
.qcc-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
.qcc-faq-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qcc-faq-icon {
    width: 16px;
    text-align: center;
    color: #555;
}
.qcc-faq-toggle-icon {
    font-size: 12px;
    color: #999;
}
.qcc-faq-content {
    display: none;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
    padding-left: 24px;
}

/* --- RTL --- */
.qcc-rtl { direction: rtl; text-align: right; }
.qcc-rtl .qcc-title, .qcc-rtl .qcc-section-title, .qcc-rtl .qcc-input-group input, .qcc-rtl .qcc-input-group select { text-align: right; }
.qcc-rtl .qcc-bundle-option, .qcc-rtl .qcc-bundle-option h3, .qcc-rtl .qcc-bundle-option h4, .qcc-rtl .qcc-bundle-savings, .qcc-rtl .qcc-bundle-price { text-align: center !important; }
.qcc-rtl .qcc-input-group .qcc-icon { left: auto; right: 1px; border-right: none !important; border-left: 1px solid #ddd !important; border-radius: 0 6px 6px 0; }

.qcc-rtl .qcc-input-group input, .qcc-rtl .qcc-input-group select { 
    padding-left: 12px !important; 
    padding-right: 56px !important; 
    font-size: 15px !important;
}

.qcc-rtl .qcc-input-group select { background-position: left 15px top 50%; }
.qcc-rtl .qcc-summary-product-row, .qcc-rtl .qcc-summary-totals-block p { flex-direction: row !important; }
.qcc-rtl .qcc-summary-details-col { text-align: right; padding-right: 10px; padding-left: 0; }
.qcc-rtl .qcc-upsell-text div { text-align: right; }
.qcc-rtl .qcc-banner-details, .qcc-rtl .qcc-upsell-details { text-align: right !important; }
.qcc-rtl .qcc-coupon-wrapper { flex-direction: row; }
.qcc-rtl .qcc-coupon-icon { border-right: none; border-left: 1px solid #ccc; }
.qcc-rtl #qcc-coupon-input { text-align: right; }

.qcc-rtl #qcc-shipping-origin-banner {
    font-size: 14px !important;
}
.qcc-rtl #qcc-shipping-origin-banner .qcc-origin-flag { margin-left: 0; margin-right: 5px; }

.qcc-rtl .qcc-icon-pos-left i { left: auto !important; right: 15px !important; }
.qcc-rtl .qcc-icon-pos-left span { padding-left: 0; padding-right: 30px; }
.qcc-rtl .qcc-review-avatar { margin-right: 0; margin-left: 10px; }
.qcc-rtl .qcc-review-verified i { margin-right: 0; margin-left: 3px; }
.qcc-rtl .qcc-rev-prev { right: auto; left: 50px; }
.qcc-rtl .qcc-rev-next { right: auto; left: 15px; }

/* Mix & Match RTL */
.qcc-rtl .qcc-mix-match-label { margin-right: 0; margin-left: 10px; }
.qcc-rtl .qcc-sl-num { margin-right: 0; margin-left: 4px; }

/* FAQ RTL */
.qcc-rtl .qcc-faq-content { padding-left: 0; padding-right: 24px; }

/* ✅ NEW: Fix modern shipping radio spacing in RTL */
.qcc-rtl .qcc-ship-radio { margin-right: 0; margin-left: 12px; }

/* ✅ NEW: Improved RTL Shipping Layout */
.qcc-rtl .qcc-modern-ship-item {
    justify-content: flex-start;
}
.qcc-rtl .qcc-ship-details {
    flex: 1;
    display: flex;
    flex-direction: row; /* Horizontal Title - Cost */
    justify-content: space-between; /* Title Right, Cost Left */
    align-items: center;
    width: auto;
    padding-right: 10px; /* Space from radio */
}
.qcc-rtl .qcc-ship-title {
    text-align: right;
    margin-left: 10px; /* Space from Cost */
    margin-right: 0;
}
.qcc-rtl .qcc-ship-cost {
    margin-left: 0;
    margin-right: 0;
    direction: ltr; /* Keeps currency correct */
    unicode-bidi: embed;
}

/* ✅ NEW: Fix Order Summary Qty & Price for RTL */
.qcc-rtl .qcc-summary-qty { 
    direction: ltr; /* Keeps Qty: 2 from flipping to 2 :Qty */
    text-align: right; 
    unicode-bidi: embed;
}
.qcc-rtl .qcc-summary-price-row {
    direction: ltr; 
    text-align: right;
    unicode-bidi: embed;
}

/* Fix Product Details Column in RTL */
.qcc-rtl .qcc-summary-details-col {
    text-align: right;
    direction: rtl;
}

/* =========================================
   10. DARK MODE (ENHANCED)
   ========================================= */
.qcc-dark#qcc-popup-modal,
.qcc-dark#qcc-inline-wrapper {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border-color: #333;
}

/* Headers */
.qcc-dark #qcc-modal-header,
.qcc-dark .qcc-inline-header {
    background-color: #1f1f1f;
    border-bottom-color: #333;
}
.qcc-dark #qcc-modal-header .qcc-title,
.qcc-dark .qcc-inline-header .qcc-title {
    color: #ffffff !important;
}
.qcc-dark #qcc-close-popup {
    color: #aaa;
}

/* Section Titles (High Specificity) */
.qcc-dark .qcc-section-title,
.qcc-dark h3.qcc-section-title {
    color: #ffffff !important;
}

/* Bundles */
.qcc-dark .qcc-bundle-option {
    background-color: #2d2d2d;
    border-color: #444;
}
.qcc-dark .qcc-bundle-option.active {
    border-color: #fff;
    background-color: #333;
}
.qcc-dark .qcc-bundle-option h4 {
    background-color: #000; 
    color: #fff;
}
.qcc-dark .qcc-bundle-option h3 {
    color: #fff !important;
}
.qcc-dark .qcc-bundle-price {
    color: #fff !important;
}

/* Shipping Banner */
.qcc-dark #qcc-shipping-banner {
    background-color: #1b3a1b;
    color: #81c784;
    border-bottom-color: #2e7d32;
}

/* Variations */
.qcc-dark .qcc-variation-swatch {
    background-color: #2d2d2d;
    border-color: #444;
}
.qcc-dark .qcc-variation-swatch.selected {
    background-color: #333;
    border-color: #fff;
    box-shadow: 0 0 0 1px #fff inset;
}
.qcc-dark .qcc-swatch-title {
    color: #ddd;
}
.qcc-dark #qcc-mix-match-container {
    background-color: #2d2d2d;
    border-color: #444;
}
.qcc-dark .qcc-mix-match-label {
    color: #fff;
}

/* Inputs */
.qcc-dark .qcc-input-group .qcc-icon {
    background-color: #333 !important;
    border-color: #444 !important;
    color: #aaa;
}
.qcc-dark .qcc-input-group input, 
.qcc-dark .qcc-input-group select {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #fff !important;
}
.qcc-dark .qcc-input-group input::placeholder {
    color: #888;
}

/* Order Summary */
.qcc-dark #qcc-order-summary-card {
    background-color: #2d2d2d;
    border-color: #444;
}
.qcc-dark .qcc-summary-product-row {
    border-bottom-color: #444;
}
.qcc-dark .qcc-summary-price-row, 
.qcc-dark .qcc-name-text {
    color: #fff !important;
}
.qcc-dark .qcc-summary-list-item {
    color: #bbb;
}
.qcc-dark .qcc-sl-num {
    color: #fff;
}
.qcc-dark .qcc-summary-qty {
    color: #aaa;
}
.qcc-dark .qcc-grand-total {
    border-top-color: #444;
}

/* Upsells & Banners */
.qcc-dark .qcc-extra-banner, 
.qcc-dark .qcc-upsell-item {
    background-color: #2d2d2d;
    border-color: #444;
}
.qcc-dark .qcc-banner-title, 
.qcc-dark .qcc-upsell-title {
    color: #fff !important;
}
.qcc-dark .qcc-banner-description {
    color: #aaa;
}
.qcc-dark .qcc-banner-price, 
.qcc-dark .qcc-upsell-price-box {
    color: #fff;
}
.qcc-dark .qcc-upsell-variant-container {
    background-color: #222;
    border-color: #444;
}
.qcc-dark .qcc-upsell-variant-select {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

/* Coupon */
.qcc-dark .qcc-coupon-wrapper {
    border-color: #444;
}
.qcc-dark .qcc-coupon-icon {
    background-color: #333;
    border-color: #444;
    color: #aaa;
}
.qcc-dark #qcc-coupon-input {
    background-color: #2d2d2d !important;
    color: #fff !important;
}

/* Misc */
.qcc-dark #qcc-shipping-origin-banner {
    color: #aaa;
}
.qcc-dark .qcc-review-card {
    background-color: #2d2d2d;
    border-color: #444 !important; 
}
.qcc-dark .qcc-review-author {
    color: #fff !important;
}
.qcc-dark .qcc-review-text {
    color: #e0e0e0 !important;
}
.qcc-dark .qcc-rev-prev, 
.qcc-dark .qcc-rev-next {
    color: #fff !important;
}
.qcc-dark .qcc-feature-item span {
    color: #ccc !important;
}
.qcc-dark .qcc-feat-icon-bg {
    background-color: #333 !important; 
}

/* FAQ Dark Mode */
.qcc-dark .qcc-faq-section { border-top-color: #444; }
.qcc-dark .qcc-faq-item-ui { border-bottom-color: #444; }
.qcc-dark .qcc-faq-header { color: #fff; }
.qcc-dark .qcc-faq-icon { color: #aaa; }
.qcc-dark .qcc-faq-content { color: #bbb; }

/* -------------------------------------------------------------
   NEW THEME: SOFT-GRADIENT GLASS (qcc-theme-soft-glass)
   ------------------------------------------------------------- */
.qcc-theme-soft-glass#qcc-popup-modal,
.qcc-theme-soft-glass#qcc-inline-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.qcc-theme-soft-glass .qcc-form-container { background: transparent; }
.qcc-theme-soft-glass .qcc-input-group .qcc-icon {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b;
}
.qcc-theme-soft-glass .qcc-input-group input, 
.qcc-theme-soft-glass .qcc-input-group select {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}
.qcc-theme-soft-glass .qcc-bundle-option {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.qcc-theme-soft-glass .qcc-bundle-option.active {
    border-color: #3b82f6; /* Soft blue highlight */
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}
.qcc-theme-soft-glass .qcc-bundle-option h4 {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}
#qcc-place-order-button.qcc-theme-soft-glass-btn { /* Could be handled by global class if we add it to btn */ }

/* -------------------------------------------------------------
   NEW THEME: NEO-BRUTALISM (qcc-theme-neo-brutalism)
   ------------------------------------------------------------- */
.qcc-theme-neo-brutalism#qcc-popup-modal,
.qcc-theme-neo-brutalism#qcc-inline-wrapper {
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: 6px 6px 0px #000;
    border-radius: 0 !important;
}
.qcc-theme-neo-brutalism .qcc-title { font-family: "Courier New", Courier, monospace; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }
.qcc-theme-neo-brutalism .qcc-input-group input,
.qcc-theme-neo-brutalism .qcc-input-group select,
.qcc-theme-neo-brutalism .qcc-input-group .qcc-icon {
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1) !important;
}
.qcc-theme-neo-brutalism .qcc-bundle-option {
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 4px 4px 0px #000;
}
.qcc-theme-neo-brutalism .qcc-bundle-option.active {
    background: #ffeb3b; /* bright yellow */
    border-color: #000;
    box-shadow: 2px 2px 0px #000;
    transform: translate(2px, 2px);
}
.qcc-theme-neo-brutalism .qcc-bundle-option h4 {
    background: #000 !important;
    color: #fff !important;
}
.qcc-theme-neo-brutalism .qcc-variation-swatch {
    border: 2px solid #000;
    border-radius: 0;
}
.qcc-theme-neo-brutalism .qcc-variation-swatch.selected {
    background: #000;
    color: #fff;
}
.qcc-theme-neo-brutalism .qcc-swatch-title {
    font-weight: 800;
}
/* Override Buttons inside Neo */
.qcc-theme-neo-brutalism button, 
.qcc-theme-neo-brutalism .qcc-buttons-container button {
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    border-radius: 0;
    font-weight: 900;
    text-transform: uppercase;
}
.qcc-theme-neo-brutalism button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* -------------------------------------------------------------
   NEW THEME: FROSTED GLASS (qcc-theme-frosted)
   ------------------------------------------------------------- */
.qcc-theme-frosted#qcc-popup-modal,
.qcc-theme-frosted#qcc-inline-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* FIX: Darker border for visibility on white backgrounds */
    border: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}
.qcc-theme-frosted .qcc-form-container {
    background: transparent;
}
/* Inputs */
.qcc-theme-frosted .qcc-input-group input, 
.qcc-theme-frosted .qcc-input-group select {
    background: rgba(255, 255, 255, 0.6) !important;
    /* FIX: Darker border */
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(10px);
    color: #333 !important;
}
/* Input Icons */
.qcc-theme-frosted .qcc-input-group .qcc-icon {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #555;
}
/* Bundle Options */
.qcc-theme-frosted .qcc-bundle-option {
    background: rgba(255, 255, 255, 0.5);
    /* FIX: Darker border */
    border: 1px solid rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}
.qcc-theme-frosted .qcc-bundle-option.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #333; /* Active state gets distinct border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* Mix Match Container */
.qcc-theme-frosted #qcc-mix-match-container {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.qcc-theme-frosted .qcc-mix-match-select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------------
   NEW THEME: GLASS + NOISE (qcc-theme-glass-noise)
   ------------------------------------------------------------- */
.qcc-theme-glass-noise#qcc-popup-modal,
.qcc-theme-glass-noise#qcc-inline-wrapper {
    background-color: #f8fafc;
    /* Noise Pattern Base64 SVG */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    border: 1px solid #cbd5e1;
}
.qcc-theme-glass-noise .qcc-input-group input, 
.qcc-theme-glass-noise .qcc-input-group select {
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.qcc-theme-glass-noise .qcc-bundle-option {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.qcc-theme-glass-noise .qcc-bundle-option.active {
    border: 2px solid #334155;
    background: #fff;
}
.qcc-theme-glass-noise .qcc-variation-swatch {
    border-radius: 12px;
}

/* INLINE FORM FULL WIDTH / FULL HEIGHT */
#qcc-inline-wrapper {
    width: 100%;
    /* FIX: Constrain inline form to match popup width */
    max-width: 480px !important;
    /* FIX: Center on page with spacing */
    margin: 30px auto !important;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    /* UPDATE: High Z-index for inline wrapper */
    z-index: 1000;
    position: relative;
    /* Optional: shadow to make it pop like a card */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
#qcc-inline-wrapper .qcc-form-container {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 15px 20px !important; 
}
.qcc-inline-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

/* =========================================
   11. STICKY BUTTON (MOBILE) - UPDATED
   ========================================= */
#qcc-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent; 
    padding: 10px 15px;
    box-shadow: none; 
    z-index: 9999;
    box-sizing: border-box;
    display: none;
    pointer-events: none;
}
#qcc-sticky-btn {
    width: 100%;
    padding: 14px 20px; /* Adjust padding */
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    position: relative; /* Key for absolute icon */
    display: block; /* Center text easily */
    text-align: center;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* The Icon */
#qcc-sticky-btn i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    margin: 0;
    line-height: 1;
}

/* Left Position */
.qcc-sticky-left i {
    left: 20px;
}

/* Right Position */
.qcc-sticky-right i {
    right: 20px;
}

@media (max-width: 768px) {
    #qcc-sticky-bar.qcc-hide-desktop { display: block; }
    body { padding-bottom: 70px; } /* Prevent content covering */
}

/* =========================================
   12. CUSTOM THANK YOU PAGE
   ========================================= */
.qcc-thank-you-wrapper {
    max-width: 800px;
    /* FIXED: Removed 40px margin to fix pending/gap on mobile */
    margin: 40px auto; 
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    font-family: inherit;
    color: #333;
    text-align: center;
    /* Added padding for mobile to prevent edge touching */
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .qcc-thank-you-wrapper {
        padding: 15px;
        /* MOBILE FIX: Reduced margins to fit viewport better */
        margin: 10px auto !important;
        width: 100%;
    }
}

.qcc-ty-header { margin-bottom: 30px; }
.qcc-ty-icon { font-size: 48px; color: #28a745; margin-bottom: 15px; }
.qcc-ty-title { font-size: 24px; font-weight: 700; margin: 0 0 10px 0; color: #222; }
.qcc-ty-message { font-size: 15px; color: #666; line-height: 1.6; }

/* Info Grid */
.qcc-ty-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
    padding: 20px 0;
}
.qcc-ty-info-item {
    flex: 1 1 150px;
    text-align: center;
    padding: 0 10px;
}
.qcc-ty-info-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #555; /* Darker color as requested */
    margin-bottom: 5px;
    font-weight: 600; /* Bolder */
    letter-spacing: 0.5px;
}
.qcc-ty-info-item strong {
    display: block;
    font-size: 15px; /* Slightly larger */
    color: #000; /* Pitch Black */
    font-weight: 800; /* Bolder */
    white-space: nowrap; /* Prevents line break for currency */
}

/* Fix for internal currency wrapping */
.qcc-ty-info-item strong * {
    display: inline !important;
    white-space: nowrap !important;
}

/* Renamed to Note Box */
.qcc-note-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}
.qcc-note-header {
    font-size: 16px;
    font-weight: 700;
    color: #f57f17;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qcc-note-content { font-size: 14px; color: #5d4037; line-height: 1.5; }

/* Details Table */
.qcc-ty-details-section { text-align: left; margin-bottom: 30px; }
.qcc-ty-details-section h3 { font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.qcc-ty-table { width: 100%; border-collapse: collapse; }
.qcc-ty-table th, .qcc-ty-table td { padding: 12px; border-bottom: 1px solid #f0f0f1; text-align: left; white-space: nowrap; /* Keeps price inline */ }

/* Centered Column 2 (Price/Total) for ALL MODES */
.qcc-ty-table th:nth-child(2),
.qcc-ty-table td:nth-child(2) {
    text-align: center !important;
}

.qcc-ty-table th { font-weight: 700; color: #555; }
/* Left align for LTR (Subtotal label) */
.qcc-ty-table tfoot th { text-align: left; }

/* Centered Footer Value for ALL MODES */
.qcc-ty-table tfoot td {
    text-align: center !important;
}

/* FIX: Last Line Border Closure */
.qcc-ty-table tfoot tr:last-child th, .qcc-ty-table tfoot tr:last-child td { 
    font-weight: 800; 
    color: #000; 
    font-size: 16px; 
    border-bottom: 1px solid #eee; /* Added border bottom */
    border-top: 2px solid #eee;
}

/* Mobile Table Scroll */
@media (max-width: 600px) {
    .qcc-ty-details-section { overflow-x: auto; }
    /* Allow product names to wrap on mobile, keep price nowrap */
    .qcc-ty-table td:first-child, 
    .qcc-ty-table th:first-child {
        white-space: normal;
        min-width: 120px; /* Ensure reasonable width */
    }
}

/* NEW: WhatsApp Confirmation Box Style */
.qcc-ty-whatsapp-box {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}
.qcc-wa-icon {
    font-size: 32px;
    color: #25D366;
    margin-bottom: 10px;
}
.qcc-ty-whatsapp-box p {
    font-size: 14px;
    color: #166534;
    margin-bottom: 15px;
    line-height: 1.5;
}
.qcc-wa-btn {
    display: inline-block;
    background-color: #25D366;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s;
}
.qcc-wa-btn:hover {
    background-color: #128C7E;
}

/* Upsells */
.qcc-ty-upsells { margin-top: 40px; text-align: left; }
.qcc-ty-upsells h3 { font-size: 18px; margin-bottom: 20px; text-align: center; }
.qcc-upsell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }

/* MODERN UPSELL CARD CSS (UPDATED: White BG, No Padding, Contain Fit) */
.qcc-upsell-card-modern {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    padding-bottom: 15px;
}
.qcc-upsell-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.qcc-ucm-image {
    width: 100%;
    height: 180px; /* Slightly taller */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* White background */
    padding: 0; /* No padding to maximize size */
}
.qcc-ucm-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image visibility without cutting */
}
.qcc-ucm-details {
    padding: 15px;
}
.qcc-ucm-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.4;
    height: 40px; /* Limit height */
    overflow: hidden;
}
.qcc-ucm-price {
    color: #28a745;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 15px;
}
.qcc-add-to-order-btn {
    width: 100%;
    background-color: #000000; /* Default Black */
    color: #fff !important; 
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-transform: uppercase;
}
.qcc-add-to-order-btn:hover {
    opacity: 0.8;
}
.qcc-add-to-order-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Dark Mode Support for Thank You Page */
.qcc-dark.qcc-thank-you-wrapper { background-color: #1f1f1f; color: #e0e0e0; }
.qcc-dark .qcc-ty-title { color: #fff; }
.qcc-dark .qcc-ty-message { color: #aaa; }
.qcc-dark .qcc-ty-info-grid { border-color: #444; }
.qcc-dark .qcc-ty-info-item span { color: #aaa; }
.qcc-dark .qcc-ty-info-item strong { color: #fff; }
.qcc-dark .qcc-ty-details-section h3, .qcc-dark .qcc-ty-upsells h3 { color: #fff; border-color: #444; }
.qcc-dark .qcc-ty-table th { color: #bbb; }
.qcc-dark .qcc-ty-table td, .qcc-dark .qcc-ty-table th { border-bottom-color: #333; color: #ddd; }
.qcc-dark .qcc-ty-table tfoot tr:last-child th, .qcc-dark .qcc-ty-table tfoot tr:last-child td { color: #fff; border-bottom-color: #444; border-top-color: #444; }
/* Note Box Dark Mode */
.qcc-dark .qcc-note-box { background-color: #333; border-color: #555; }
.qcc-dark .qcc-note-content { color: #ddd; }
/* WhatsApp Box Dark Mode */
.qcc-dark .qcc-ty-whatsapp-box { background-color: #064e3b; border-color: #065f46; }
.qcc-dark .qcc-ty-whatsapp-box p { color: #a7f3d0; }
/* Modern Card Dark */
.qcc-dark .qcc-upsell-card-modern { background-color: #2d2d2d; border-color: #444; }
.qcc-dark .qcc-ucm-image { background-color: #222; }
.qcc-dark .qcc-ucm-title { color: #fff; }

/* RTL Support for Thank You Page */
.qcc-rtl.qcc-thank-you-wrapper { direction: rtl; text-align: right; }
.qcc-rtl .qcc-ty-info-grid { direction: rtl; }
/* Note Box RTL */
.qcc-rtl .qcc-note-box, .qcc-rtl .qcc-ty-details-section, .qcc-rtl .qcc-ty-upsells { text-align: right; }
.qcc-rtl .qcc-ty-table th, .qcc-rtl .qcc-ty-table td { text-align: right; }
.qcc-rtl .qcc-ty-table tfoot th { text-align: left; }

/* =========================================
   13. GOOGLE MAPS AUTOCOMPLETE FIX
   ========================================= */
/* Force Google Autocomplete dropdown above the QCC Modal */
.pac-container {
    z-index: 2147483650 !important; /* Increased to beat 2147483649 */
}

/* =========================================
   14. MARQUEE COUNTDOWN (SCROLLING TEXT)
   ========================================= */
.qcc-countdown-bar {
    width: 100%;
    /* Ensure no overflow visible */
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    /* Ensure it acts as a block level container */
    display: block; 
    position: relative;
    z-index: 1;
    /* Force max width to container width */
    max-width: 100%;
}

.qcc-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: qcc-marquee-scroll 10s linear infinite;
}

@keyframes qcc-marquee-scroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* =========================================
   15. NEW: MODERN SHIPPING SELECT
   ========================================= */
.qcc-modern-select {
    width: auto !important; /* Allow auto width to float right */
    min-width: 140px;
    max-width: 200px;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 4px 24px 4px 8px !important; /* Right padding for arrow */
    background-color: #fff !important;
    color: #333 !important;
    height: 28px !important;
    line-height: 1.2 !important;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
    /* Use right alignment for text inside select */
    text-align: right;
    direction: ltr; /* Ensure arrow stays right */
}

.qcc-modern-select:focus {
    border-color: #000 !important;
}

.qcc-dark .qcc-modern-select {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #fff !important;
}

/* =========================================
   16. MODERN SHIPPING RADIO LIST
   ========================================= */
.qcc-modern-shipping-list {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.qcc-modern-ship-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.qcc-modern-ship-item:last-child {
    border-bottom: none;
}
.qcc-modern-ship-item:hover {
    background-color: #f9f9f9;
}
.qcc-modern-ship-item.active {
    background-color: #f0fdf4; /* Light green tint */
}
.qcc-ship-radio {
    margin-right: 12px;
    display: flex;
    align-items: center;
}
.qcc-ship-radio input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #000; /* Modern browser support */
}
.qcc-ship-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.qcc-ship-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.qcc-ship-cost {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
/* Dark Mode */
.qcc-dark .qcc-modern-shipping-list {
    border-color: #444;
}
.qcc-dark .qcc-modern-ship-item {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}
.qcc-dark .qcc-modern-ship-item:hover {
    background-color: #333;
}
.qcc-dark .qcc-modern-ship-item.active {
    background-color: #1b3a1b; /* Dark green tint */
}
.qcc-dark .qcc-ship-title,
.qcc-dark .qcc-ship-cost {
    color: #fff;
}
.qcc-dark .qcc-ship-radio input[type="radio"] {
    accent-color: #fff;
}