[hidden] {
    display: none !important;
}

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

.inovotec-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Inter, Arial, sans-serif;
}

/* =========================================================
   UŽDARYTAS POKALBIO BURBULAS
========================================================= */

.inovotec-chat__launcher {
    position: relative;
    overflow: visible;
    isolation: isolate;
    display: flex;
    width: 205px;
    min-height: 64px;
    margin-left: auto;
    align-items: center;
    gap: 11px;
    padding: 8px 14px 8px 9px;
    border: 1px solid rgba(89, 255, 140, .28);
    border-radius: 19px;
    background:
        linear-gradient(145deg, rgba(10, 24, 17, .98), rgba(3, 11, 7, .98));
    box-shadow:
        0 15px 38px rgba(0, 0, 0, .48),
        0 0 24px rgba(89, 255, 140, .08);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.inovotec-chat__launcher:hover {
    transform: translateY(-2px);
    border-color: rgba(89, 255, 140, .52);
    box-shadow:
        0 19px 44px rgba(0, 0, 0, .54),
        0 0 28px rgba(89, 255, 140, .15);
}

.inovotec-chat__launcher.is-online {
    border-color: rgba(89, 255, 140, .48);
    box-shadow:
        0 15px 38px rgba(0, 0, 0, .48),
        0 0 26px rgba(89, 255, 140, .14);
}

.inovotec-chat__launcher-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #63ff9a, #25dc69);
    box-shadow: 0 8px 22px rgba(50, 235, 111, .23);
    font-size: 21px;
}

.inovotec-chat__launcher-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.inovotec-chat__launcher-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inovotec-chat__launcher-copy small {
    overflow: hidden;
    color: #a4b7aa;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inovotec-chat__launcher.is-online .inovotec-chat__launcher-copy small {
    color: #63ff9a;
}

.inovotec-chat__notification {
    position: absolute;
    top: -6px;
    right: -5px;
    display: grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border: 2px solid #041009;
    border-radius: 999px;
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   POKALBIO LANGAS
========================================================= */

.inovotec-chat__window {
    position: absolute;
    right: 0;
    bottom: 76px;
    display: flex;
    width: min(380px, calc(100vw - 28px));
    height: min(620px, calc(100vh - 105px));
    min-height: 480px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(89, 255, 140, .24);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(5, 15, 10, .99), rgba(2, 9, 6, .99));
    box-shadow:
        0 26px 82px rgba(0, 0, 0, .58),
        0 0 34px rgba(89, 255, 140, .08);
}

.inovotec-chat__header {
    display: flex;
    min-height: 68px;
    flex: 0 0 68px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(89, 255, 140, .14);
    background:
        linear-gradient(180deg, rgba(7, 19, 13, .99), rgba(3, 12, 8, .99));
    color: #fff;
}

.inovotec-chat__header div {
    display: grid;
    gap: 3px;
}

.inovotec-chat__header strong {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.inovotec-chat__header span {
    color: #9fb2a5;
    font-size: 11px;
}

.inovotec-chat__close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(89, 255, 140, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    color: #dfffea;
    cursor: pointer;
    font-size: 23px;
}

.inovotec-chat__start,
.inovotec-chat__conversation {
    min-height: 0;
    flex: 1;
}

.inovotec-chat__start {
    overflow-y: auto;
    padding: 15px 16px 16px;
    background:
        radial-gradient(circle at top right, rgba(89, 255, 140, .07), transparent 34%),
        linear-gradient(180deg, rgba(5, 14, 10, .98), rgba(2, 9, 6, .99));
    scrollbar-color: rgba(99, 255, 154, .35) transparent;
    scrollbar-width: thin;
}

.inovotec-chat__start::-webkit-scrollbar,
.inovotec-chat__messages::-webkit-scrollbar {
    width: 6px;
}

.inovotec-chat__start::-webkit-scrollbar-thumb,
.inovotec-chat__messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(99, 255, 154, .28);
}

