:root {
    --gen-chat-green: #005b38;
    --gen-chat-green-dark: #003a26;
    --gen-chat-green-deep: #00291b;
    --gen-chat-gold: #f4b437;

    --gen-chat-bg: #f5f8f6;
    --gen-chat-white: #ffffff;
    --gen-chat-text: #1b2923;
    --gen-chat-muted: #708078;
    --gen-chat-border: #dfe8e3;
}


/* =========================================================
   WRAPPER
========================================================= */

.gen-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 999999;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   FLOATING BUTTON
========================================================= */

.gen-chat-toggle {
    min-height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 7px 18px 7px 8px;

    border: 0;
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--gen-chat-green-dark),
            var(--gen-chat-green)
        );

    color: #ffffff;

    box-shadow:
        0 14px 38px
        rgba(0, 56, 35, .28);

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.gen-chat-toggle:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 44px
        rgba(0, 56, 35, .34);
}


/* LOGO HOLDER */

.gen-chat-toggle-logo-wrap {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #ffffff;

    padding: 3px;

    box-sizing: border-box;
}


/* LOGO */

.gen-chat-toggle-logo {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 50%;
}


/* TEXT */

.gen-chat-toggle-label {
    display: block;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   WELCOME POPUP
========================================================= */

.gen-chat-welcome {
    position: absolute;

    right: 0;
    bottom: 78px;

    width: 355px;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 21px 21px 20px;

    border:
        1px solid
        rgba(0, 91, 56, .12);

    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 20px 55px
        rgba(16, 45, 34, .18);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(15px)
        scale(.97);

    transform-origin:
        bottom right;

    transition:
        opacity .28s ease,
        transform .28s ease,
        visibility .28s ease;

    z-index: 9998;
}


.gen-chat-welcome.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* POINTER */

.gen-chat-welcome::after {
    content: '';

    position: absolute;

    right: 26px;
    bottom: -8px;

    width: 16px;
    height: 16px;

    background: #ffffff;

    border-right:
        1px solid
        rgba(0, 91, 56, .10);

    border-bottom:
        1px solid
        rgba(0, 91, 56, .10);

    transform:
        rotate(45deg);
}


/* WELCOME LOGO */

.gen-chat-welcome-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 4px;

    border:
        1px solid
        rgba(0, 91, 56, .12);

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 8px 20px
        rgba(0, 91, 56, .10);

    box-sizing: border-box;
}


.gen-chat-welcome-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 50%;
}


/* CONTENT */

.gen-chat-welcome-content {
    min-width: 0;

    padding-right: 12px;
}


.gen-chat-welcome-label {
    display: block;

    margin-bottom: 5px;

    color: #b78022;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.25px;
}


.gen-chat-welcome-content strong {
    display: block;

    color:
        var(--gen-chat-green-dark);

    font-size: 15px;
    font-weight: 750;

    line-height: 1.4;
}


.gen-chat-welcome-content p {
    margin:
        8px 0 13px;

    color: #61736c;

    font-size: 11.5px;

    line-height: 1.65;
}


/* START BUTTON */

.gen-chat-welcome-start {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding:
        0 14px;

    border: 0;
    border-radius: 9px;

    background:
        var(--gen-chat-green);

    color: #ffffff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(0, 91, 56, .15);

    transition:
        background-color .2s ease,
        transform .2s ease;
}


.gen-chat-welcome-start:hover {
    background:
        var(--gen-chat-green-dark);

    transform:
        translateY(-1px);
}


/* CLOSE */

.gen-chat-welcome-close {
    position: absolute;

    top: 9px;
    right: 10px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #8b9994;

    font-size: 19px;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.gen-chat-welcome-close:hover {
    background: #f0f5f2;

    color:
        var(--gen-chat-green-dark);
}


/* =========================================================
   CHAT WINDOW
========================================================= */

.gen-chat-window {
    position: absolute;

    right: 0;
    bottom: 74px;

    width: 390px;

    max-width:
        calc(100vw - 32px);

    height: 590px;

    max-height:
        calc(100vh - 120px);

    display: none;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--gen-chat-border);

    border-radius: 20px;

    background:
        var(--gen-chat-white);

    box-shadow:
        0 24px 70px
        rgba(0, 46, 29, .20);
}


.gen-chat-window.open {
    display: flex;
}


/* =========================================================
   HEADER
========================================================= */

