/* --------------------------------------------------------------------------
     Chatbot Styles — organized for readability
     Sections: Base / Container / Launcher / Window / Header / Content / Bubbles
                         Product Cards / Location / Order Cards / Input & Buttons / Forms
 -------------------------------------------------------------------------- */

/* -----------------------------
     Base
     ----------------------------- */
button, input {
    font-family: "Lato", sans-serif;
}

/* -----------------------------
     Container & Launcher
     ----------------------------- */
#wb-chatbot-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Brand color CSS variables — overridden by wp_add_inline_style from admin option */
    --wb-brand-color: #5C4B41;
    --wb-brand-text:  #ffffff;
    --wb-brand-dark:  color-mix(in srgb, var(--wb-brand-color) 80%, #000);
    --wb-brand-hover: color-mix(in srgb, var(--wb-brand-color) 85%, #fff);
}
@media (max-width: 990px) {
    #wb-chatbot-container { bottom: 70px; }
    button, input {
        font-size: 12px !important;
    }

}


#wb-chatbot-launcher {
    background: var(--wb-brand-color); /* Brand brown */
    color: var(--wb-brand-text);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -----------------------------
     Window (frame)
     ----------------------------- */
#wb-chatbot-window {
    position: absolute;
    bottom:0;
    width: 400px;
    height: 600px; /* fixed height required for scroll area */
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    display: none; /* toggled by JS */
    flex-direction: column;
    overflow: hidden;
    /* margin-bottom: 10px; */
    /* border: 1px solid #E5E5E5; */
}
/* --- Mobile: full-width bottom-sheet style --- */
@media (max-width: 520px) {
    #wb-chatbot-container {
        left: 8px;
        right: 8px;
        bottom: 10px;
        transform: none;
        width: auto;
        align-items: stretch;
    }

    #wb-chatbot-launcher {
        align-self: center;
    }

    #wb-chatbot-window {
        width: 100%;
        height: calc(100svh - 75px); /* full viewport minus launcher height */
        border-radius: 12px;
        position: relative;
        bottom: auto;
        margin-bottom: 10px;
    }

    /* Prevent input zoom on iOS (font-size < 16px triggers zoom) */
    #wb-user-input,
    .wb-contact-form input,
    .wb-contact-form textarea {
        font-family: sans-serif !important;
        font-size: 12px !important;
    }
}
/* -----------------------------
     Header
     ----------------------------- */
.wb-chatbot-header {
    background: var(--wb-brand-color);
    color: var(--wb-brand-text);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.wb-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-header-title .wb-ai-favicon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.wb-chat-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Favicon avatar below-left of every plain AI text bubble (excludes contact form wrapper) */
/* background-image URL is injected via wp_add_inline_style in PHP */
.ai-msg:not(:has(.wb-contact-form)) {
    margin-bottom: 0px;
}

.ai-msg::after, .wb-page-content::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: -32px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border:1px solid #f1f1f1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#wb-close-chat, #wb-reset-chat {
    font-size: 18px;
    cursor: pointer;
}

#wb-reset-chat { opacity: 0.9; transition: opacity 0.2s; }
#wb-reset-chat:hover { opacity: 1; }

#wb-close-chat { transition: color 0.2s; }
#wb-close-chat:hover { color: #f1f1f1; }

/* -----------------------------
     Content (scrollable area)
     ----------------------------- */
#wb-chat-content {
    overflow-y: auto;
    padding: 20px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: calc(100% - 135px);
}

/* Custom scrollbar */
#wb-chat-content::-webkit-scrollbar { width: 5px; }
#wb-chat-content::-webkit-scrollbar-thumb { background: var(--wb-brand-color); border-radius: 10px; }

/* -----------------------------
     Dialog bubbles
     ----------------------------- */
.ai-msg, .u-msg {
    
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 15px;
    position: relative;
}

.ai-msg {
    max-width: 85%;
    background: #F1F1F1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    margin-left: 32px;
}
.ai-msg ol li {
    line-height: 1;
}
.ai-msg ol li span {
    display: block;
    padding:2px 0 5px 0;
}

.u-msg {
    max-width: 85%;
    background: var(--wb-brand-color);
    color: var(--wb-brand-text);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Message timestamp */
.wb-msg-time {
    display: block;
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.65;
}
.u-msg .wb-msg-time {
    color: var(--wb-brand-text);
    text-align: right;
}
.ai-msg .wb-msg-time {
    color: #888;
    text-align: left;
}
/* -----------------------------
   Product cards — list style
   ----------------------------- */
.wb-product-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.p-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 5px;
    min-height: unset;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.p-card:hover {
    box-shadow: 0 4px 14px rgba(92, 75, 65, 0.12);
    border-color: var(--wb-brand-color);
}

.p-card a {
    color: inherit !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
}

.p-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f8f8;
    flex-shrink: 0;
}

