/* inqiro Widget v3 – Modern Design */

/* =============================================
   Reset & Base
   ============================================= */
#inqiro-root *, #inqiro-root *::before, #inqiro-root *::after {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#inqiro-root h1, #inqiro-root h2, #inqiro-root h3, #inqiro-root h4,
#inqiro-root p, #inqiro-root ul, #inqiro-root ol, #inqiro-root li,
#inqiro-root figure, #inqiro-root blockquote, #inqiro-root pre {
    margin: 0;
    padding: 0;
}

#inqiro-root button, #inqiro-root input, #inqiro-root textarea {
    margin: 0;
}

/* =============================================
   Floating Mode: Toggle Button
   ============================================= */
.iq-toggle {
    position: fixed;
    bottom: 24px;
    z-index: 99998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: iq-toggle-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iq-toggle-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.iq-toggle:hover {
    transform: scale(1.1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.2);
}

.iq-toggle:active {
    transform: scale(0.95);
}

.iq-toggle svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iq-toggle.iq-open svg {
    transform: rotate(90deg);
}

[data-position="bottom-right"] .iq-toggle { right: 24px; }
[data-position="bottom-left"] .iq-toggle { left: 24px; }

/* =============================================
   Floating Mode: Panel
   ============================================= */
.iq-panel {
    position: fixed;
    bottom: 100px;
    z-index: 99999;
    width: 400px;
    max-height: 600px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iq-panel.iq-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

[data-position="bottom-right"] .iq-panel { right: 24px; }
[data-position="bottom-left"] .iq-panel { left: 24px; }

/* =============================================
   Inline Mode (Shortcode / PHP)
   ============================================= */
.iq-inline-container {
    width: 100%;
    min-height: 420px;
    max-height: none;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* =============================================
   Header
   ============================================= */
.iq-header {
    padding: 16px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
}

/* Subtle gradient overlay for depth */
.iq-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.iq-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.iq-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.iq-header-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.iq-header-info span {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

.iq-header-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.iq-header-actions {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.iq-header-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}

.iq-header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.iq-header-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* =============================================
   Messages
   ============================================= */
.iq-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    background: #fafbfc;
}

/* Custom scrollbar */
.iq-messages::-webkit-scrollbar { width: 5px; }
.iq-messages::-webkit-scrollbar-track { background: transparent; }
.iq-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
.iq-messages::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Message bubbles */
.iq-msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    animation: iq-msg-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iq-msg-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.iq-msg-user {
    align-self: flex-end;
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.iq-msg-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #1a1a2e;
    border-bottom-left-radius: 6px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* =============================================
   Markdown Rendering in Bot Messages
   ============================================= */
.iq-msg-content {
    font-size: 14px;
    line-height: 1.6;
}

.iq-msg-content strong {
    font-weight: 600;
}

.iq-msg-content em {
    font-style: italic;
}

.iq-msg-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.iq-msg-content a:hover {
    color: #1d4ed8;
}

.iq-msg-content ul {
    margin: 8px 0 !important;
    padding-left: 24px !important;
    list-style: disc !important;
}

.iq-msg-content ul li {
    margin-bottom: 4px;
    padding-left: 4px;
    font-size: 13.5px;
    line-height: 1.5;
}

.iq-msg-content .iq-code-inline {
    background: #f0f1f3;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 12.5px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.iq-msg-content .iq-code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 12.5px;
    line-height: 1.55;
    overflow-x: auto;
    margin: 8px 0;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =============================================
   Sources
   ============================================= */
.iq-sources {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 11.5px;
    color: #6b7280;
}

.iq-sources-label {
    font-weight: 600;
    color: #4b5563;
}

.iq-sources a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.15s;
}

.iq-sources a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.iq-source-doc {
    color: #6b7280;
    font-style: italic;
}

/* =============================================
   Typing Indicator
   ============================================= */
.iq-typing {
    align-self: flex-start;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    display: flex;
    gap: 5px;
    align-items: center;
    animation: iq-msg-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.iq-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: iq-bounce 1.4s ease-in-out infinite;
}

.iq-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.iq-typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes iq-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* =============================================
   Input Area
   ============================================= */
.iq-input-area {
    padding: 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: #ffffff;
}

.iq-input {
    flex: 1;
    border: 1.5px solid #e2e5ea;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
    max-height: 100px;
    line-height: 1.45;
    font-family: inherit;
    background: #f8f9fb;
    color: #1a1a2e;
}

.iq-input::placeholder {
    color: #9ca3af;
}

.iq-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #ffffff;
}

.iq-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s, box-shadow 0.15s;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.iq-send-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iq-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.iq-send-btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.iq-send-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* =============================================
   Lead Capture
   ============================================= */
.iq-lead-form {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.iq-lead-form p {
    font-size: 12.5px;
    color: #374151;
    margin: 0 0 8px;
    line-height: 1.4;
}

.iq-lead-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.iq-lead-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #ffffff;
}

.iq-lead-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.iq-lead-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
}

.iq-lead-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =============================================
   Branding
   ============================================= */
.iq-branding {
    text-align: center;
    padding: 8px;
    font-size: 10.5px;
    color: #b0b8c4;
    background: transparent;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.iq-branding a {
    color: #b0b8c4;
    text-decoration: none;
    transition: color 0.15s;
}

.iq-branding a:hover { color: #6b7280; }

/* =============================================
   Proactive Bubble (floating mode only)
   ============================================= */
.iq-proactive {
    position: fixed;
    bottom: 96px;
    z-index: 99997;
    max-width: 300px;
    padding: 14px 36px 14px 18px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
    animation: iq-proactive-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.5;
}

[data-position="bottom-right"] .iq-proactive { right: 24px; }
[data-position="bottom-left"] .iq-proactive { left: 24px; }

.iq-proactive::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.04);
}

[data-position="bottom-right"] .iq-proactive::after { right: 28px; }
[data-position="bottom-left"] .iq-proactive::after { left: 28px; }

.iq-proactive-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.15s;
    border-radius: 4px;
}

.iq-proactive-close:hover {
    color: #4b5563;
}

@keyframes iq-proactive-in {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 440px) {
    .iq-panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 130px);
        bottom: 96px;
        right: 8px !important;
        left: 8px !important;
        border-radius: 16px;
    }

    .iq-proactive {
        right: 8px !important;
        left: 8px !important;
        max-width: calc(100vw - 80px);
    }

    .iq-msg { max-width: 88%; }

    .iq-messages { padding: 16px; }
}

