:root {
    --lm-chatbot-primary: #8B5A2B;
    --lm-chatbot-primary-hover: #70441E;
    --lm-chatbot-bg: #FFFFFF;
    --lm-chatbot-surface: #FBF9F6;
    --lm-chatbot-text: #2D241E;
    --lm-chatbot-text-muted: #7A6F66;
    --lm-chatbot-border: #E8E2D9;
}

/* Posizionamento a SINISTRA a 40px dal fondo - z-index massimo */
#lm-chatbot-container {
    position: fixed;
    bottom: 40px;
    left: 25px;
    right: auto;
    z-index: 2147483640;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#lm-chatbot-container.pos-right {
    left: auto;
    right: 25px;
}

/* Nuvoletta di invito (Speech Bubble "Chiedi a LM AI") con sfondo bianco solido garantito */
#lm-chatbot-container #lm-chatbot-badge,
#lm-chatbot-badge {
    position: absolute !important;
    left: 72px !important;
    bottom: 10px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #2D241E !important;
    border: 2px solid var(--lm-chatbot-primary, #8B5A2B) !important;
    padding: 7px 12px 7px 15px !important;
    border-radius: 22px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
    cursor: default !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 2147483641 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, box-shadow 0.2s !important;
    animation: lmBadgePulse 3.5s ease-in-out infinite !important;
    touch-action: manipulation;
}

#lm-chatbot-container #lm-chatbot-badge .lm-badge-content {
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    user-select: none !important;
}

#lm-chatbot-container #lm-chatbot-badge span,
#lm-chatbot-container #lm-chatbot-badge .lm-badge-text,
#lm-chatbot-container #lm-chatbot-badge .lm-badge-icon,
#lm-chatbot-badge span {
    background: transparent !important;
    background-color: transparent !important;
    color: #2D241E !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
}

.lm-badge-close-btn {
    background: rgba(0, 0, 0, 0.07) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: 3px !important;
    color: #7A6F66 !important;
    transition: background-color 0.15s, color 0.15s, transform 0.15s !important;
    touch-action: manipulation !important;
    flex-shrink: 0 !important;
}

.lm-badge-close-btn:hover {
    background: rgba(0, 0, 0, 0.18) !important;
    color: #1A1A1A !important;
    transform: scale(1.1) !important;
}

#lm-chatbot-container #lm-chatbot-badge:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35) !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

.pos-right #lm-chatbot-badge {
    left: auto !important;
    right: 72px !important;
}

/* Freccia fumetto per posizione sinistra */
.pos-left #lm-chatbot-badge::before {
    content: '' !important;
    position: absolute !important;
    left: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 8px solid var(--lm-chatbot-primary, #8B5A2B) !important;
    border-left: none !important;
}

.pos-left #lm-chatbot-badge::after {
    content: '' !important;
    position: absolute !important;
    left: -5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    border-right: 6px solid #FFFFFF !important;
    border-left: none !important;
}

/* Freccia fumetto per posizione destra */
.pos-right #lm-chatbot-badge::before {
    content: '' !important;
    position: absolute !important;
    right: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 8px solid var(--lm-chatbot-primary, #8B5A2B) !important;
    border-right: none !important;
}

.pos-right #lm-chatbot-badge::after {
    content: '' !important;
    position: absolute !important;
    right: -5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    border-left: 6px solid #FFFFFF !important;
    border-right: none !important;
}

#lm-chatbot-badge.lm-badge-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.85) !important;
}

@keyframes lmBadgePulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Pulsante Flottante */
#lm-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--lm-chatbot-primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 18px rgba(139, 90, 43, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
    touch-action: manipulation;
}

#lm-chatbot-toggle .lm-toggle-icon-chat {
    display: block;
}

#lm-chatbot-toggle .lm-toggle-icon-close {
    display: none;
}

body.lm-chatbot-opened #lm-chatbot-toggle .lm-toggle-icon-chat {
    display: none !important;
}

body.lm-chatbot-opened #lm-chatbot-toggle .lm-toggle-icon-close {
    display: block !important;
}

#lm-chatbot-toggle:hover {
    transform: scale(1.08);
    background-color: var(--lm-chatbot-primary-hover);
}

/* Finestra Chat con apertura da sinistra */
#lm-chatbot-window {
    position: absolute;
    bottom: 76px;
    left: 0;
    right: auto;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 590px;
    max-height: calc(100vh - 140px);
    background: var(--lm-chatbot-bg);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lm-chatbot-border);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    transform-origin: bottom left;
    z-index: 2147483647;
}

.pos-right #lm-chatbot-window {
    left: auto;
    right: 0;
    transform-origin: bottom right;
}

#lm-chatbot-window.lm-chatbot-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.92) translateY(15px);
}

/* Intestazione */
.lm-chatbot-header {
    background: var(--lm-chatbot-primary);
    color: #FFFFFF;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.lm-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.lm-chatbot-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--lm-chatbot-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.lm-chatbot-header-titles {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.lm-chatbot-header-titles strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-chatbot-status {
    display: block;
    font-size: 11px;
    opacity: 0.92;
    color: #FFFFFF;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto !important;
    margin-left: 6px;
}

