#lc-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 62px;
    height: 62px;
    background: #4646e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#lc-toggle img {
    width: 36px;
    height: 36px;
}

#lc-window {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    font-family: Inter, Arial, sans-serif;
    z-index: 9999;
}

.hidden {
    display: none;
}

.lc-header {
    background: #1a73e8;
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-header small {
    display: block;
    font-size: 12px;
    opacity: .8;
}

#lc-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.lc-message {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 80%;
}

.lc-message.user {
    background: #e3f2fd;
    margin-left: auto;
}

.lc-message.bot {
    background: #f1f1f1;
}

/* Footer */
.lc-footer {
    padding: 10px;
    border-top: 1px solid #eee;
}

.lc-footer input,
.lc-footer textarea {
    width: 100%;
    margin-bottom: 6px;
    padding: 8px;
}

.lc-footer button {
    width: 100%;
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
}

#lc-typing-indicator {
    display: flex;
    align-items: center;
    column-gap: 4px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 18px;
    width: fit-content;
    margin: 8px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
    opacity: 0.6;
    animation: typingAnimation 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes typingAnimation {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#lc-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 9999;
}

#lc-window {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

#lc-window.hidden {
    display: none;
}

.lc-header {
    background: #3d53e6;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lc-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f1f1f1;
    text-align: center;
}

.lc-message {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 5px;
}

.bot {
    background: #f8d7da;
    text-align: center;
}

.user {
    background: #d1e7dd;
    text-align: right;
}

.lc-footer {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lc-footer input,
.lc-footer textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    text-align: center;
}

.lc-footer button {
    background: #3d53e6;
    color: #fff;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.lc-footer {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

#lc-text {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 40px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#lc-text:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.lc-message.bot .contact-form {
    margin-top: 8px;
}

.lc-message.bot .lc-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lc-message.bot .lc-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.lc-message.bot .lc-button:hover {
    background-color: #45a049;
}

.lc-link {
    color: #0066cc;
    text-decoration: underline;
    word-break: break-all;
}