.inovotec-chat__welcome {
    margin-bottom: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(89, 255, 140, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
}

.inovotec-chat__welcome strong {
    display: block;
    margin-bottom: 4px;
    color: #63ff9a;
    font-size: 17px;
}

.inovotec-chat__welcome p {
    margin: 0;
    color: #d6e3da;
    font-size: 13px;
    line-height: 1.45;
}

.inovotec-chat form {
    display: grid;
    gap: 6px;
}

.inovotec-chat label {
    margin-top: 3px;
    color: #c9d7ce;
    font-size: 12px;
    font-weight: 700;
}

.inovotec-chat input,
.inovotec-chat select,
.inovotec-chat textarea {
    width: 100%;
    border: 1px solid rgba(89, 255, 140, .15);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, .045);
    color: #fff;
    font: inherit;
    font-size: 14px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.inovotec-chat input,
.inovotec-chat select {
    min-height: 40px;
    padding: 9px 11px;
}

.inovotec-chat select {
    color-scheme: dark;
    cursor: pointer;
    background-color: #07110c;
}

/* Kalbų sąrašo regionų antraštės */
.inovotec-chat select optgroup {
    background: #63ff9a;
    color: #031109;
    font-weight: 900;
}

/* Pačios kalbos lieka tamsiame Inovotec fone */
.inovotec-chat select option {
    background: #031109;
    color: #ffffff;
    font-weight: 600;
}

.inovotec-chat select option:checked {
    background: #1f6fd1;
    color: #ffffff;
}

.inovotec-chat textarea {
    resize: none;
    padding: 10px 11px;
    line-height: 1.42;
}

.inovotec-chat input:focus,
.inovotec-chat select:focus,
.inovotec-chat textarea:focus {
    border-color: rgba(89, 255, 140, .58);
    background: rgba(255, 255, 255, .065);
    box-shadow: 0 0 0 3px rgba(89, 255, 140, .09);
}

.inovotec-chat__primary {
    min-height: 43px;
    margin-top: 7px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #63ff9a, #2de270);
    box-shadow: 0 9px 22px rgba(50, 235, 111, .18);
    color: #031109;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.inovotec-chat button:disabled,
.inovotec-chat select:disabled,
.inovotec-chat textarea:disabled {
    cursor: not-allowed;
    opacity: .6;
}

/* =========================================================
   ŽINUTĖS
========================================================= */

.inovotec-chat__conversation {
    display: flex;
    flex-direction: column;
}

.inovotec-chat__messages {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
    padding: 15px;
    background:
        radial-gradient(circle at top right, rgba(89, 255, 140, .055), transparent 31%),
        linear-gradient(180deg, rgba(4, 13, 9, .99), rgba(2, 8, 5, .99));
    scrollbar-color: rgba(99, 255, 154, .35) transparent;
    scrollbar-width: thin;
}

.inovotec-chat__message {
    display: flex;
    margin: 0 0 11px;
}

.inovotec-chat__message--visitor {
    justify-content: flex-end;
}

.inovotec-chat__message--admin,
.inovotec-chat__message--ai,
.inovotec-chat__message--system {
    justify-content: flex-start;
}

.inovotec-chat__bubble {
    max-width: 84%;
    padding: 9px 11px 7px;
    border-radius: 13px;
}

.inovotec-chat__message--visitor .inovotec-chat__bubble {
    border-bottom-right-radius: 4px;
    background: linear-gradient(145deg, #63ff9a, #2de270);
    box-shadow: 0 8px 20px rgba(50, 235, 111, .17);
    color: #031109;
}

.inovotec-chat__message--admin .inovotec-chat__bubble,
.inovotec-chat__message--ai .inovotec-chat__bubble,
.inovotec-chat__message--system .inovotec-chat__bubble {
    border: 1px solid rgba(89, 255, 140, .13);
    border-bottom-left-radius: 4px;
    background: rgba(255, 255, 255, .045);
    color: #ebf7ef;
}

.inovotec-chat__message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.45;
}

.inovotec-chat__message-time {
    display: block;
    margin-top: 3px;
    color: #91a297;
    font-size: 9px;
    text-align: right;
}

.inovotec-chat__message-form {
    display: flex !important;
    align-items: flex-end;
    gap: 8px !important;
    padding: 11px;
    border-top: 1px solid rgba(89, 255, 140, .12);
    background: rgba(3, 11, 7, .99);
}

.inovotec-chat__message-form textarea {
    min-height: 42px;
    max-height: 110px;
    flex: 1;
}

.inovotec-chat__message-form button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #63ff9a, #2de270);
    color: #031109;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.inovotec-chat__error {
    margin-top: 7px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 90, 90, .2);
    border-radius: 9px;
    background: rgba(255, 55, 55, .12);
    color: #ffb7b7;
    font-size: 11px;
}

