.twiza-chat-popup[hidden] {
    display: none !important;
}

.twiza-chatbot-host--trigger,
.twiza-chatbot-host--panel {
    position: relative;
}

.twiza-chatbot-host--trigger {
    z-index: 999998;
}

.twiza-chatbot-host--panel {
    z-index: 999999;
}

.twiza-chatbot-host--panel,
.twiza-chatbot-host--panel * {
    font-family: var(--twiza-font-family, 'Titillium Web', sans-serif) !important;
}

.twiza-chatbot-host--trigger .chatbot__interface-snippet-label {
    font-weight: var(--twiza-launcher-font-weight, 700) !important;
}

.twiza-chatbot-host--panel .chatbot__interface-chat,
.twiza-chatbot-host--panel .chatbot__interface-input,
.twiza-chatbot-host--panel .chatbot__interface-input::placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-webkit-input-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-moz-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input:-ms-input-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-ms-input-placeholder {
    font-family: var(--twiza-font-family, 'Titillium Web', sans-serif) !important;
    font-weight: var(--twiza-chat-font-weight, 400) !important;
    font-style: normal !important;
    font-size: var(--twiza-input-font-size, 18px) !important;
}

.twiza-chatbot-host--panel .chatbot__interface-chat,
.twiza-chatbot-host--panel .chatbot__interface-chat--out .chatbot__interface-chat-animation {
    font-size: var(--twiza-chat-font-size, 18px) !important;
}

