.live-chat,
.live-chat * {
    box-sizing: border-box;
}

.live-chat {
    font-family: Arial, sans-serif;
}

.live-chat__input,
.live-chat__textarea {
    border: 1px solid #cbd8dc;
    border-radius: 10px;
    background: #fff;
    color: #17313a;
    font: inherit;
    padding: 12px 14px;
}

.live-chat__submit,
.live-chat__send {
    border: 0;
    border-radius: 10px;
    background: #f67417;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 16px;
}

.live-chat__submit:disabled,
.live-chat__send:disabled {
    cursor: wait;
    opacity: 0.65;
}

.live-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.live-chat__launcher {
    border: 0;
    border-radius: 999px;
    background: #F67417;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 14px 20px;
    box-shadow: 0 18px 40px rgba(11, 94, 107, 0.3);
    cursor: pointer;
}

.live-chat__panel {
    width: min(380px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid rgba(11, 94, 107, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(10, 30, 60, 0.18);
    overflow: hidden;
}

.live-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #f5fbfb, #eef8f7);
    border-bottom: 1px solid rgba(11, 94, 107, 0.08);
}

.live-chat__title {
    color: #12303a;
    font-size: 18px;
    font-weight: 700;
}

.live-chat__subtitle {
    margin-top: 4px;
    color: #5d6c72;
    font-size: 13px;
    line-height: 1.45;
}

.live-chat__minimize {
    border: 0;
    background: transparent;
    color: #46616a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.live-chat__body {
    padding: 16px;
}

.live-chat__lead,
.live-chat__composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-chat__lead[hidden],
.live-chat__thread[hidden],
.live-chat__composer[hidden],
.live-chat__status[hidden],
.live-chat__panel[hidden] {
    display: none !important;
}

.live-chat__input,
.live-chat__textarea {
    width: 100%;
}

.live-chat__textarea {
    min-height: 88px;
    resize: vertical;
}

.live-chat__messages {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
}

.live-chat__message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-chat__message_manager {
    align-items: flex-start;
}

.live-chat__message_visitor {
    align-items: flex-end;
}

.live-chat__bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 18px;
    color: #17313a;
    background: #eef4f6;
    line-height: 1.45;
    word-break: break-word;
}

.live-chat__message_visitor .live-chat__bubble {
    background: #f67418;
    color: #fff;
    border-bottom-right-radius: 6px;
}

.live-chat__message_manager .live-chat__bubble {
    border-bottom-left-radius: 6px;
}

.live-chat__meta,
.live-chat__empty,
.live-chat__status {
    color: #6d7b81;
    font-size: 12px;
}

.live-chat__status {
    margin-top: 12px;
}

.live-chat__status.is-error {
    color: #c54848;
}

.live-chat__status.is-success {
    color: #2b7a4b;
}

@media screen and (max-width: 767px) {
    .live-chat {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: stretch;
    }

    .live-chat__launcher {
        align-self: flex-end;
    }

    .live-chat__panel {
        width: 100%;
    }
}

.live-chat__panel {
    padding: 0 !important;
}