.it-chatbot {
    --it-primary: #6254e7;
    --it-secondary: #2563eb;
    --it-green: #22c55e;
    --it-ink: #172033;
    --it-muted: #69758a;
    --it-gradient: linear-gradient(135deg, #6d4ee8 0%, #3a63e8 52%, #168fb8 100%);
    position: relative;
    z-index: 9999;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.it-chatbot button,
.it-chatbot a {
    font-family: inherit;
}

.it-chatbot-launcher {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 9px 20px 9px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #fff;
    background: var(--it-gradient);
    box-shadow: 0 15px 35px rgba(48, 61, 180, .32), 0 0 0 7px rgba(98, 84, 231, .08);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    animation: it-chatbot-float 4s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease;
}

.it-chatbot-launcher:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 19px 42px rgba(48, 61, 180, .4), 0 0 0 8px rgba(98, 84, 231, .1);
}

.it-chatbot-launcher:focus-visible,
.it-chatbot button:focus-visible,
.it-chatbot a:focus-visible {
    outline: 3px solid rgba(99, 102, 241, .35);
    outline-offset: 3px;
}

.it-chatbot.is-open .it-chatbot-launcher {
    pointer-events: none;
    opacity: 0;
    transform: scale(.9);
}

body.it-chatbot-page-open {
    overflow: hidden;
}

.it-chatbot-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    pointer-events: none;
    background: rgba(10, 18, 40, .28);
    opacity: 0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: opacity .25s ease, visibility .25s ease;
}

.it-chatbot.is-open .it-chatbot-backdrop {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.it-chatbot-launcher-icon,
.it-chatbot-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.it-chatbot-launcher-icon {
    width: 40px;
    height: 40px;
}

.it-chatbot svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.it-chatbot-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10001;
    display: flex;
    width: min(430px, calc(100vw - 32px));
    height: min(660px, calc(100vh - 48px));
    overflow: hidden;
    visibility: hidden;
    flex-direction: column;
    border: 1px solid rgba(83, 76, 170, .13);
    border-radius: 24px;
    background: #f4f6fc;
    box-shadow: 0 28px 80px rgba(17, 28, 65, .3);
    opacity: 0;
    transform: translateY(22px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.it-chatbot.is-open .it-chatbot-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.it-chatbot-header {
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 15px 17px;
    color: #fff;
    background: var(--it-gradient);
}

.it-chatbot-avatar {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.it-chatbot-avatar svg {
    width: 26px;
    height: 26px;
}

.it-chatbot-identity {
    min-width: 0;
    flex: 1;
}

.it-chatbot-identity h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
}

.it-chatbot-identity p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 12px;
}

.it-chatbot-online-dot {
    width: 8px;
    height: 8px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

.it-chatbot-close {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.it-chatbot-close:hover {
    background: rgba(255, 255, 255, .23);
    transform: rotate(7deg);
}

.it-chatbot-close svg {
    width: 20px;
    height: 20px;
}

.it-chatbot-content {
    min-height: 0;
    padding: 20px 16px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
}

.it-chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.it-chatbot-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: it-chatbot-message-in .25s ease both;
}

.it-chatbot-message.is-user {
    justify-content: flex-end;
}

.it-chatbot-mini-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    min-width: 30px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--it-gradient);
    box-shadow: 0 6px 14px rgba(75, 69, 189, .18);
}

.it-chatbot-mini-avatar svg {
    width: 17px;
    height: 17px;
}

