.locovo-chat {
    max-width: 760px;
    border: 1px solid #d9dce3;
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.locovo-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.locovo-chat__message {
    max-width: 82%;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.45;
}

.locovo-chat__message--bot {
    align-self: flex-start;
    background: #f2f4f7;
    color: #101828;
}

.locovo-chat__message--user {
    align-self: flex-end;
    background: #101828;
    color: #ffffff;
}

.locovo-chat__form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.locovo-chat__input {
    flex: 1;
    min-height: 52px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 16px;
}

.locovo-chat__send,
.locovo-chat__book,
.locovo-chat__option {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.locovo-chat__send,
.locovo-chat__book {
    background: #101828;
    color: #ffffff;
    padding: 0 22px;
}

.locovo-chat__send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.locovo-chat__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.locovo-chat__option {
    background: #eef2ff;
    color: #182230;
    padding: 10px 14px;
}

.locovo-chat__quote {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #d9dce3;
    border-radius: 14px;
    background: #fbfcfe;
}

.locovo-chat__quote h3 {
    margin: 0 0 12px;
}

.locovo-chat__quote dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 18px;
    margin: 0 0 16px;
}

.locovo-chat__quote dt {
    font-weight: 700;
}

.locovo-chat__quote dd {
    margin: 0;
}

.locovo-chat__book {
    min-height: 48px;
    padding: 0 24px;
}

.locovo-chat__typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 56px;
}

.locovo-chat__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    animation: locovoTyping 1s infinite ease-in-out;
}

.locovo-chat__typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.locovo-chat__typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes locovoTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 0.95; }
}

@media (max-width: 640px) {
    .locovo-chat {
        padding: 14px;
    }

    .locovo-chat__message {
        max-width: 92%;
    }

    .locovo-chat__form {
        flex-direction: column;
    }

    .locovo-chat__send {
        min-height: 48px;
    }
}
