#nafta-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #145a83;
    color: #fff;
    font-size: 27px;
    box-shadow: 0 5px 18px rgba(0,0,0,.25);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#nafta-chat-launcher:hover {
    background: #0f496c;
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(0,0,0,.3);
}
#nafta-chat-launcher:focus-visible { outline: 3px solid #8cccf0; outline-offset: 3px; }
#nafta-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 10000;
    display: none;
    flex-direction: column;
    width: min(360px, calc(100vw - 40px));
    height: min(500px, calc(100vh - 115px));
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    overflow: hidden;
    font-family: Arial, sans-serif;
}
#nafta-chat-panel.is-open { display: flex; }
#nafta-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    background: #145a83;
}
#nafta-chat-header strong { display: block; font-size: 15px; }
#nafta-chat-header small { display: block; margin-top: 3px; opacity: .85; }
.nafta-chat-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nafta-chat-brand img {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}
#nafta-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
#nafta-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background: #f5f7f9;
}
.nafta-chat-row { display: flex; margin: 0 0 10px; }
.nafta-chat-row.visitor { justify-content: flex-end; }
.nafta-chat-bubble {
    max-width: 84%;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e0e5e9;
    overflow-wrap: anywhere;
}
.nafta-chat-row.visitor .nafta-chat-bubble {
    background: #e5f3fb;
    border-color: #d0e8f5;
}
.nafta-chat-sender { margin-bottom: 4px; color: #687782; font-size: 10px; font-weight: 600; }
.nafta-chat-content {
    color: #28343b;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

    .nafta-chat-content p {
        margin: 0 0 8px;
    }

        .nafta-chat-content p:last-child {
            margin-bottom: 0;
        }

    .nafta-chat-content ul,
    .nafta-chat-content ol {
        margin: 5px 0 8px;
        padding-left: 20px;
    }

    .nafta-chat-content li {
        margin-bottom: 3px;
    }

    .nafta-chat-content a {
        color: #145a83;
        text-decoration: underline;
        font-weight: 600;
    }

    .nafta-chat-content strong {
        font-weight: 700;
    }
.nafta-chat-time { margin-top: 5px; color: #87929a; font-size: 10px; text-align: right; }
#nafta-chat-status { padding: 5px 14px; color: #687782; background: #fff; font-size: 11px; }
#nafta-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e7eb;
    background: #fff;
}
#nafta-chat-input {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    max-height: 90px;
    resize: vertical;
    border: 1px solid #d7dfe5;
    border-radius: 7px;
    padding: 9px;
    font-size: 13px;
}
#nafta-chat-send {
    align-self: flex-end;
    border: 0;
    border-radius: 7px;
    padding: 10px 13px;
    background: #145a83;
    color: #fff;
    cursor: pointer;
}
#nafta-chat-send:disabled, #nafta-chat-input:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 480px) {
    #nafta-chat-launcher { left: 12px; bottom: 14px; }
    #nafta-chat-panel { right: 10px; bottom: 76px; width: calc(100vw - 20px); height: min(520px, calc(100vh - 95px)); }
}
