/**
 * Coolsafety Chatbot Widget Styles
 * Version: 2.4.1 - Markdown rendering + comparison tables
 */

.csc-widget {
    --csc-color: #0376c6;
    position: fixed;
    bottom: 10px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}
.csc-bottom-right { right: 20px; }
.csc-bottom-left { left: 20px; }

/* Toggle Button */
.csc-toggle {
    /* Grootte instelbaar via --csc-btn-size (default 60px) */
    width:  var(--csc-btn-size, 60px);
    height: var(--csc-btn-size, 60px);
    border-radius: 50%;
    /* --csc-btn-bg wordt server-side gezet: var(--csc-color) of transparent */
    background: var(--csc-btn-bg, var(--csc-color));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transition: transform .3s, box-shadow .3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* GEEN overflow:hidden zodat transparante PNG goed rendeert */
    overflow: visible;
    box-sizing: border-box;
}
/* Transparante modus: geen achtergrond, geen schaduw op de knop zelf */
.csc-toggle.csc-btn-transparent {
    background: transparent !important;
    box-shadow: none !important;
}
.csc-toggle.csc-btn-transparent:hover {
    box-shadow: none !important;
}
.csc-toggle { transition: transform .3s, box-shadow .3s, opacity .25s; }
.csc-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 30px rgba(0,0,0,.25); }

/* SVG chat-icoon (standaard, geen afbeelding ingesteld) */
.csc-icon-chat {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: #fff;
    transition: opacity .25s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Bot-afbeelding (custom upload) */
.csc-icon-bot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    transition: opacity .25s;
    pointer-events: none;
    user-select: none;
}

/* Close X — getoond bovenop bij open */
.csc-icon-close {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    z-index: 2;
}
.csc-icon-close svg {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke: #fff;
}

/* Open-staat: content verbergen, X tonen */
.csc-widget.open .csc-icon-chat { opacity: 0; }
.csc-widget.open .csc-icon-bot  { opacity: 0; }
.csc-widget.open .csc-icon-close { opacity: 1; }

/* Window */
.csc-window {
    position: fixed;
    bottom: calc(var(--csc-btn-size, 60px) + 20px);
    right: 20px;
    width: var(--csc-popup-width, 500px);   /* instelbaar via plugin */
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.95);
    transition: opacity .3s, visibility .3s, transform .3s, width .3s, max-height .3s;
}
.csc-bottom-left .csc-window { right: auto; left: 20px; }
.csc-widget.open .csc-window { opacity: 1; visibility: visible; transform: translateY(0) scale(1); bottom: 10px; }
/* Knop verbergen als chat open is — popup vult de volledige hoogte t/m onderkant */
.csc-widget.open .csc-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
    transition: opacity .25s, transform .25s;
}

/* Enlarged state: basis + uitbreiding (beide instelbaar via plugin) */
.csc-widget.csc-enlarged .csc-window {
    width: calc(var(--csc-popup-width, 500px) + var(--csc-popup-expand, 300px));
    max-height: calc(100vh - 90px);
}

/* Mobile: always full-width, no resize button */
@media (max-width: 600px) {
    .csc-widget {
        bottom: 10px !important;
        right: 12px !important;
        left: auto !important;
        position: fixed !important;
    }
    .csc-window {
        left: 10px !important;
        right: 10px !important;
        bottom: calc(var(--csc-btn-size, 60px) + 20px) !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - 110px) !important;
        border-radius: 14px !important;
    }
    .csc-resize-btn { display: none !important; }
    .csc-widget.csc-enlarged .csc-window {
        width: auto !important;
    }
}