.it-chatbot-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border: 1px solid #e5e9f3;
    border-radius: 8px 17px 17px 17px;
    color: #364155;
    background: #fff;
    box-shadow: 0 7px 18px rgba(41, 51, 89, .07);
    font-size: 14px;
    line-height: 1.58;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.it-chatbot-message.is-user .it-chatbot-bubble {
    border: 0;
    border-radius: 17px 8px 17px 17px;
    color: #fff;
    background: linear-gradient(135deg, #7357e6, #4965df);
    box-shadow: 0 8px 18px rgba(83, 76, 190, .2);
}

.it-chatbot-greeting strong {
    display: block;
    margin-bottom: 5px;
    color: #232c40;
}

@media (hover: hover) and (pointer: fine) {
    .it-chatbot-message.is-bot:not(.it-chatbot-typing) .it-chatbot-bubble:hover {
        border-color: rgba(109, 78, 232, .45);
        box-shadow: 0 13px 28px rgba(71, 65, 165, .16);
        transform: translateY(-3px);
    }
}

.it-chatbot-suggestions {
    margin-top: 20px;
}

.it-chatbot-suggestion-label {
    margin: 0 0 10px 38px;
    color: #7b8496;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.it-chatbot-question-list {
    display: grid;
    gap: 9px;
    margin-left: 38px;
}

.it-chatbot-question {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dfe4f3;
    border-radius: 12px;
    color: #39445b;
    background: #fff;
    box-shadow: 0 5px 14px rgba(41, 51, 89, .04);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.it-chatbot-question:hover {
    border-color: #8274e8;
    color: #5a48cf;
    background: #f9f8ff;
    transform: translateY(-1px);
}

.it-chatbot-question:disabled {
    cursor: wait;
    opacity: .55;
    transform: none;
}

.it-chatbot-typing .it-chatbot-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 43px;
    color: #778197;
}

.it-chatbot-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7768df;
    animation: it-chatbot-dot 1.1s ease-in-out infinite;
}

.it-chatbot-typing-dot:nth-child(2) {
    animation-delay: .14s;
}

.it-chatbot-typing-dot:nth-child(3) {
    animation-delay: .28s;
}

.it-chatbot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.it-chatbot-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #dcdff2;
    border-radius: 10px;
    color: #5b4ed4;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.it-chatbot-actions .it-chatbot-linkedin-icon {
    width: 15px;
    height: 15px;
    stroke: none;
}

.it-chatbot-actions a:hover {
    border-color: #7567df;
    box-shadow: 0 7px 16px rgba(83, 76, 190, .12);
    transform: translateY(-1px);
}

.it-chatbot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 9px 16px;
    border-top: 1px solid #e2e6f0;
    color: #8790a2;
    background: rgba(255, 255, 255, .92);
    font-size: 10px;
    font-weight: 650;
}

.it-chatbot-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    color: #68738a;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.it-chatbot-reset:hover {
    color: #5548c8;
    background: #f0effc;
}

.it-chatbot-reset svg {
    width: 13px;
    height: 13px;
}

.it-chatbot-footer>span i {
    color: #735fe2;
    font-style: normal;
}

@keyframes it-chatbot-float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

@keyframes it-chatbot-message-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes it-chatbot-dot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .45;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@media (max-width: 575px) {
    .it-chatbot-launcher {
        right: 16px;
        bottom: 18px;
        width: 56px;
        min-height: 56px;
        padding: 8px;
        justify-content: center;
    }

    .it-chatbot-launcher-icon {
        width: 40px;
        height: 40px;
    }

    .it-chatbot-launcher-text {
        display: none;
    }

    .it-chatbot-panel {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        height: min(88dvh, 720px);
        max-width: none;
        border-radius: 20px;
        transform-origin: bottom center;
    }

    .it-chatbot-header {
        min-height: 74px;
        padding: 12px 14px;
    }

    .it-chatbot-avatar {
        width: 44px;
        height: 44px;
    }

    .it-chatbot-identity h2 {
        font-size: 15px;
    }

    .it-chatbot-content {
        padding: 16px 12px 12px;
    }

    .it-chatbot-bubble {
        max-width: 87%;
        font-size: 13px;
    }

    .it-chatbot-question-list,
    .it-chatbot-suggestion-label {
        margin-left: 0;
    }

    .it-chatbot-backdrop {
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
}

@media (max-width: 350px) {
    .it-chatbot-panel {
        right: 6px;
        bottom: 6px;
        left: 6px;
    }

    .it-chatbot-footer {
        padding-inline: 10px;
    }

    .it-chatbot-footer>span {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .it-chatbot-launcher,
    .it-chatbot-message,
    .it-chatbot-typing-dot {
        animation: none;
    }

    .it-chatbot-panel,
    .it-chatbot button,
    .it-chatbot a {
        transition: none;
    }

    .it-chatbot-content {
        scroll-behavior: auto;
    }
}

/* Hide when mobile menu is open */
body:has(.navbar-collapse.show) .it-chatbot {
    display: none !important;
}
}

/* Hide when mobile menu is open */
body:has(.navbar-collapse.show) .it-chatbot {
    display: none !important;
}