.gen-chat-header {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        14px 18px;

    background:
        linear-gradient(
            135deg,
            var(--gen-chat-green-deep),
            var(--gen-chat-green)
        );

    color: #ffffff;
}


.gen-chat-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}


/* CHAT HEADER LOGO */

.gen-chat-avatar {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 4px;

    border:
        1px solid
        rgba(244, 180, 55, .45);

    border-radius: 50%;

    background: #ffffff;

    box-sizing: border-box;
}


.gen-chat-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 50%;
}


.gen-chat-brand strong {
    display: block;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;
}


.gen-chat-brand span {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 4px;

    color:
        rgba(255, 255, 255, .72);

    font-size: 11px;
}


.gen-chat-brand span i {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: #5cd18a;

    box-shadow:
        0 0 0 3px
        rgba(92, 209, 138, .10);
}


/* CLOSE */

.gen-chat-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    color: #ffffff;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color .2s ease;
}


.gen-chat-close:hover {
    background:
        rgba(255, 255, 255, .15);
}


/* =========================================================
   MESSAGE AREA
========================================================= */

.gen-chat-messages {
    flex: 1;

    overflow-y: auto;

    padding:
        20px 17px;

    background:
        linear-gradient(
            180deg,
            #f9fbfa,
            #f4f8f6
        );

    scrollbar-width: thin;
    scrollbar-color:
        #bccbc4
        transparent;
}


.gen-chat-messages::-webkit-scrollbar {
    width: 5px;
}


.gen-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}


.gen-chat-messages::-webkit-scrollbar-thumb {
    background: #bccbc4;

    border-radius: 20px;
}


/* =========================================================
   MESSAGES
========================================================= */

.gen-chat-message {
    display: flex;

    margin-bottom: 14px;
}


.gen-chat-message.bot {
    justify-content: flex-start;
}


.gen-chat-message.user {
    justify-content: flex-end;
}


.gen-chat-message-bubble {
    max-width: 82%;

    padding:
        12px 14px;

    border-radius: 14px;

    font-size: 13px;

    line-height: 1.65;

    white-space: normal;

    overflow-wrap: anywhere;
}


.gen-chat-message.bot
.gen-chat-message-bubble {
    border:
        1px solid
        var(--gen-chat-border);

    border-top-left-radius: 4px;

    background: #ffffff;

    color:
        var(--gen-chat-text);
}


.gen-chat-message.user
.gen-chat-message-bubble {
    border-top-right-radius: 4px;

    background:
        var(--gen-chat-green);

    color: #ffffff;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.gen-chat-quick-actions {
    display: flex;

    gap: 7px;

    overflow-x: auto;

    padding:
        10px 14px;

    border-top:
        1px solid
        var(--gen-chat-border);

    background: #ffffff;

    scrollbar-width: none;
}


.gen-chat-quick-actions::-webkit-scrollbar {
    display: none;
}


.gen-chat-quick-actions button {
    flex: 0 0 auto;

    min-height: 34px;

    padding:
        0 11px;

    border:
        1px solid
        rgba(0, 91, 56, .18);

    border-radius: 999px;

    background: #f6faf8;

    color:
        var(--gen-chat-green);

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


.gen-chat-quick-actions button:hover {
    border-color:
        rgba(0, 91, 56, .30);

    background: #eaf5ef;
}


/* =========================================================
   INPUT FORM
========================================================= */

.gen-chat-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        46px;

    gap: 9px;

    padding:
        12px 14px;

    border-top:
        1px solid
        var(--gen-chat-border);

    background: #ffffff;
}


.gen-chat-form input {
    width: 100%;

    min-width: 0;

    min-height: 46px;

    padding:
        0 14px;

    border:
        1px solid
        var(--gen-chat-border);

    border-radius: 11px;

    background: #f8faf9;

    color:
        var(--gen-chat-text);

    font-family: inherit;

    font-size: 13px;

    outline: none;

    box-sizing: border-box;
}


.gen-chat-form input:focus {
    border-color:
        rgba(0, 91, 56, .45);

    box-shadow:
        0 0 0 4px
        rgba(0, 91, 56, .06);
}


.gen-chat-form input:disabled {
    opacity: .65;

    cursor: wait;
}


.gen-chat-form button {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 11px;

    background:
        var(--gen-chat-green);

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .2s ease;
}


