/* Modern Backdrop Overlay */
.qcld_woo_chatbot-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

/* Main Modal Container */
.qcld_woo_chatbot-modal-content {
    background-color: #ffffff;
    margin: 2vh auto;
    border-radius: 16px;
    width: 95%;
    max-width: 1040px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(226, 232, 240, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Header */
.qcld_woo_chatbot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.qcld_woo_chatbot-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qcld_woo_chatbot-modal-title-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
}

.qcld_woo_chatbot-modal-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
}

.qcld_woo_chatbot-close-modal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.qcld_woo_chatbot-close-modal:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
    transform: rotate(90deg);
}

/* ==========================================================================
   Modern Professional Modal Body & Multi-Column Layout
   ========================================================================== */
.qcld_woo_chatbot-modal-body {
    display: grid;
    grid-template-columns: 240px 1fr 340px;
    gap: 18px;
    padding: 22px 24px;
    overflow-y: auto;
    background: #f8fafc;
    box-sizing: border-box;
}

.qcld_woo_chatbot-modal-body::-webkit-scrollbar {
    width: 6px;
}

.qcld_woo_chatbot-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.qcld_woo_chatbot-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.qcld_woo_chatbot-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modal Columns as Clean Studio Panels */
.qcld_woo_chatbot-modal-col {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.03);
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qcld_woo_chatbot-modal-col:hover {
    border-color: #cbd5e1;
}

/* Section Titles with Modern Icon Badges */
.qcld_woo_chatbot-section-title,
.qcld_woo_chatbot-output-header {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #475569 !important;
    margin: 0 0 14px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.2 !important;
}

.qcld_woo_chatbot-section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eef2ff;
    color: #6366f1;
    flex-shrink: 0;
}

.qcld_woo_chatbot-section-title-icon svg {
    stroke: currentColor;
}

.qcld_woo_chatbot-output-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live Status Pill */
.qcld_woo_chatbot-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
    text-transform: uppercase;
}

.qcld_woo_chatbot-live-status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: qcld_woo_chatbot-pulse 2s infinite;
}

/* ==========================================================================
   Left Column: Reference Image Cards
   ========================================================================== */
.qcld_woo_chatbot-original-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.qcld_woo_chatbot-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.qcld_woo_chatbot-image-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

.qcld_woo_chatbot-card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

#qcld_woo_chatbot-modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qcld_woo_chatbot-image-card:hover #qcld_woo_chatbot-modal-product-image {
    transform: scale(1.035);
}

.qcld_woo_chatbot-original-images img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Modern Upload Dropzone Card */
.qcld_woo_chatbot-image-placeholder {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    aspect-ratio: 4/5;
    padding: 14px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.qcld_woo_chatbot-image-placeholder:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
    color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(139, 92, 246, 0.15);
}

.qcld_woo_chatbot-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.qcld_woo_chatbot-upload-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ede9fe;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.qcld_woo_chatbot-image-placeholder:hover .qcld_woo_chatbot-upload-icon-badge {
    transform: scale(1.1) translateY(-2px);
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.qcld_woo_chatbot-placeholder-svg {
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.qcld_woo_chatbot-placeholder-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.1px;
}

.qcld_woo_chatbot-placeholder-subtitle {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.2;
}

.qcld_woo_chatbot-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.qcld_woo_chatbot-user-tag {
    background: rgba(124, 58, 237, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.qcld_woo_chatbot-image-hover-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 4;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.qcld_woo_chatbot-image-placeholder:hover .qcld_woo_chatbot-image-hover-overlay {
    opacity: 1;
    background: rgba(124, 58, 237, 0.9);
    transform: translateY(-1px);
}

.qcld_woo_chatbot-image-hover-overlay .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 1;
}

/* ==========================================================================
   Middle Column: Form Controls & Customization
   ========================================================================== */
.qcld_woo_chatbot-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.qcld_woo_chatbot-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qcld_woo_chatbot-tab.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.qcld_woo_chatbot-form-group {
    margin-bottom: 14px;
}

.qcld_woo_chatbot-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

.qcld_woo_chatbot-label-icon {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    flex-shrink: 0;
}

.qcld_woo_chatbot-select-wrap {
    position: relative;
    width: 100%;
}

.qcld_woo_chatbot-form-group select,
.qcld_woo_chatbot-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 13px;
    color: #1e293b;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.qcld_woo_chatbot-form-group select {
    height: 38px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
    cursor: pointer;
}

.qcld_woo_chatbot-form-group select:hover,
.qcld_woo_chatbot-form-group textarea:hover {
    border-color: #94a3b8;
}

.qcld_woo_chatbot-form-group select:focus,
.qcld_woo_chatbot-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.qcld_woo_chatbot-form-group textarea {
    height: 72px;
    resize: none;
    line-height: 1.45;
}

.qcld_woo_chatbot-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.qcld_woo_chatbot-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.qcld_woo_chatbot-btn-primary,
.qcld_woo_chatbot-btn-generate {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%) !important;
    background-size: 200% auto !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.32) !important;
    width: 100%;
    letter-spacing: 0.1px;
}