.twiza-chatbot-host--panel .chatbot__interface-input,
.twiza-chatbot-host--panel .chatbot__interface-input::placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-webkit-input-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-moz-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input:-ms-input-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-ms-input-placeholder {
    color: var(--twiza-input-text, #fff) !important;
    opacity: 1;
}

.twiza-chatbot-host--panel .chatbot__interface-input {
    caret-color: var(--twiza-input-text, #fff) !important;
    color: var(--twiza-input-text, #fff) !important;
    -webkit-text-fill-color: var(--twiza-input-text, #fff) !important;
    font-size: var(--twiza-input-font-size, 18px) !important;
    width: 100% !important;
    min-width: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 8px 16px !important;
    line-height: 1.45;
}

.twiza-chatbot-host--panel .chatbot__interface-input::placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-webkit-input-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-moz-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input:-ms-input-placeholder,
.twiza-chatbot-host--panel .chatbot__interface-input::-ms-input-placeholder {
    font-family: var(--twiza-font-family, 'Titillium Web', sans-serif) !important;
    font-weight: var(--twiza-chat-font-weight, 400) !important;
    font-style: normal !important;
}

.twiza-chatbot-host--panel .chatbot__interface-input-box {
    padding: 8px 12px 8px 14px;
    gap: 8px;
    align-items: center;
}

.twiza-chatbot-host--panel .chatbot__interface-input-btn-send {
    flex-shrink: 0;
    margin-right: 0;
}

.twiza-chatbot-host--panel .chatbot__interface-chat--system,
.twiza-chatbot-host--panel .chatbot__interface-chat--out .chatbot__interface-chat-animation {
    color: var(--twiza-text, #111827) !important;
}

.twiza-chatbot-host--panel .chatbot__interface-chat-animation-elem span {
    color: var(--twiza-text, #111827) !important;
    border-right-color: currentColor;
}

.twiza-chatbot-host--panel .twiza-chat-powered-by {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.twiza-chatbot-host--panel .twiza-chat-powered-by__pill {
    display: inline-flex;
    align-items: center;
    background-color: var(--twiza-powered-pill-bg, rgba(0, 49, 90, 0.70));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 3px 12px;
    font-family: inherit;
    font-size: var(--twiza-pill-font-size, 10px);
    font-weight: 600;
    color: var(--twiza-powered-pill-text, rgba(255, 255, 255, 0.80));
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
    user-select: none;
    -webkit-user-select: none;
}

.chatbot__interface-snippet.twiza-chat-launcher {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent !important;
    color: var(--twiza-launcher-text, #fff);
    font: inherit;
    text-align: left;
    width: auto;
    height: auto;
    min-height: 0;
    max-width: min(calc(100vw - 24px), 360px);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    cursor: pointer;
}

.chatbot__interface-snippet.twiza-chat-launcher:focus {
    outline: none;
}

.chatbot__interface-snippet.twiza-chat-launcher .chatbot__interface-snippet-label {
    color: inherit;
    display: inline-flex;
    align-items: center;
    line-height: 1.18;
    min-width: 0;
}

.twiza-chat-launcher__shell {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}

.chatbot__interface-snippet.twiza-chat-launcher:focus-visible .twiza-chat-launcher__shell {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.twiza-chat-launcher__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.chatbot__interface-snippet.twiza-chat-launcher .twiza-chat-launcher__icon,
.chatbot__interface-snippet.twiza-chat-launcher .twiza-chat-launcher__icon-image {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform .22s ease;
}

.chatbot__interface-snippet.twiza-chat-launcher .twiza-chat-launcher__icon {
    width: 100% !important;
    height: 100% !important;
    color: inherit;
    transform: none !important;
}

.chatbot__interface-snippet.twiza-chat-launcher .twiza-chat-launcher__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.chatbot__interface-snippet.twiza-chat-launcher .twiza-chat-launcher__icon-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: inherit;
    transform: scale(1) !important;
}

.twiza-chat-launcher__label-shell {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.twiza-chat-launcher--floating .chatbot__interface-snippet-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twiza-chat-launcher--inline {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
}

.twiza-chat-launcher--inline .twiza-chat-launcher__shell {
    background: var(--twiza-launcher-bg, #00315A);
    color: var(--twiza-launcher-text, #fff);
    border-radius: 999px;
    padding: 14px 20px;
    gap: 12px;
    font-size: var(--twiza-inline-button-font-size, 14px);
    box-shadow: 0 12px 26px rgba(0, 27, 51, .16);
}

.twiza-chat-launcher--inline .twiza-chat-launcher__icon-wrap {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.twiza-chat-launcher--inline .twiza-chat-launcher__icon {
    width: 24px !important;
    height: 24px !important;
}

.twiza-chat-launcher--inline .twiza-chat-launcher__label-shell {
    color: inherit;
}

.twiza-chat-launcher--inline .chatbot__interface-snippet-label {
    white-space: normal;
}

.twiza-chat-launcher--inline:hover .twiza-chat-launcher__shell {
    background: var(--twiza-launcher-hover-bg, var(--twiza-launcher-bg, #00315A));
    color: var(--twiza-launcher-hover-text, var(--twiza-launcher-text, #fff));
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 27, 51, .22);
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating {
    max-width: min(calc(100vw - 24px), 180px);
    right: 78px;
    bottom: 18px;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__shell {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, #dce7f4 0%, #9eb5cc 100%);
    box-shadow: 0 8px 18px rgba(0, 27, 51, .16);
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating.twiza-chat-launcher--icon-avatar .twiza-chat-launcher__icon-wrap {
    width: 69px;
    height: 69px;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating.twiza-chat-launcher--icon-chat .twiza-chat-launcher__icon-wrap {
    background: linear-gradient(180deg, #0b406e 0%, #00315A 100%);
    color: #fff;
    display: flex;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__icon {
    width: 18px !important;
    height: 18px !important;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__label-shell {
    background: var(--twiza-launcher-bg, #00315A);
    color: var(--twiza-launcher-text, #fff);
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 6px 14px rgba(0, 27, 51, .14);
    justify-content: center;
    text-align: center;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating .chatbot__interface-snippet-label {
    font-size: var(--twiza-badge-font-size, 11px);
    line-height: 1.1;
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating:hover .twiza-chat-launcher__label-shell {
    background: var(--twiza-launcher-hover-bg, var(--twiza-launcher-bg, #00315A));
    color: var(--twiza-launcher-hover-text, var(--twiza-launcher-text, #fff));
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating.twiza-chat-launcher--icon-avatar:hover .twiza-chat-launcher__icon-wrap {
    transform: scale(1.08) translateY(-3px);
}

.twiza-chat-launcher--style-b.twiza-chat-launcher--floating:hover .twiza-chat-launcher__label-shell {
    transform: translateY(-1px);
}

.twiza-chat-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.twiza-chat-popup-open--floating .twiza-chatbot-host--trigger-floating {
    z-index: 999994;
}

.twiza-chat-popup-open--floating .chatbot__interface-snippet.twiza-chat-launcher--floating {
    z-index: 0;
}

.twiza-chat-popup__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 16, 27, .54);
    cursor: pointer;
}

.twiza-chat-popup.twiza-chat-popup--inline-open .twiza-chat-popup__overlay {
    background: rgba(9, 16, 27, .38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.twiza-chat-popup__dialog {
    position: absolute;
    right: 240px;
    bottom: 132px;
    z-index: 1;
    width: min(55vw, 1080px);
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

.twiza-chat-popup .chatbot__interface {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: min(80vh, 820px);
    max-height: 820px;
    opacity: 1;
    z-index: 1;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: none;
    pointer-events: auto;
}


.twiza-chat-popup .chatbot__interface-chat-animation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.twiza-chat-popup .chatbot__interface-chat-loader {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.twiza-chat-popup .chatbot__interface-chat-loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(138, 142, 148, 0.78);
    animation: twiza-loader-bounce 1.1s infinite ease-in-out both;
}

.twiza-chat-popup .chatbot__interface-chat-loader-dot:nth-child(2) {
    animation-delay: .14s;
}

.twiza-chat-popup .chatbot__interface-chat-loader-dot:nth-child(3) {
    animation-delay: .28s;
}

@keyframes twiza-loader-bounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(.8);
        opacity: .45;
    }
    40% {
        transform: translateY(-4px) scale(1);
        opacity: 1;
    }
}

.twiza-chat-popup .chatbot__interface-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
    margin-right: auto;
}

.twiza-chat-popup .chatbot__interface-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 999px;
}

.twiza-chat-popup .chatbot__interface-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 8px 0;
}

.twiza-chat-popup-open,
.twiza-chat-popup-open body {
    overflow: hidden;
}

@media (max-width: 991px) {
    .chatbot__interface-snippet.twiza-chat-launcher {
        max-width: min(calc(100vw - 24px), 320px);
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating {
        right: 56px;
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__icon-wrap {
        width: 42px;
        height: 42px;
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating.twiza-chat-launcher--icon-avatar .twiza-chat-launcher__icon-wrap {
        width: 63px;
        height: 63px;
    }

    .twiza-chat-popup__dialog {
        right: 24px;
        bottom: 25px;
        width: min(72vw, 820px);
    }
}

@media (max-width: 767px) {
    .chatbot__interface-snippet.twiza-chat-launcher--floating {
        max-width: calc(100vw - 24px);
    }

    .twiza-chat-launcher--floating .chatbot__interface-snippet-label {
        white-space: normal;
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__icon-wrap {
        width: 38px;
        height: 38px;
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating.twiza-chat-launcher--icon-avatar .twiza-chat-launcher__icon-wrap {
        width: 57px;
        height: 57px;
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating .twiza-chat-launcher__label-shell {
        padding: 4px 8px;
    }

    .twiza-chat-launcher--style-b.twiza-chat-launcher--floating .chatbot__interface-snippet-label {
        font-size: 11px;
    }

    .twiza-chat-popup__dialog {
        left: 12px !important;
        right: 12px !important;
        top: 50% !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none;
        transform: translateY(-50%) !important;
    }

    .twiza-chat-popup .chatbot__interface {
        width: 100%;
        height: min(82vh, 680px);
    }
}