.inovotec-chat__conversation > .inovotec-chat__error {
    margin: 0 11px 11px;
}



/* =========================================================
   JUDANTIS UŽDARYTAS BURBULAS
========================================================= */

.inovotec-chat:not(.is-open) .inovotec-chat__launcher {
    animation: inovotec-chat-breathe 3.2s ease-in-out infinite;
}

.inovotec-chat:not(.is-open) .inovotec-chat__launcher::after {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    border: 1px solid rgba(89, 255, 140, .28);
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    animation: inovotec-chat-ring 3.2s ease-out infinite;
}

.inovotec-chat:not(.is-open) .inovotec-chat__launcher-icon {
    animation: inovotec-chat-icon-float 3.2s ease-in-out infinite;
}

.inovotec-chat.is-open .inovotec-chat__launcher::after {
    display: none;
}

@keyframes inovotec-chat-breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 15px 38px rgba(0, 0, 0, .48),
            0 0 24px rgba(89, 255, 140, .08);
    }
    35% {
        transform: translateY(-4px) scale(1.015);
        box-shadow:
            0 19px 44px rgba(0, 0, 0, .52),
            0 0 34px rgba(89, 255, 140, .18);
    }
    70% {
        transform: translateY(-1px) scale(1.005);
        box-shadow:
            0 16px 39px rgba(0, 0, 0, .5),
            0 0 27px rgba(89, 255, 140, .12);
    }
}

@keyframes inovotec-chat-ring {
    0% {
        opacity: 0;
        transform: scale(.92);
    }
    18% {
        opacity: .38;
    }
    58% {
        opacity: .12;
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes inovotec-chat-icon-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 22px rgba(50, 235, 111, .23);
    }
    35% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 11px 28px rgba(50, 235, 111, .3);
    }
    70% {
        transform: translateY(0) scale(1.02);
        box-shadow: 0 9px 24px rgba(50, 235, 111, .24);
    }
}

/* =========================================================
   MAŽESNI EKRANAI
========================================================= */

@media (max-width: 600px) {
    .inovotec-chat {
        right: 12px;
        bottom: 12px;
    }

    .inovotec-chat__launcher {
        width: 190px;
        min-height: 60px;
    }

    .inovotec-chat__launcher-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .inovotec-chat__window {
        position: fixed;
        inset: 8px;
        width: auto;
        height: auto;
        min-height: 0;
        border-radius: 16px;
    }
}

@media (max-height: 650px) and (min-width: 601px) {
    .inovotec-chat__window {
        height: calc(100vh - 92px);
        min-height: 0;
    }

    .inovotec-chat__welcome {
        padding: 10px 12px;
    }

    .inovotec-chat__start {
        padding-top: 11px;
    }
}


/* =========================================================
   BESIKEIČIANTYS BURBULO KLAUSIMAI
========================================================= */

.inovotec-chat__launcher-copy strong {
    transform: translateY(0);
    opacity: 1;
    transition:
        opacity .21s ease,
        transform .21s ease;
    will-change: opacity, transform;
}

.inovotec-chat__launcher-copy strong.is-changing {
    transform: translateY(-7px);
    opacity: 0;
}

.inovotec-chat__launcher-copy strong.is-entering {
    animation: inovotec-chat-prompt-enter .26s ease both;
}

@keyframes inovotec-chat-prompt-enter {
    from {
        transform: translateY(7px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