#lm-chatbot-send-email-btn {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    touch-action: manipulation;
    flex-shrink: 0;
}

#lm-chatbot-send-email-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: scale(1.06);
}

#lm-chatbot-close {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    opacity: 1 !important;
    transition: background 0.15s, transform 0.15s, opacity 0.15s !important;
    touch-action: manipulation !important;
    z-index: 100 !important;
    flex-shrink: 0 !important;
}

#lm-chatbot-close svg {
    display: block !important;
}

#lm-chatbot-close:hover,
#lm-chatbot-close:active {
    background: rgba(255, 255, 255, 0.45) !important;
    transform: scale(1.08) !important;
}

/* Area Messaggi */
.lm-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--lm-chatbot-surface);
}

.lm-msg {
    max-width: 85%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}

.lm-msg a {
    color: var(--lm-chatbot-primary);
    font-weight: 600;
    text-decoration: underline;
}

.lm-msg-bot {
    background: #FFFFFF;
    color: var(--lm-chatbot-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--lm-chatbot-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.lm-msg-user {
    background: var(--lm-chatbot-primary);
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Card Prodotti Raccomandati */
.lm-products-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.lm-product-card {
    display: flex;
    background: #FFFFFF;
    border: 1px solid var(--lm-chatbot-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--lm-chatbot-text);
    transition: transform 0.15s, box-shadow 0.15s;
}

.lm-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lm-product-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    background: #F0EAE1;
}

.lm-product-details {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.lm-product-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--lm-chatbot-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lm-product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--lm-chatbot-primary);
}

.lm-product-badge {
    font-size: 10.5px;
    color: var(--lm-chatbot-text-muted);
    margin-top: 2px;
}

/* Suggerimenti Rapidi */
.lm-chatbot-quick-replies {
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: #FAF7F2;
    border-top: 1px solid var(--lm-chatbot-border);
    scrollbar-width: none;
}

.lm-chatbot-quick-replies::-webkit-scrollbar {
    display: none;
}

.lm-quick-btn {
    background: #FFFFFF;
    border: 1px solid #DFD7CB;
    border-radius: 14px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--lm-chatbot-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.lm-quick-btn:hover {
    background: var(--lm-chatbot-primary);
    color: #FFFFFF;
    border-color: var(--lm-chatbot-primary);
}

/* Container Anteprima Foto prima dell'invio */
.lm-chatbot-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
    background: #F4EFE6;
    border-top: 1px solid var(--lm-chatbot-border);
    max-height: 120px;
    overflow-y: auto;
}

.lm-preview-item {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--lm-chatbot-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.lm-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lm-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}

.lm-preview-remove:hover {
    background: #E53935;
    transform: scale(1.15);
}

/* Pulsante Allegato Foto */
#lm-chatbot-attach-btn {
    background: transparent;
    border: none;
    color: var(--lm-chatbot-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

#lm-chatbot-attach-btn:hover {
    background-color: #F0EAE1;
    color: var(--lm-chatbot-primary-hover);
    transform: scale(1.08);
}

#lm-chatbot-attach-btn:active {
    transform: scale(0.95);
}

/* Rendering Foto nel fumetto utente/bot */
.lm-msg-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.lm-msg-img-wrap {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 140px;
    max-height: 140px;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.lm-msg-user .lm-msg-img-wrap {
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.lm-msg-bot .lm-msg-img-wrap {
    border: 2px solid var(--lm-chatbot-primary);
}

.lm-msg-img-wrap:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.lm-msg-img-wrap img {
    width: 100%;
    height: 100%;
    max-width: 140px;
    max-height: 140px;
    object-fit: cover;
    display: block;
}

.lm-msg-img-zoom-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
}

/* Drag & Drop Visual Feedback */
#lm-chatbot-window.lm-drag-over {
    outline: 3px dashed var(--lm-chatbot-primary);
    outline-offset: -3px;
}

/* Area Input */
.lm-chatbot-input-area {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid var(--lm-chatbot-border);
    background: #FFFFFF;
}

#lm-chatbot-input {
    flex: 1;
    border: 1px solid var(--lm-chatbot-border);
    border-radius: 22px;
    padding: 9px 16px;
    font-size: 13.5px;
    outline: none;
    background: #FAF7F2;
    transition: border-color 0.15s;
}

#lm-chatbot-input:focus {
    border-color: var(--lm-chatbot-primary);
    background: #FFFFFF;
}

#lm-chatbot-send {
    background: var(--lm-chatbot-primary);
    border: none;
    color: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background-color 0.15s;
}

#lm-chatbot-send:hover {
    background-color: var(--lm-chatbot-primary-hover);
    transform: scale(1.05);
}

/* Indicatore di Digitazione */
.lm-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.lm-typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--lm-chatbot-text-muted);
    border-radius: 50%;
    animation: lmDotPulse 1.4s infinite ease-in-out both;
}