.qcld_woo_chatbot-btn-primary:hover,
.qcld_woo_chatbot-btn-generate:hover {
    background-position: right center !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.42) !important;
}

.qcld_woo_chatbot-btn-primary:active,
.qcld_woo_chatbot-btn-generate:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25) !important;
}

.qcld_woo_chatbot-btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.qcld_woo_chatbot-btn-secondary:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   Right Column: Futuristic Studio Live AI Canvas
   ========================================================================== */
.qcld_woo_chatbot-response-canvas {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-radius: 12px;
    border: 1px solid #334155;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 330px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35), 0 8px 24px -6px rgba(15, 23, 42, 0.25);
    flex-direction: column;
}

#qcld_woo_chatbot-result-placeholder {
    color: #94a3b8;
    text-align: center;
    padding: 24px 16px;
    z-index: 2;
}

.qcld_woo_chatbot-canvas-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qcld_woo_chatbot-canvas-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    margin-bottom: 6px;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
    animation: qcld_woo_chatbot-pulse 3s infinite ease-in-out;
}

.qcld_woo_chatbot-empty-heading {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: -0.1px;
}

.qcld_woo_chatbot-empty-subheading {
    font-size: 11.5px;
    color: #94a3b8;
    max-width: 220px;
    line-height: 1.4;
}

.qcld_woo_chatbot-hidden {
    display: none !important;
}

.qcld_woo_chatbot-output-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qcld_woo_chatbot-response-canvas:hover .qcld_woo_chatbot-output-media {
    transform: scale(1.02);
}

.qcld_woo_chatbot-error {
    color: #f87171;
    padding: 14px 18px;
    text-align: center;
    font-size: 12.5px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    margin: 12px;
    backdrop-filter: blur(8px);
}

.qcld_woo_chatbot-hidden-tab {
    display: none !important;
}

/* Floating Glassmorphic Palette */
.qcld_woo_chatbot-floating-palette {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 6px;
    padding: 5px;
    z-index: 10;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qcld_woo_chatbot-response-canvas:hover .qcld_woo_chatbot-floating-palette {
    opacity: 1;
    transform: translateY(0);
}

.qcld_woo_chatbot-palette-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 6px 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: inherit;
}

.qcld_woo_chatbot-palette-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.qcld_woo_chatbot-palette-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .qcld_woo_chatbot-modal-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .qcld_woo_chatbot-original-images {
        flex-direction: row;
    }
    
    .qcld_woo_chatbot-image-card,
    .qcld_woo_chatbot-image-placeholder {
        flex: 1;
        max-width: 50%;
        height: 180px;
        aspect-ratio: auto;
    }
}

@media (max-width: 600px) {
    .qcld_woo_chatbot-modal-body {
        padding: 12px;
        gap: 12px;
    }

    .qcld_woo_chatbot-original-images {
        flex-direction: column;
    }

    .qcld_woo_chatbot-image-card,
    .qcld_woo_chatbot-image-placeholder {
        max-width: 100%;
        height: 160px;
    }
}

/* Cinematic Loading Spinner */
#qcld_woo_chatbot-loading-spinner.qcld_woo_chatbot-hidden {
    display: none !important;
}

#qcld_woo_chatbot-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    border-radius: 12px;
    color: white;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.qcld_woo_chatbot-spinner-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 40%, #8b5cf6 100%);
    animation: qcld_woo_chatbot-spin 1.1s linear infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);
}

.qcld_woo_chatbot-spinner-circle::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: #0f172a;
    border-radius: 50%;
    z-index: 1;
}

.qcld_woo_chatbot-spinner-circle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #c084fc;
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 16px #c084fc;
    z-index: 2;
}

.qcld_woo_chatbot-progress-wrap {
    width: 82%;
    max-width: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.qcld_woo_chatbot-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.qcld_woo_chatbot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    background-size: 200% 100%;
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    animation: qcld_woo_chatbot-shimmer-progress 2s linear infinite;
}

.qcld_woo_chatbot-progress-percent {
    font-size: 11px;
    font-weight: 700;
    color: #c084fc;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@keyframes qcld_woo_chatbot-shimmer-progress {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes qcld_woo_chatbot-spin {
    to { transform: rotate(360deg); }
}

@keyframes qcld_woo_chatbot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Modal Footer & Actions */
.qcld_woo_chatbot-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
    gap: 16px;
}

.qcld_woo_chatbot-modal-footer-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1;
}

.qcld_woo_chatbot-modal-footer-hint svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.qcld_woo_chatbot-modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

/* Variations Container & Selects */
.qcld_woo_chatbot-modal-variations-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.qcld_woo_chatbot-modal-var-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.qcld_woo_chatbot-modal-variation-select {
    height: 42px;
    padding: 6px 32px 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 115px;
    max-width: 175px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.qcld_woo_chatbot-modal-variation-select:hover {
    border-color: #94a3b8;
}

.qcld_woo_chatbot-modal-variation-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.qcld_woo_chatbot-modal-variation-select.qcld_woo_chatbot-select-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: qcld_woo_chatbot-shake 0.3s ease-in-out;
}