/* Header */
.csc-header {
    background: var(--csc-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.csc-header-info { display: flex; align-items: center; gap: 12px; }
.csc-avatar { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #fff; }
.csc-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.csc-title { color: #fff; font-weight: 600; font-size: 15px; }
.csc-status { color: rgba(255,255,255,.9); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.csc-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.csc-dot.offline { background: #f87171; animation: none; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.csc-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.csc-resize-btn { background: rgba(255,255,255,.2); border: none; height: 32px; width: 32px; border-radius: 8px; color: #fff; font-size: 16px; cursor: pointer; transition: background .2s; padding: 0; display: flex; align-items: center; justify-content: center; }
.csc-resize-btn:hover { background: rgba(255,255,255,.3); }
.csc-close-btn { background: rgba(255,255,255,.2); border: none; height: 32px; border-radius: 8px; color: #fff; font-size: 16px; cursor: pointer; transition: background .2s; padding: 0 10px; }
.csc-close-btn:hover { background: rgba(255,255,255,.3); }

/* Messages */
.csc-messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #f8fafc; min-height: 200px; }
.csc-msg { display: flex; gap: 10px; max-width: 92%; animation: slideIn .3s; min-width: 0; }
@keyframes slideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.csc-msg-out { align-self: flex-end; flex-direction: row-reverse; }
.csc-msg-avatar { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.csc-msg-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.csc-msg-in .csc-msg-avatar { background: #fff; }
.csc-msg-out .csc-msg-avatar { background: #e2e8f0; }
.csc-msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow: hidden; min-width: 0; }
.csc-msg-in .csc-msg-bubble { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.csc-msg-out .csc-msg-bubble { background: var(--csc-color); color: #fff; border-bottom-right-radius: 4px; }
.csc-msg-bubble a { color: inherit; text-decoration: underline; }

/* Typing */
.csc-typing { display: flex; gap: 10px; }
.csc-typing-dots { background: #fff; border: 1px solid #e2e8f0; padding: 12px 18px; border-radius: 16px; border-bottom-left-radius: 4px; display: flex; gap: 5px; }
.csc-typing-dots span { width: 8px; height: 8px; background: #94a3b8; border-radius: 50%; animation: bounce 1.4s infinite; }
.csc-typing-dots span:nth-child(1) { animation-delay: 0s; }
.csc-typing-dots span:nth-child(2) { animation-delay: .2s; }
.csc-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-8px)} }

/* Quick Actions */
.csc-quick { padding: 0 20px 15px; display: flex; gap: 8px; flex-wrap: wrap; background: #f8fafc; flex-shrink: 0; position: relative; }
.csc-quick-close { position: absolute; top: -8px; right: 12px; width: 20px; height: 20px; background: #e2e8f0; border: none; border-radius: 50%; font-size: 12px; color: #64748b; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.csc-quick-close:hover { background: #cbd5e1; }
.csc-quick button:not(.csc-quick-close) { padding: 8px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 13px; color: #64748b; cursor: pointer; transition: all .2s; }
.csc-quick button:not(.csc-quick-close):hover { background: var(--csc-color); border-color: var(--csc-color); color: #fff; }

/* Input */
.csc-input-area { padding: 15px 20px; background: #fff; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; flex-shrink: 0; }
.csc-input-area input { flex: 1; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.csc-input-area input:focus { border-color: var(--csc-color); box-shadow: 0 0 0 3px rgba(3,118,198,.15); }
.csc-send { width: 44px; height: 44px; background: var(--csc-color); border: none; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.csc-send:hover { transform: scale(1.05); }
.csc-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.csc-send svg { width: 20px; height: 20px; color: #fff; }

/* Rating */
#csc-rating.csc-rating { 
    padding: 12px 20px !important; 
    background: #fff !important; 
    border-top: 1px solid #e2e8f0 !important; 
    position: relative !important;
    flex-shrink: 0 !important;
}
#csc-rating .csc-rating-close { 
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: none !important; 
    border: none !important; 
    font-size: 16px !important; 
    color: #94a3b8 !important; 
    cursor: pointer !important; 
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important; 
}
#csc-rating .csc-rating-close:hover { color: #64748b !important; }
#csc-rating p { 
    margin: 0 0 12px 0 !important; 
    padding: 0 !important;
    font-weight: 500 !important; 
    font-size: 13px !important; 
    color: #475569 !important;
    text-align: center !important;
}
#csc-rating .csc-stars { 
    display: flex !important; 
    flex-direction: row !important;
    justify-content: center !important; 
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#csc-rating .csc-stars button { 
    width: 32px !important; 
    height: 32px !important; 
    min-width: 32px !important;
    min-height: 32px !important;
    border: 1px solid #e2e8f0 !important; 
    border-radius: 6px !important; 
    background: #fff !important; 
    font-size: 16px !important; 
    cursor: pointer !important; 
    transition: all .2s !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}
#csc-rating .csc-stars button:hover { border-color: var(--csc-color) !important; transform: scale(1.1) !important; }
#csc-rating .csc-stars button.selected { border-color: var(--csc-color) !important; background: rgba(3,118,198,.15) !important; }

/* Powered */
.csc-powered { padding: 10px; text-align: center; font-size: 11px; color: #94a3b8; background: #fff; }

/* Verify Box - hergebruik verificatie */
.csc-verify-box { margin-top: 5px; }
.csc-verify-box p { margin: 0 0 10px; font-size: 14px; }
.csc-verify-value { background: #f1f5f9; padding: 8px 12px; border-radius: 8px; font-family: monospace; font-size: 13px; }
.csc-verify-buttons { display: flex; gap: 8px; margin-top: 12px; }
.csc-verify-yes, .csc-verify-no { flex: 1; padding: 10px 12px; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; }
.csc-verify-yes { background: var(--csc-color); color: #fff; }
.csc-verify-yes:hover { filter: brightness(1.1); }
.csc-verify-no { background: #e2e8f0; color: #475569; }
.csc-verify-no:hover { background: #cbd5e1; }

.csc-verify-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.csc-verify-fields { display: flex; gap: 8px; margin-bottom: 8px; }
.csc-verify-postcode { flex: 2; }
.csc-verify-huisnr { flex: 1; }
.csc-verify-form input { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.csc-verify-form input:focus { outline: none; border-color: var(--csc-color); box-shadow: 0 0 0 3px rgba(3,118,198,.15); }
.csc-verify-or { text-align: center; color: #94a3b8; font-size: 12px; margin: 8px 0; }
.csc-verify-submit { width: 100%; padding: 10px; background: var(--csc-color); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 8px; }
.csc-verify-submit:hover { filter: brightness(1.1); }
.csc-verify-chosen { color: #22c55e; font-weight: 500; margin-top: 8px; }

/* Offline */
.csc-widget.offline .csc-input-area { opacity: .5; pointer-events: none; }
.csc-offline-msg { padding: 15px 20px; background: #fef3c7; color: #92400e; text-align: center; font-size: 13px; }

/* Scrollbar */
.csc-messages::-webkit-scrollbar { width: 6px; }
.csc-messages::-webkit-scrollbar-track { background: transparent; }
.csc-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Mode Tabs */
.csc-mode-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}
.csc-mode-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
    border-bottom: 2px solid transparent;
}
.csc-mode-tab:hover { color: #334155; background: #f1f5f9; }
.csc-mode-tab.active { 
    color: var(--csc-color); 
    border-bottom-color: var(--csc-color);
    background: #fff;
}

/* Product Cards */
.csc-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
}
.csc-product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.csc-product-header {
    padding: 10px 12px 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.csc-product-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--csc-color);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.csc-product-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csc-product-body {
    display: flex;
    gap: 12px;
    padding: 8px 12px 12px;
    align-items: flex-start;
}

.csc-product-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    flex-shrink: 0;
}
.csc-product-info { 
    flex: 1; 
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.csc-product-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--csc-color);
}
.csc-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.csc-product-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--csc-color);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .15s; 
}
.csc-product-link:hover { filter: brightness(1.1); }
.csc-product-cart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    outline: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    font-family: inherit;
}
.csc-product-cart:hover { background: #15803d; }
.csc-product-cart.csc-cart-loading {
    pointer-events: none;
    opacity: .7;
}
.csc-product-cart.csc-cart-added {
    background: #22c55e;
    pointer-events: none;
}
.csc-cart-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: csc-spin .5s linear infinite;
}
@keyframes csc-spin {
    to { transform: rotate(360deg); }
}

/* Invoice download card */
.csc-invoice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
}
.csc-invoice-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.csc-invoice-info {
    flex: 1;
    min-width: 0;
}
.csc-invoice-title {
    font-weight: 600;
    font-size: 12px;
    color: #1e293b;
}
.csc-invoice-status {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.csc-invoice-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #e2e8f0;
    font-size: 14px;
    cursor: default;
    flex-shrink: 0;
    transition: background .15s;
}
.csc-invoice-download.csc-invoice-ready {
    background: var(--csc-color);
    cursor: pointer;
}
.csc-invoice-download.csc-invoice-ready:hover {
    filter: brightness(1.1);
}
.csc-invoice-download.csc-invoice-unavailable {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Mode switch notification */
.csc-mode-switch {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    text-align: center;
    font-size: 13px;
    color: #0369a1;
}
.csc-mode-switch strong { display: block; margin-bottom: 4px; }

/* Kennisbank indicator */
.csc-knowledge-indicator {
    margin-top: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 10px;
    color: #92400e;
    display: inline-block;
    cursor: help;
}

/* Markdown rendering in chat bubbles */
.csc-msg-bubble .csc-md-h {
    margin: 8px 0 4px;
    padding: 0;
    line-height: 1.3;
    color: #1e293b;
}
.csc-msg-bubble h3.csc-md-h { font-size: 16px; }
.csc-msg-bubble h4.csc-md-h { font-size: 15px; }
.csc-msg-bubble h5.csc-md-h { font-size: 14px; font-weight: 600; }
.csc-msg-bubble h6.csc-md-h { font-size: 13px; font-weight: 600; }
.csc-msg-bubble .csc-md-h:first-child { margin-top: 0; }

.csc-msg-bubble .csc-md-img {
    max-width: 100%;
    border-radius: 8px;
    margin: 6px 0;
    display: block;
}

.csc-msg-bubble .csc-md-list {
    margin: 6px 0;
    padding-left: 20px;
}
.csc-msg-bubble .csc-md-list li {
    margin: 2px 0;
    font-size: 13px;
    line-height: 1.5;
}
/* Productkaart in genummerde lijst - nummering zit nu IN de card */
.csc-msg-bubble ol.csc-md-list {
    list-style: none;
    padding-left: 0;
}
.csc-msg-bubble ol.csc-md-list li {
    margin: 10px 0;
}
.csc-msg-bubble ol.csc-md-list li .csc-product-card {
    margin-top: 0;
    width: 100%;
}

.csc-msg-bubble .csc-md-hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}

.csc-msg-bubble .csc-md-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    overflow-x: auto;
    margin: 6px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.csc-msg-bubble .csc-md-code code {
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.csc-msg-bubble .csc-md-inline {
    background: #f1f5f9;
    color: #c7254e;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.csc-msg-bubble del { opacity: 0.6; }
.csc-msg-bubble em { font-style: italic; }

/* Markdown table in chat */
.csc-table-wrap {
    overflow-x: auto;
    margin: 8px 0;
    -webkit-overflow-scrolling: touch;
}
.csc-md-table {
    border-collapse: collapse;
    font-size: 12px;
    width: 100%;
    min-width: 200px;
}
.csc-md-table th, .csc-md-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    text-align: left;
}
.csc-md-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.csc-md-table td { color: #475569; }
.csc-md-table tr:nth-child(even) td { background: #f8fafc; }

/* Product Comparison Table */
.csc-compare-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0;
    background: #fff;
    font-size: 12px;
}
.csc-compare-row {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}
.csc-compare-row:last-child { border-bottom: none; }
.csc-compare-label {
    flex: 0 0 70px;
    padding: 6px 8px;
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    font-size: 11px;
    display: flex;
    align-items: center;
    border-right: 1px solid #f1f5f9;
}
.csc-compare-cell {
    flex: 1;
    padding: 6px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    word-break: break-word;
    min-width: 0;
}
.csc-compare-cell + .csc-compare-cell {
    border-left: 1px solid #f1f5f9;
}
.csc-compare-header {
    background: #f8fafc;
}
.csc-compare-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}
.csc-compare-title-row {
    background: #f0f9ff;
}
.csc-compare-title-row .csc-compare-cell {
    font-size: 11px;
    line-height: 1.3;
}
.csc-compare-price {
    font-weight: 700;
    color: var(--csc-color);
    font-size: 13px;
}
.csc-compare-price-row {
    border-bottom: 2px solid #e2e8f0;
}
.csc-compare-actions {
    background: #f8fafc;
    padding-top: 4px;
    padding-bottom: 4px;
}
.csc-compare-actions .csc-product-link {
    font-size: 11px;
    padding: 5px 10px;
}
.csc-compare-actions .csc-compare-cart-btn {
    padding: 5px 8px;
    font-size: 11px;
}

/* ============================================
   HUMAN CONTACT ESCAPE PANEL
   ============================================ */

/* Quick action button styling for human contact */
.csc-quick-human {
    width: 100%;
    text-align: center;
}

/* Human Contact Panel (fullscreen overlay within chat window) */
.csc-human-contact {
    background: #fff;
    flex: 1;
    overflow-y: auto;
}

.csc-hc-panel {
    padding: 0;
}

.csc-hc-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
}
.csc-hc-header strong {
    font-size: 15px;
    color: #1e293b;
}
.csc-hc-back {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.csc-hc-back:hover { background: #cbd5e1; }

/* Contact option rows */
.csc-hc-option {
    border-bottom: 1px solid #f1f5f9;
}
.csc-hc-option:last-child {
    border-bottom: none;
}

.csc-hc-option-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background .15s;
}
.csc-hc-option-header:hover {
    background: #f8fafc;
}

.csc-hc-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.csc-hc-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.csc-hc-option-label {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}
.csc-hc-option-response {
    font-size: 12px;
    color: var(--csc-color);
    font-weight: 500;
}

.csc-hc-chevron {
    font-size: 20px;
    color: #94a3b8;
    transition: transform .2s;
    flex-shrink: 0;
}
.csc-hc-option.open .csc-hc-chevron {
    transform: rotate(90deg);
}

/* Expanded detail section */
.csc-hc-option-detail {
    padding: 0 20px 16px 74px; /* align with text after icon */
}

.csc-hc-hours {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.csc-hc-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
}

.csc-hc-action-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--csc-color);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter .2s;
    box-sizing: border-box;
}
.csc-hc-action-btn:hover {
    filter: brightness(1.1);
    color: #fff !important;
}

/* Inline human contact options (shown in chat message) */
.csc-hc-inline {
    margin-top: 4px;
}
.csc-hc-inline p {
    margin: 0 0 10px;
    font-size: 13px;
}
.csc-hc-inline-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color .2s, background .2s;
}
.csc-hc-inline-option:hover {
    border-color: var(--csc-color);
    background: #f0f9ff;
}
.csc-hc-inline-option .csc-hc-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
}
.csc-hc-inline-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.csc-hc-inline-info strong {
    font-size: 13px;
    color: #1e293b;
}
.csc-hc-inline-info small {
    font-size: 11px;
    color: var(--csc-color);
    font-weight: 500;
}

/* Human contact trigger link (can be used in bot messages) */
.csc-human-trigger {
    color: var(--csc-color) !important;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

/* Disclaimer na productadvies */
.csc-disclaimer {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
    padding: 8px 10px;
    background: #f8fafc;
    border-left: 3px solid #e2e8f0;
    border-radius: 4px;
    margin-top: 2px;
}

.csc-toggle, .csc-product-cart {    
  margin-bottom: 0px !important;
}