.lm-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.lm-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes lmDotPulse {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Box Raccolta Contatti Iniziale (Pre-Chat Lead Form) */
.lm-lead-card {
    background: #FFFFFF;
    border: 1.5px solid #DFD7CB;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 6px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.lm-lead-header {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lm-chatbot-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lm-lead-sub {
    font-size: 12px;
    color: var(--lm-chatbot-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.lm-lead-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lm-lead-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #D8CFBE;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    background: #FAF8F5;
    transition: border-color 0.15s;
}

.lm-lead-input:focus {
    border-color: var(--lm-chatbot-primary);
    background: #FFFFFF;
}

.lm-lead-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.lm-lead-submit {
    background: var(--lm-chatbot-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.lm-lead-submit:hover {
    background: var(--lm-chatbot-primary-hover);
}

.lm-lead-skip {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.lm-lead-skip:hover {
    color: #444444;
}

.lm-lead-success {
    background: #EDFAEF;
    border: 1px solid #BCE5C2;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #1E4620;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.lm-summary-alert {
    background: #F4ECE1;
    border: 1px solid #DFD0BE;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #5C3817;
    margin: 8px 0;
}

/* ==========================================================================
   Gestione Overlay e Conflitti Z-Index (WhatsApp, TrustedShops, ecc.)
   ========================================================================== */
body.lm-chatbot-opened #lm-chatbot-container,
body.lm-chatbot-opened #lm-chatbot-window {
    z-index: 2147483647 !important;
}

/* Nasconde elementi galleggianti di terze parti SOLO quando la finestra chat è aperta */
body.lm-chatbot-opened .joinchat,
body.lm-chatbot-opened #whatsapp-button,
body.lm-chatbot-opened .ht-ctc-chat,
body.lm-chatbot-opened .ccw_plugin,
body.lm-chatbot-opened .whatsapp-chat-button,
body.lm-chatbot-opened .elfsight-app-whatsapp-chat,
body.lm-chatbot-opened #trustbadge-container,
body.lm-chatbot-opened iframe[id*="trustbadge"],
body.lm-chatbot-opened iframe[src*="trustedshops"],
body.lm-chatbot-opened div[class*="trustedshops"],
body.lm-chatbot-opened div[id*="trustedshops"],
body.lm-chatbot-opened div[class*="trustbadge"],
body.lm-chatbot-opened div[id*="trustbadge"],
body.lm-chatbot-opened [class*="trustbadge"] {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

/* ==========================================================================
   Regole Responsive Mobile
   ========================================================================== */
@media (max-width: 768px) {
    #lm-chatbot-container {
        bottom: 25px !important;
        left: 15px !important;
        z-index: 2147483640 !important;
    }
    #lm-chatbot-container.pos-right {
        left: auto !important;
        right: 15px !important;
    }
    #lm-chatbot-container #lm-chatbot-badge,
    div#lm-chatbot-badge,
    #lm-chatbot-badge {
        left: 68px !important;
        bottom: 8px !important;
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        color: #2D241E !important;
        border: 2px solid var(--lm-chatbot-primary, #8B5A2B) !important;
        padding: 6px 10px 6px 12px !important;
        font-size: 12.5px !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
        z-index: 2147483641 !important;
        display: inline-flex !important;
    }
    #lm-chatbot-container #lm-chatbot-badge span,
    #lm-chatbot-container #lm-chatbot-badge .lm-badge-text,
    #lm-chatbot-container #lm-chatbot-badge .lm-badge-icon,
    #lm-chatbot-badge span {
        color: #2D241E !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        background: transparent !important;
    }
    .pos-right #lm-chatbot-badge {
        left: auto !important;
        right: 68px !important;
    }
    #lm-chatbot-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border: none !important;
        z-index: 2147483647 !important;
        transform-origin: center center !important;
    }
    .lm-chatbot-header {
        padding-top: max(16px, env(safe-area-inset-top, 16px)) !important;
        padding-bottom: 12px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    #lm-chatbot-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: rgba(0, 0, 0, 0.28) !important;
        border: 2px solid rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    #lm-chatbot-close svg {
        width: 24px !important;
        height: 24px !important;
    }
    #lm-chatbot-send-email-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 480px) {
    #lm-chatbot-container {
        bottom: 20px !important;
        left: 12px !important;
    }
    #lm-chatbot-container.pos-right {
        left: auto !important;
        right: 12px !important;
    }
    #lm-chatbot-container #lm-chatbot-badge,
    div#lm-chatbot-badge,
    #lm-chatbot-badge {
        left: 65px !important;
        bottom: 8px !important;
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        color: #2D241E !important;
        border: 2px solid var(--lm-chatbot-primary, #8B5A2B) !important;
        padding: 5px 8px 5px 10px !important;
        font-size: 12px !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
    }
    #lm-chatbot-container #lm-chatbot-badge span,
    #lm-chatbot-container #lm-chatbot-badge .lm-badge-text,
    #lm-chatbot-container #lm-chatbot-badge .lm-badge-icon,
    #lm-chatbot-badge span {
        color: #2D241E !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        background: transparent !important;
    }
    .pos-right #lm-chatbot-badge {
        left: auto !important;
        right: 65px !important;
    }
}