@keyframes qcld_woo_chatbot-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Quantity Stepper in Modal */
.qcld_woo_chatbot-modal-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    height: 42px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.qcld_woo_chatbot-modal-quantity-wrapper:hover {
    border-color: #94a3b8;
}

.qcld_woo_chatbot-modal-quantity-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.qcld_woo_chatbot-qty-btn {
    width: 34px;
    height: 42px;
    background: #f8fafc;
    border: none;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.qcld_woo_chatbot-qty-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}

.qcld_woo_chatbot-qty-btn:active:not(:disabled) {
    background: #e2e8f0;
}

.qcld_woo_chatbot-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafc;
}

.qcld_woo_chatbot-modal-qty-input {
    width: 44px;
    height: 42px;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    text-align: center;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    padding: 0 2px !important;
    margin: 0;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}

.qcld_woo_chatbot-modal-qty-input::-webkit-outer-spin-button,
.qcld_woo_chatbot-modal-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Modal Add to Cart Button */
#qcld_woo_chatbot-modal-add-to-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 20px !important;
    height: 42px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.2px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    outline: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    -webkit-font-smoothing: antialiased;
    max-width: 250px;
}

#qcld_woo_chatbot-modal-add-to-cart-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
    color: #ffffff !important;
}

#qcld_woo_chatbot-modal-add-to-cart-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
}

#qcld_woo_chatbot-modal-add-to-cart-btn:disabled {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#qcld_woo_chatbot-modal-add-to-cart-btn .qcld_woo_chatbot-btn-icon-svg {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
    margin: 0 !important;
    stroke: currentColor !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.25s ease;
}

#qcld_woo_chatbot-modal-add-to-cart-btn:hover .qcld_woo_chatbot-btn-icon-svg {
    transform: scale(1.12);
}

/* Responsive Footer Styling */
@media (max-width: 768px) {
    .qcld_woo_chatbot-modal-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 10px;
    }

    .qcld_woo_chatbot-modal-footer-hint {
        display: none;
    }

    .qcld_woo_chatbot-modal-footer-actions {
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .qcld_woo_chatbot-modal-variations-container {
        width: 100%;
        flex-wrap: wrap;
    }

    .qcld_woo_chatbot-modal-var-item {
        flex: 1 1 calc(50% - 4px);
        min-width: 110px;
    }

    .qcld_woo_chatbot-modal-variation-select {
        width: 100%;
        max-width: none;
    }

    .qcld_woo_chatbot-modal-quantity-wrapper {
        flex-shrink: 0;
    }

    #qcld_woo_chatbot-modal-add-to-cart-btn {
        flex: 1;
        min-width: 130px;
    }
}

/* Try-On Button on Product Page */
.qcld_woo_chatbot-button-wrapper {
    margin: 16px 0 !important;
    clear: both;
    display: block;
}

.qcld_woo_chatbot-button-wrapper #qcld_woo_chatbot-open-modal-btn,
.qcld_woo_chatbot-button-wrapper button.qcld_woo_chatbot-tryon-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 12px 24px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.2px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%) !important;
    background-size: 200% auto !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    outline: none !important;
    overflow: hidden !important;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
}

.qcld_woo_chatbot-button-wrapper #qcld_woo_chatbot-open-modal-btn:hover,
.qcld_woo_chatbot-button-wrapper button.qcld_woo_chatbot-tryon-btn:hover {
    background-position: right center !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 20px 0 rgba(124, 58, 237, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.qcld_woo_chatbot-button-wrapper #qcld_woo_chatbot-open-modal-btn:active,
.qcld_woo_chatbot-button-wrapper button.qcld_woo_chatbot-tryon-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px 0 rgba(124, 58, 237, 0.3) !important;
}

.qcld_woo_chatbot-button-wrapper .qcld_woo_chatbot-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.qcld_woo_chatbot-button-wrapper .qcld_woo_chatbot-btn-icon-svg {
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle !important;
    margin: 0 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.qcld_woo_chatbot-button-wrapper #qcld_woo_chatbot-open-modal-btn:hover .qcld_woo_chatbot-btn-icon-svg,
.qcld_woo_chatbot-button-wrapper button.qcld_woo_chatbot-tryon-btn:hover .qcld_woo_chatbot-btn-icon-svg {
    transform: rotate(15deg) scale(1.12);
}

.qcld_woo_chatbot-button-wrapper .qcld_woo_chatbot-btn-emoji {
    font-size: 16px;
    line-height: 1;
}

.qcld_woo_chatbot-button-wrapper .qcld_woo_chatbot-btn-text {
    display: inline-block !important;
    vertical-align: middle !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.qcld_woo_chatbot-placeholder-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}