.p-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.p-card a h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-card-sku {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* EC-3: Add to Cart button inside product card */
.wb-atc-btn {
    flex-shrink: 0;
    background: var(--wb-brand-color);
    color: var(--wb-brand-text);
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}
.wb-atc-btn:hover:not(:disabled) { opacity: 0.82; }
.wb-atc-btn:disabled { cursor: not-allowed; opacity: 0.6; }
.wb-atc-btn.wb-atc-success { background: #27ae60; }
.wb-atc-btn.wb-atc-error   { background: #e74c3c; }

/* Sale badge */
.wb-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--wb-brand-color);
    color: var(--wb-brand-text);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing */
.wb-price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wb-price-container del {
    display: inline !important;
    color: #bbb !important;
    font-size: 11px;
    font-weight: 400 !important;
    margin-right: 0;
}

.wb-price-container ins {
    background: transparent;
    color: var(--wb-brand-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.wb-price-container span > bdi {
    font-weight: 700;
    color: #333;
    font-size: 13px;
}

.wb-price-container del span > bdi {
    color: #999;
    font-weight: normal;
}
/* Product actions */
.wb-product-actions { padding: 15px; background: #f8f9fa; border-radius: 8px; border:1px solid #d9d9d9}
.wb-product-actions p { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color: #2c3e50; }
.wb-product-actions .wb-global-btn { margin-right: 0px; margin-bottom: 5px; }

/* -----------------------------
     Location card
     ----------------------------- */
.wb-location-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-left: 4px solid var(--wb-brand-color);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}
.wb-loc-header { 
    font-weight: bold; 
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wb-loc-header i { 
    color: var(--wb-brand-color); 
    font-size: 18px;
}
.wb-loc-title { color: var(--wb-brand-color); font-weight: 700; font-size: 14px; }
.wb-loc-text { font-size: 12px; color: #666; line-height: 1.4; }
.wb-loc-body p {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}
.wb-loc-body p i {
    color: var(--wb-brand-color);
    flex-shrink: 0;
    margin-top: 2px;
}
.wb-loc-info { 
    display: flex; 
    flex-direction: column; 
    gap: 8px;
    margin-top: 8px;
}
.wb-loc-info span { 
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.wb-loc-info span i {
    color: var(--wb-brand-color);
    flex-shrink: 0;
}
.wb-loc-info span a {
    color: var(--wb-brand-color);
    text-decoration: none;
}
.wb-loc-info span a:hover {
    text-decoration: underline;
}
.wb-map-btn {
    background: var(--wb-brand-color); 
    color: var(--wb-brand-text) !important; 
    text-align: center; 
    padding: 8px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 11px; 
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

/* -----------------------------
     Order card styles
     ----------------------------- */
.wb-order-card {
    background: #fff; border: 1px solid #E5E5E5; border-left: 4px solid var(--wb-brand-color); border-radius: 8px; padding: 15px; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; font-size: 12px; max-width: 100%; align-self: flex-start;
}
.wb-order-header { display: flex; justify-content: space-between; align-items: center; }
.wb-order-id { font-weight: bold; color: #333; }
.wb-order-status { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.wb-order-status-completed { background: #E8F5E9; color: #2E7D32; }
.wb-order-status-processing { background: #FFF8E1; color: #FF8F00; }
.wb-order-status-pending { background: #E3F2FD; color: #1976D2; }
.wb-order-status-cancelled, .wb-order-status-refunded { background: #FFEBEE; color: #D32F2F; }
.wb-order-body { display: flex; flex-direction: column; gap: 5px; }
.wb-order-info { display:flex; justify-content: space-between; }
.wb-order-label { color: #666; font-size: 12px; }
.wb-order-value { color: #333; font-weight: 500; }
.wb-order-error { border-left-color: #D32F2F; color: #D32F2F; text-align: center; }
.wb-order-divider { border-top: 1px dashed #e0e0e0; margin: 4px 0; }
.wb-tracking-code { font-family: monospace; letter-spacing: 0.5px; }
.wb-order-track-btn { margin-top: 6px; }
.wb-track-link { display: inline-block; background: var(--wb-brand-color); color: var(--wb-brand-text) !important; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 6px; text-decoration: none; transition: opacity 0.2s; }
.wb-track-link:hover { opacity: 0.85; }

/* -----------------------------
     Input area & buttons (docked)
----------------------------- */
.wb-chatbot-input-area {
    position: absolute; bottom: 0; width: 100%; z-index: 99; padding: 15px; background: #fff; border-top: 1px solid #eee; display: flex; gap: 10px; flex-shrink: 0;
}

#wb-user-input { flex: 1; border: 1px solid #ddd; border-radius: 4px; padding: 10px; outline: none; font-size: 14px; }

#wb-send-btn {
    min-width: auto;
    transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden; padding: 8px 20px; border: none; border-radius: 4px; background: var(--wb-brand-color); color: var(--wb-brand-text); font-weight: 500;
}
#wb-send-btn:disabled { background: #ccc; cursor: not-allowed; }

.wb-loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--wb-brand-text); border-top: 2px solid transparent; border-radius: 50%; animation: wb-spin 0.8s linear infinite; margin-right: 6px; vertical-align: middle; }
@keyframes wb-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.wb-btn-text { display: inline-block; transition: opacity 0.2s ease; }

#wb-back-to-bottom { position: absolute; bottom: 140px; left: 0; right: 0; margin: 0 auto; width: 40px !important; height: 40px; min-width: auto; border-radius: 50%; border: none; display: none; background: var(--wb-brand-color); color: var(--wb-brand-text); cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); align-items: center; justify-content: center; padding: 0; }

/* -----------------------------
    Contact form
----------------------------- */
.wb-contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.wb-contact-form input, .wb-contact-form textarea { 
    width: 100%; 
    padding: 8px 14px !important; 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    font-size: 14px;
    font-family: "Lato", sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

.wb-contact-form input::placeholder, .wb-contact-form textarea::placeholder {
    color: #999;
    font-size: 13px;
}

.wb-contact-form input:focus, .wb-contact-form textarea:focus { 
    outline: none;
    border-color: var(--wb-brand-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(92, 75, 65, 0.1);
}

.wb-contact-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.4;
}

.wb-contact-form > div {
    display: flex;
    gap: 6px;
    align-items: center;
}

#wb-submit-lead {
    flex: 1;
    background: var(--wb-brand-color);
    color: var(--wb-brand-text); 
    border: none; 
    padding: 14px 20px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 14px;
    height: auto;
    min-width: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(92, 75, 65, 0.15);
}

#wb-submit-lead:hover {
    background: var(--wb-brand-hover);
    box-shadow: 0 4px 12px rgba(92, 75, 65, 0.25);
    transform: translateY(-1px);
}

#wb-submit-lead:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(92, 75, 65, 0.2);
}

.wb-whatsapp-btn {
    flex: 1;
    max-height: 42px;
    background: #25D366 !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15) !important;
    display: inline-block !important;
}

.wb-whatsapp-btn:hover {
    background: #1ebc58 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* -----------------------------
    Shortcuts / small buttons
----------------------------- */
.wb-shortcuts { display: flex; gap: 8px; padding: 10px; background: #f5f5f5; border-top: 1px solid #ddd; margin-bottom: 79px; }
.wb-shortcut-btn { flex: 1; padding: 8px 12px; border: none; border-radius: 6px; background: #e7e7e7; color: #666; font-size: 12px !important; line-height: 15px; min-width: auto; cursor: pointer; transition: background 0.2s; height: auto; text-transform: inherit; }
.wb-shortcut-btn:hover { background: var(--wb-brand-dark); color: var(--wb-brand-text); }

.wb-prod-btn { min-width: auto; display: none !important; }
.wb-product-actions button { font-size: 13px; }
.wb-global-btn { min-width: auto; height: auto; color: #666; border-radius: 25px !important; font-size: 12px !important; text-transform: inherit; padding: 8px 10px; }

/* -----------------------------
    AI list styling
----------------------------- */
.wb-ai-list { margin: 10px 0 !important; padding-left: 25px !important; line-height: 1.3 !important; color: #333 !important; font-size: 14px !important; }
ol.wb-ai-list ul {
    padding-left: 5px !important;
}
ol.wb-ai-list ul li {
font-size: 13px;
}
.wb-ai-numbered { list-style: decimal !important; }
.wb-ai-bullet { list-style: disc !important; }
.wb-ai-list li { margin: 0 !important; padding: 2px 0 !important; line-height: 1.4 !important; }
/* Nested bullet list inside a numbered item */
.wb-ai-numbered li > .wb-ai-bullet { margin: 4px 0 2px 0 !important; }

/* Page content styling (payment methods, shipping, company info) */
.wb-page-content {
    background: #F1F1F1;
    color: #333;
    align-self: flex-start;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    padding: 12px 16px;
    position: relative;
    max-width: calc(100% - 32px) ;
    margin-left: 32px;
}

.wb-page-content h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.wb-page-reply {
    color: #333;
    font-size: 13px;
    margin: 0 0 10px 0;
    text-align: left;
}

.wb-page-summary {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 4px 0;
    text-align: left;
}

.wb-summary-list {
    list-style: none;
    margin: 4px 0 4px 0;
    padding: 0;
}

.wb-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    border-left: 3px solid var(--wb-brand-color);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.wb-summary-dot {
    color: var(--wb-brand-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.wb-page-body {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    text-align: left !important;
}
.wb-page-body p {
    margin: 8px 0;
    line-height: 1.6;
}

.wb-page-body ul, .wb-page-body ol {
    margin: 8px 0;
    padding-left: 20px;
}

.wb-page-body li {
    margin: 4px 0;
}

/* WPBakery content styling for chatbot */
.wb-page-body .vc_row,
.wb-page-body .vc_column,
.wb-page-body .vc_column_text {
    width: 100% !important;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.wb-page-body .vc_row .vc_column {
    width: 100% !important;
}

.wb-page-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}

.wb-page-body h1,
.wb-page-body h2,
.wb-page-body h3,
.wb-page-body h4,
.wb-page-body h5,
.wb-page-body h6 {
    margin: 12px 0 8px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    text-align: left !important;
}

.wb-page-body h1 { font-size: 18px; }
.wb-page-body h2 { font-size: 16px; }
.wb-page-body h3 { font-size: 15px; }
.wb-page-body h4 { font-size: 14px; }
.wb-page-body h5 { font-size: 13px; }
.wb-page-body h6 { font-size: 12px; }
.wb-page-body p {
    text-align: left !important;
    color:#666
}
.wb-page-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d0d0d0;
    text-align: right;
}
.wb-page-footer a:hover {
    color: var(--wb-brand-text) !important;
}
.wb-page-link {
    display: inline-block;
    color: var(--wb-brand-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #f0e8e0;
}

.wb-page-link:hover {
    background: var(--wb-brand-color);
    color: var(--wb-brand-text);
    transform: translateX(2px);
}

/* Product description styling */
.wb-product-description {
    background: #f9f9f9;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.wb-product-description h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.wb-desc-sku {
    margin: 0 0 12px 0;
    color: #7f8c8d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wb-desc-body {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}

.wb-desc-body p {
    margin: 8px 0;
    line-height: 1.6;
}

.wb-desc-body ul, .wb-desc-body ol {
    margin: 8px 0;
    padding-left: 20px;
}

.wb-desc-body li {
    margin: 4px 0;
}

/* -----------------------------
     UX-1: Typing Indicator
     ----------------------------- */
.wb-typing {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 12px 16px !important;
    min-height: unset !important;
}
.wb-typing span {
    width: 7px;
    height: 7px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    animation: wb-bounce 1.1s infinite ease-in-out;
}
.wb-typing span:nth-child(2) { animation-delay: 0.18s; }
.wb-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes wb-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* -----------------------------
     UX-6: Markdown Elements
     ----------------------------- */
.wb-md-h1 { display: block; font-size: 1rem;   font-weight: 700; margin: 8px 0 4px; }
.wb-md-h2 { display: block; font-size: 0.95rem; font-weight: 700; margin: 6px 0 3px; }
.wb-md-h3 { display: block; font-size: 0.88rem; font-weight: 700; margin: 4px 0 2px; }
.wb-md-quote {
    display: block;
    border-left: 3px solid var(--wb-brand-color);
    padding: 3px 10px;
    margin: 4px 0;
    color: #666;
    font-style: italic;
}
.wb-md-code {
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    color: #c0392b;
}

/* -----------------------------
     AO-10: Offline Notice
     ----------------------------- */
.wb-offline-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #795548;
    line-height: 1.5;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.wb-offline-dot {
    width: 8px;
    height: 8px;
    background: #ff9800;
    border-radius: 50%;
    flex-shrink: 0;
    animation: wb-pulse 2s infinite;
}
@keyframes wb-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* -----------------------------
     PDPA Consent Overlay
     ----------------------------- */
.wb-consent-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}
.wb-consent-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}
.wb-consent-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}
.wb-consent-text {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
}
.wb-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #444;
    cursor: pointer;
    text-align: left;
    margin-bottom: 18px;
    line-height: 1.5;
}
.wb-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--wb-brand-color);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.wb-consent-start-btn {
    background: var(--wb-brand-color);
    color: var(--wb-brand-text);
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.wb-consent-start-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.wb-consent-start-btn:not(:disabled):hover {
    opacity: 0.85;
}

/* -----------------------------
     Widget Footer (privacy link)
     ----------------------------- */
.wb-chatbot-footer {
    padding: 6px 14px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
}
.wb-chatbot-footer a {
    font-size: 0.72rem;
    color: #aaa;
    text-decoration: none;
}
.wb-chatbot-footer a:hover {
    color: var(--wb-brand-color);
    text-decoration: underline;
}