.gen-chat-form button:hover {
    background:
        var(--gen-chat-green-dark);

    transform:
        translateY(-1px);
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.gen-chat-action-wrapper {
    max-width: 90%;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.gen-chat-action-button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0 14px;

    border-radius: 9px;

    background:
        var(--gen-chat-green);

    color:
        #ffffff !important;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    text-decoration:
        none !important;

    box-shadow:
        0 7px 18px
        rgba(0, 91, 56, .12);

    transition:
        background-color .2s ease,
        transform .2s ease;
}


.gen-chat-action-button:hover {
    background:
        var(--gen-chat-green-dark);

    color:
        #ffffff !important;

    transform:
        translateY(-1px);
}


/* =========================================================
   SUGGESTIONS
========================================================= */

.gen-chat-suggestions-row {
    margin:
        5px 0 17px;
}


.gen-chat-suggestions-label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--gen-chat-muted);

    font-size: 10px;
    font-weight: 600;
}


.gen-chat-suggestions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.gen-chat-suggestions button {
    min-height: 34px;

    padding:
        0 11px;

    border:
        1px solid
        rgba(0, 91, 56, .17);

    border-radius: 999px;

    background: #ffffff;

    color:
        var(--gen-chat-green);

    font-family: inherit;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


.gen-chat-suggestions button:hover {
    border-color:
        rgba(0, 91, 56, .32);

    background: #edf7f2;
}


/* =========================================================
   TYPING INDICATOR
========================================================= */

.gen-chat-typing {
    min-width: 60px;

    display: flex;
    align-items: center;

    gap: 5px;
}


.gen-chat-typing span {
    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background: #8fa49a;

    animation:
        genChatTypingSmart
        1.2s
        infinite
        ease-in-out;
}


.gen-chat-typing span:nth-child(2) {
    animation-delay: .15s;
}


.gen-chat-typing span:nth-child(3) {
    animation-delay: .30s;
}


@keyframes genChatTypingSmart {

    0%,
    60%,
    100% {
        transform:
            translateY(0);

        opacity: .4;
    }


    30% {
        transform:
            translateY(-4px);

        opacity: 1;
    }
}


/* =========================================================
   FOOTER
========================================================= */

.gen-chat-footer {
    padding:
        0 14px 12px;

    background: #ffffff;

    color:
        var(--gen-chat-muted);

    font-size: 9px;

    text-align: center;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.gen-chat-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip:
        rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .gen-chatbot {
        right: 14px;
        bottom: 14px;
    }


    /* FLOATING BUTTON */

    .gen-chat-toggle {
        min-height: 54px;

        gap: 8px;

        padding:
            6px 15px 6px 7px;
    }


    .gen-chat-toggle-logo-wrap {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .gen-chat-toggle-label {
        font-size: 12px;
    }


    /* WELCOME */

    .gen-chat-welcome {
        position: fixed;

        left: 14px;
        right: 14px;
        bottom: 84px;

        width: auto;

        max-width: none;

        padding:
            18px 18px 17px;

        border-radius: 15px;
    }


    .gen-chat-welcome-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }


    .gen-chat-welcome-content strong {
        font-size: 14px;
    }


    .gen-chat-welcome-content p {
        font-size: 11px;
    }


    .gen-chat-welcome::after {
        right: 27px;
    }


    /* CHAT WINDOW */

    .gen-chat-window {
        position: fixed;

        left: 12px;
        right: 12px;
        bottom: 80px;

        width: auto;

        height:
            min(
                620px,
                calc(100vh - 100px)
            );

        max-width: none;
        max-height: none;

        border-radius: 17px;
    }


    .gen-chat-header {
        min-height: 70px;

        padding:
            12px 14px;
    }


    .gen-chat-avatar {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .gen-chat-brand strong {
        font-size: 13px;
    }


    .gen-chat-brand span {
        font-size: 10px;
    }


    .gen-chat-messages {
        padding:
            16px 13px;
    }


    .gen-chat-message-bubble {
        max-width: 88%;

        font-size: 12px;
    }


    .gen-chat-action-wrapper {
        max-width: 100%;
    }


    .gen-chat-action-button {
        min-height: 37px;

        padding:
            0 12px;

        font-size: 10px;
    }


    .gen-chat-suggestions button {
        font-size: 10px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .gen-chat-toggle-label {
        font-size: 11px;
    }


    .gen-chat-toggle {
        padding-right: 12px;
    }


    .gen-chat-welcome {
        left: 10px;
        right: 10px;
    }


    .gen-chat-window {
        left: 8px;
        right: 8px;
    }

}