/* Wave Funded live chat — homepage sky-blue visual system. */
.lft-chat {
    --lft-chat-green: #1268f3;
    --lft-chat-green-deep: #0b57d0;
    --lft-chat-ink: #071a38;
    --lft-chat-muted: #52637a;
    --lft-chat-paper: #f7fbff;
    color: #0c1e3b;
}

.lft-chat__launcher {
    border-color: rgba(18, 104, 243, .24);
    color: #071a38;
    background:
        radial-gradient(circle at 11% 12%, rgba(53, 207, 250, .22), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(238, 247, 255, .97));
    box-shadow: 0 18px 54px rgba(19, 75, 136, .18), inset 0 1px rgba(255, 255, 255, .9);
}

.lft-chat__launcher:hover {
    border-color: rgba(18, 104, 243, .52);
    box-shadow: 0 22px 60px rgba(19, 75, 136, .22), 0 0 28px rgba(53, 207, 250, .13);
}

.lft-chat__launcher:focus-visible,
.lft-chat__panel button:focus-visible,
.lft-chat__panel textarea:focus-visible,
.lft-chat__panel input:focus-visible {
    outline-color: rgba(18, 104, 243, .58);
}

.lft-chat__launcher-icon {
    color: #fff;
    background: linear-gradient(145deg, #35cffa, #168cff 48%, #1268f3);
    box-shadow: 0 9px 24px rgba(18, 104, 243, .28), inset 0 1px rgba(255, 255, 255, .48);
}

.lft-chat__launcher-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lft-chat__launcher-copy small {
    color: #607892;
}

.lft-chat__unread {
    border-color: #fff;
    color: #fff;
    background: #1268f3;
    box-shadow: 0 6px 18px rgba(18, 104, 243, .3);
}

.lft-chat__panel {
    border-color: rgba(18, 104, 243, .2);
    background: #f7fbff;
    box-shadow: 0 32px 90px rgba(18, 69, 125, .24), inset 0 1px rgba(255, 255, 255, .9);
}

.lft-chat__header {
    color: #fff;
    background:
        radial-gradient(circle at 12% -24%, rgba(255, 255, 255, .28), transparent 48%),
        linear-gradient(125deg, #0b57d0 0%, #1268f3 52%, #168cff 76%, #35cffa 130%);
}

.lft-chat__mark {
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 8px 22px rgba(2, 47, 112, .17);
}

.lft-chat__identity small {
    color: #d2e7ff;
}

.lft-chat__identity small i {
    background: #a9c9eb;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.lft-chat__identity small.is-online i {
    background: #bff5ff;
    box-shadow: 0 0 0 3px rgba(191, 245, 255, .18), 0 0 12px rgba(191, 245, 255, .72);
}

.lft-chat__icon-button {
    color: #d7eaff;
}

.lft-chat__icon-button:hover {
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.lft-chat__conversation-toggle {
    border-color: rgba(255, 255, 255, .25);
    color: #e5f2ff;
    background: rgba(255, 255, 255, .1);
}

.lft-chat__conversation-toggle:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.lft-chat__content {
    scrollbar-color: #b8d4ee transparent;
    background:
        radial-gradient(circle at 96% 4%, rgba(53, 207, 250, .12), transparent 34%),
        linear-gradient(180deg, #f7fbff, #eef7ff);
}

.lft-chat__content::-webkit-scrollbar-thumb {
    background: #b8d4ee;
}

.lft-chat__trust-strip {
    margin: 12px 0 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d8e7f4;
    border-radius: 12px;
    color: #607892;
    background: rgba(255, 255, 255, .76);
    font-size: 10px;
    font-weight: 650;
}

.lft-chat__trust-strip span:first-child {
    color: #0b57d0;
}

.lft-chat__trust-strip i {
    width: 7px;
    height: 7px;
    margin-right: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #18b978;
    box-shadow: 0 0 0 4px rgba(24, 185, 120, .11);
}

.lft-chat__assistant-avatar,
.lft-chat__message-avatar {
    color: #fff;
    background: linear-gradient(145deg, #35cffa, #168cff 54%, #1268f3);
    box-shadow: 0 7px 18px rgba(18, 104, 243, .18);
}

.lft-chat__assistant-row strong {
    color: #071a38;
}

.lft-chat__assistant-row small {
    color: #71849a;
}

.lft-chat__welcome-bubble {
    border-color: #dce8f5;
    color: #263d59;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 73, 126, .06);
}

.lft-chat__profile-form {
    border-color: #d7e6f4;
    background: linear-gradient(145deg, #fff, #eef7ff);
    box-shadow: 0 12px 30px rgba(24, 73, 126, .08);
}

.lft-chat__profile-heading > span {
    color: #1268f3;
    background: #e3f1ff;
}

.lft-chat__profile-heading strong {
    color: #071a38;
}

.lft-chat__profile-heading small,
.lft-chat__profile-form label {
    color: #607892;
}

.lft-chat__profile-form input {
    border-color: #cddfee;
    color: #0c1e3b;
    background: #fff;
}

.lft-chat__profile-form input:focus {
    border-color: #168cff;
    box-shadow: 0 0 0 3px rgba(18, 104, 243, .1);
}

.lft-chat__profile-form input::placeholder {
    color: #91a2b5;
}

.lft-chat__profile-form button {
    color: #fff;
    background: linear-gradient(135deg, #168cff, #1268f3);
    box-shadow: 0 10px 24px rgba(18, 104, 243, .22);
}

.lft-chat__profile-card {
    border-color: #d4e4f3;
    background: linear-gradient(135deg, #fff, #eaf5ff);
}

.lft-chat__profile-avatar {
    color: #fff;
    background: linear-gradient(145deg, #35cffa, #168cff, #1268f3);
}

.lft-chat__profile-card strong {
    color: #071a38;
}

.lft-chat__profile-card small {
    color: #607892;
}

.lft-chat__profile-card em {
    border-color: #bcd8f2;
    color: #0b57d0;
    background: #e7f3ff;
}

.lft-chat__prompt-label,
.lft-chat__message-head {
    color: #607892;
}

.lft-chat__topics button,
.lft-chat__message-actions button {
    border-color: #c8dceb;
    color: #174c87;
    background: #fff;
}

.lft-chat__topics button {
    min-height: 43px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.lft-chat__topics button span {
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #1268f3;
    background: #e7f3ff;
    font-size: 8px;
    font-weight: 850;
}

.lft-chat__topics button:hover,
.lft-chat__message-actions button:hover {
    border-color: #168cff;
    color: #0b57d0;
    background: #eaf5ff;
}

.lft-chat__message--agent .lft-chat__message-avatar {
    color: #fff;
    background: linear-gradient(145deg, #168cff, #0b57d0);
}

.lft-chat__message--visitor .lft-chat__message-avatar {
    color: #fff;
    background: #56718e;
}

.lft-chat__message-bubble {
    border-color: #dce8f5;
    color: #263d59;
    background: #fff;
    box-shadow: 0 7px 20px rgba(24, 73, 126, .055);
}

.lft-chat__message--visitor .lft-chat__message-bubble {
    border-color: #1268f3;
    color: #fff;
    background: linear-gradient(145deg, #168cff, #1268f3 68%, #0b57d0);
    box-shadow: 0 9px 24px rgba(18, 104, 243, .19);
}

.lft-chat__message--system .lft-chat__message-bubble {
    color: #607892;
    background: #e5f1fb;
}

.lft-chat__message-meta,
.lft-chat__typing {
    color: #7c8ea3;
}

.lft-chat__typing > span {
    border-color: #dce8f5;
    background: #fff;
}

.lft-chat__typing i {
    background: #168cff;
}

.lft-chat__footer {
    border-top-color: #dce8f5;
    background: #fff;
}

.lft-chat__handoff {
    border-color: #bdd7ef;
    color: #0b57d0;
    background: #eef7ff;
}

.lft-chat__handoff:hover {
    border-color: #168cff;
    color: #07459f;
    background: #e1f1ff;
}

.lft-chat__composer {
    border-color: #c8dbea;
    background: #f7fbff;
}

.lft-chat__composer:focus-within {
    border-color: #168cff;
    box-shadow: 0 0 0 3px rgba(18, 104, 243, .1);
}

.lft-chat__composer textarea {
    color: #0c1e3b;
}

.lft-chat__composer textarea::placeholder {
    color: #8193a7;
}

.lft-chat__composer button {
    color: #fff;
    background: linear-gradient(145deg, #35cffa, #168cff 46%, #1268f3);
    box-shadow: 0 8px 20px rgba(18, 104, 243, .23);
}

.lft-chat__composer-meta {
    color: #8b9bad;
}

/* Larger, calmer reading proportions for support conversations. */
.lft-chat {
    font-family: "Inter", system-ui, sans-serif;
}

.lft-chat__panel {
    width: min(440px, calc(100vw - 28px));
    height: min(760px, calc(100vh - 34px));
    border-radius: 24px;
}

.lft-chat__launcher-copy strong,
.lft-chat__identity strong {
    font-size: 13px;
    letter-spacing: -.01em;
}

.lft-chat__assistant-row strong {
    font-size: 13px;
}

.lft-chat__assistant-row small,
.lft-chat__identity small,
.lft-chat__launcher-copy small {
    font-size: 10px;
}

.lft-chat__welcome-bubble p,
.lft-chat__message-bubble p {
    font-size: 13px;
    line-height: 1.65;
}

.lft-chat__message-bubble {
    max-width: 88%;
    padding: 13px 15px;
    border-radius: 15px;
}

.lft-chat__message-actions {
    gap: 7px;
}

.lft-chat__message-actions button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 750;
}

.lft-chat__composer textarea {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .lft-chat__panel {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        right: 8px;
        bottom: 8px;
        border-radius: 20px;
    }

    .lft-chat__trust-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}
