.live-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    color: #26313d;
    font-family: "OpenSans-Regular", Arial, sans-serif;
}

.live-chat-toggle,
.live-chat-invite,
.live-chat-panel button {
    font-family: inherit;
}

.live-chat-toggle {
    min-width: 210px;
    height: 62px;
    border: 0;
    border-radius: 31px;
    padding: 0 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    background: #1f8f4d;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    cursor: pointer;
    text-align: left;
}

.live-chat-toggle:hover,
.live-chat-toggle:focus-visible {
    background: #18763e;
    outline: 3px solid rgba(31, 143, 77, .22);
}

.live-chat-toggle.is-whatsapp {
    min-width: 166px;
    background: #25a85a;
}

.live-chat-toggle-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .17);
    font-size: 22px;
    line-height: 1;
}

.live-chat-toggle-copy,
.live-chat-toggle-copy strong,
.live-chat-toggle-copy small {
    display: block;
}

.live-chat-toggle-copy strong {
    font-size: 14px;
    line-height: 1.25;
}

.live-chat-toggle-copy small {
    margin-top: 2px;
    color: #e8fff1;
    font-size: 11px;
    font-weight: 400;
}

.live-chat-unread {
    min-width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 11px;
    padding: 0 5px;
    position: absolute;
    top: -5px;
    right: -3px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.live-chat-invite {
    width: 250px;
    border: 1px solid #dce3e8;
    border-radius: 7px;
    padding: 12px 38px 12px 14px;
    display: none;
    position: absolute;
    right: 0;
    bottom: 74px;
    background: #fff;
    color: #26313d;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
    cursor: pointer;
    text-align: left;
}

.live-chat-invite:after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1px solid #dce3e8;
    border-bottom: 1px solid #dce3e8;
    position: absolute;
    right: 27px;
    bottom: -6px;
    background: #fff;
    transform: rotate(45deg);
}

.live-chat-widget.is-inviting:not(.is-open) .live-chat-invite {
    display: block;
    animation: live-chat-invite-in .22s ease-out;
}

.live-chat-invite strong,
.live-chat-invite span {
    display: block;
}

.live-chat-invite strong {
    color: #1b2630;
    font-size: 14px;
}

.live-chat-invite span {
    margin-top: 3px;
    color: #53616d;
    font-size: 12px;
    line-height: 1.35;
}

.live-chat-panel {
    width: 360px;
    max-width: calc(100vw - 28px);
    display: none;
    overflow: hidden;
    position: absolute;
    right: 0;
    bottom: 76px;
    background: #fff;
    color: #26313d;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .28);
}

.live-chat-widget.is-open .live-chat-panel {
    display: block;
    animation: live-chat-panel-in .18s ease-out;
}

.live-chat-panel header {
    min-height: 76px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #26313d;
    color: #fff;
}

.live-chat-agent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-chat-agent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2b632;
    color: #26313d;
    font-size: 13px;
    font-weight: 700;
}

.live-chat-panel header strong,
.live-chat-panel header span {
    display: block;
}

.live-chat-panel header strong {
    font-size: 15px;
}

.live-chat-panel header span {
    margin-top: 4px;
    color: #e5ebef;
    font-size: 12px;
}

.live-chat-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    background: #51d27c;
}

.live-chat-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.live-chat-start {
    padding: 18px;
}

.live-chat-intro {
    margin: 0 0 15px;
    color: #3e4b57;
    font-size: 14px;
    line-height: 1.45;
}

.live-chat-start label {
    display: block;
    margin-bottom: 7px;
    color: #26313d;
    font-weight: 700;
    font-size: 13px;
}

.live-chat-start input,
.live-chat-message-form input {
    width: 100%;
    height: 44px;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    color: #26313d;
    font-size: 14px;
}

.live-chat-start input:focus,
.live-chat-message-form input:focus {
    border-color: #1f8f4d;
    outline: 3px solid rgba(31, 143, 77, .14);
}

.live-chat-start button,
.live-chat-message-form button {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #1f8f4d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.live-chat-start button {
    width: 100%;
    margin-top: 11px;
}

.live-chat-room {
    display: none;
}

.live-chat-widget.has-conversation .live-chat-start {
    display: none;
}

.live-chat-widget.has-conversation .live-chat-room {
    display: block;
}

.live-chat-room-status {
    min-height: 38px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e3e8ed;
    background: #fff9e8;
    color: #5c4b18;
    font-size: 12px;
}

.live-chat-room-status button {
    border: 0;
    padding: 3px;
    background: transparent;
    color: #7a3e16;
    cursor: pointer;
    text-decoration: underline;
}

.live-chat-messages {
    height: 260px;
    padding: 14px;
    overflow-y: auto;
    background: #f3f5f7;
}

.live-chat-message {
    max-width: 85%;
    margin-bottom: 9px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.live-chat-message.visitor {
    margin-left: auto;
    background: #dff3e8;
    color: #173b26;
}

.live-chat-message.agent {
    background: #fff;
    border: 1px solid #d8dfe5;
    color: #26313d;
}

.live-chat-suggestions {
    padding: 10px 12px 2px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: #fff;
}

.live-chat-suggestions.is-hidden {
    display: none;
}

.live-chat-suggestions button {
    min-height: 30px;
    border: 1px solid #9ca9b4;
    border-radius: 15px;
    padding: 5px 10px;
    flex: 0 0 auto;
    background: #fff;
    color: #35424d;
    cursor: pointer;
    font-size: 11px;
}

.live-chat-message-form {
    padding: 10px 12px 12px;
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
}

.live-chat-message-form button {
    width: 44px;
    font-size: 17px;
}

.live-chat-feedback {
    min-height: 0;
    margin: 0;
    padding: 0 14px;
    color: #8a3d00;
    font-size: 12px;
}

.live-chat-feedback:not(:empty) {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 9px;
    border-top: 1px solid #f0ddd0;
    background: #fff8f2;
}

.live-chat-feedback.is-success:not(:empty) {
    border-top-color: #b9dfc8;
    background: #edf9f1;
    color: #17643a;
    font-weight: 700;
}

@keyframes live-chat-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes live-chat-invite-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .live-chat-widget.is-open .live-chat-panel,
    .live-chat-widget.is-inviting:not(.is-open) .live-chat-invite {
        animation: none;
    }
}

@media (max-width: 520px) {
    .live-chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .live-chat-toggle {
        min-width: 176px;
        height: 56px;
        border-radius: 28px;
    }

    .live-chat-toggle-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 20px;
    }

    .live-chat-toggle-copy strong {
        font-size: 12px;
    }

    .live-chat-toggle-copy small {
        font-size: 10px;
    }

    .live-chat-panel {
        width: calc(100vw - 24px);
        bottom: 66px;
    }

    .live-chat-invite {
        width: 230px;
        bottom: 67px;
    }

    .live-chat-messages {
        height: min(300px, 38vh);
    }
}