@media (max-width: 600px) {
    .iq-inline-container {
        border-radius: 12px;
    }
}

/* After Hours */
#inqiro-root .iq-after-hours-bar {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
    flex-shrink: 0;
}

#inqiro-root .iq-after-hours-bar .iq-lead-form-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

#inqiro-root .iq-after-hours-bar .iq-lead-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
}

#inqiro-root .iq-after-hours-bar .iq-lead-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

#inqiro-root .iq-after-hours-text {
    text-align: center;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

#inqiro-root .iq-status-offline {
    color: rgba(255,255,255,0.7) !important;
}

#inqiro-root .iq-header-info .iq-status-offline::before {
    background: #ef4444 !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6) !important;
}

/* Handoff */
.iq-handoff-btn {
    display: block;
    margin-top: 8px;
    padding: 6px 14px;
    border: 1.5px solid;
    border-radius: 16px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.iq-handoff-btn:hover {
    background: rgba(59, 130, 246, 0.08);
}

.iq-handoff-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.iq-handoff-input {
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
}

.iq-handoff-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

.iq-handoff-submit {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* FAQ shortcode */
.iq-faq-container {
    max-width: 800px;
}

.iq-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.iq-faq-question {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.iq-faq-question:hover {
    background: #f3f4f6;
}

.iq-faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.iq-faq-answer.iq-faq-open {
    padding: 14px 18px;
    max-height: 500px;
}

/* =============================================
   Sentiment - Frustrated Message Indicator
   ============================================= */
.iq-msg-frustrated {
    border-left: 3px solid #ef4444;
}

/* =============================================
   GDPR Consent Overlay
   ============================================= */
.iq-consent-overlay {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fafbfc;
}

.iq-consent-content {
    text-align: center;
    max-width: 300px;
}

.iq-consent-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.iq-consent-text {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 12px;
}

.iq-consent-content .iq-privacy-link {
    display: inline-block;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.15s;
}

.iq-consent-content .iq-privacy-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.iq-consent-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.iq-consent-accept {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}

.iq-consent-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.iq-consent-decline {
    padding: 8px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.iq-consent-decline:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* =============================================
   AI Badge in Header
   ============================================= */
.iq-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iq-ai-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* =============================================
   Branding Links
   ============================================= */
.iq-ai-disclosure {
    font-size: 10px;
    color: #9ca3af;
}

.iq-branding-link {
    color: #b0b8c4 !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.iq-branding-link:hover {
    color: #6b7280 !important;
}

/* =============================================
   Product Cards (WooCommerce)
   ============================================= */
.iq-product-cards {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0 4px;
    margin-top: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.iq-product-cards::-webkit-scrollbar {
    display: none;
}

.iq-product-card {
    min-width: 150px;
    max-width: 170px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.iq-product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.iq-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

.iq-product-info {
    padding: 8px 10px;
}

.iq-product-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.iq-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 6px;
}

.iq-product-stock {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.iq-out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

.iq-product-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iq-product-btn {
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    text-align: center;
}

.iq-product-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.iq-product-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.iq-product-btn-added {
    background: #059669 !important;
}

.iq-product-view {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.iq-product-view:hover {
    color: #374151;
}

/* Cart Toast */
.iq-cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #059669;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.iq-cart-toast.iq-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   Copy Button
   ============================================= */
.iq-msg-bot {
    position: relative;
}

.iq-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    font-size: 13px;
    line-height: 1;
}

.iq-msg-bot:hover .iq-copy-btn {
    opacity: 1;
}

.iq-copy-btn:hover {
    color: #4b5563;
    background: rgba(0, 0, 0, 0.08);
}

.iq-copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.iq-copied {
    color: #059669 !important;
    opacity: 1 !important;
}

/* =============================================
   Feedback (Thumbs Up/Down)
   ============================================= */
.iq-feedback {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.iq-fb-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    color: #c0c7d0;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
}

.iq-fb-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.iq-fb-btn:hover {
    color: #6b7280;
    background: rgba(0, 0, 0, 0.04);
}

.iq-fb-active {
    color: #059669 !important;
    border-color: #059669;
    background: rgba(5, 150, 105, 0.08);
    cursor: default;
}

.iq-fb-negative.iq-fb-active {
    color: #ef4444 !important;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* =============================================
   Suggested Quick-Reply Chips
   ============================================= */
.iq-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
    animation: iq-msg-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iq-suggestion-chip {
    padding: 8px 14px;
    border: 1.5px solid #e2e5ea;
    border-radius: 18px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-family: inherit;
}

.iq-suggestion-chip:hover {
    background: rgba(59, 130, 246, 0.06);
    color: #2563eb;
}

/* =============================================
   Voice Input (Mic Button)
   ============================================= */
.iq-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.iq-mic-btn:hover {
    color: #4b5563;
    background: rgba(0, 0, 0, 0.04);
}

.iq-mic-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.iq-mic-recording {
    color: #ef4444 !important;
    animation: iq-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes iq-mic-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Prevent iOS zoom on input focus (requires font-size >= 16px) */
@supports (-webkit-touch-callout: none) {
    #inqiro-root input,
    #inqiro-root textarea,
    .iq-input,
    .iq-lead-input,
    .iq-handoff-input {
        font-size: 16px;
    }
}
