#lodur-chatbot-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    height: 64px;
    max-width: 64px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dbdbdb;
    border-radius: 32px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    transition: max-width 0.35s ease, box-shadow 0.2s ease;
}

#lodur-chatbot-launcher:hover,
#lodur-chatbot-launcher:focus-visible {
    max-width: 420px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

#lodur-chatbot-launcher .lodur-chatbot-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 62px;
    height: 62px;
    padding: 10px;
}

#lodur-chatbot-launcher .lodur-chatbot-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    pointer-events: none;
}

#lodur-chatbot-launcher .lodur-chatbot-label {
    flex: 0 0 auto;
    padding-right: 22px;
    font-family: inter, "Segoe UI", Verdana, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    color: #1c2337;
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
}

#lodur-chatbot-launcher:hover .lodur-chatbot-label,
#lodur-chatbot-launcher:focus-visible .lodur-chatbot-label {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #lodur-chatbot-launcher,
    #lodur-chatbot-launcher .lodur-chatbot-label {
        transition: none;
    }
}

body.lodur-chatbot-open #lodur-chatbot-launcher {
    display: none;
}

.lodur-chatbot-dialog,
.lodur-chatbot-dialog .ui-dialog-content {
    background-color: #ececec !important;
    background-image: none !important;
}

.ui-dialog-titlebar-close.lodur-chatbot-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    margin-top: -13px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-indent: 0 !important;
    overflow: visible !important;
    color: #fff;
    cursor: pointer;
}

.ui-dialog-titlebar-close.lodur-chatbot-close:hover,
.ui-dialog-titlebar-close.lodur-chatbot-close:focus {
    color: #fff;
    opacity: 0.85;
}

.lodur-chatbot-close .lodur-chatbot-close__icon {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.lodur-chatbot-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: inter, "Segoe UI", Verdana, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #1c2337;
}

.lodur-chatbot-panel__text {
    margin: 0 0 14px;
    line-height: 1.45;
    color: #4a5163;
}

.lodur-chatbot-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.lodur-chatbot-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e6e8ec;
}

.lodur-chatbot-input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font: inherit;
}

.lodur-chatbot-send {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background-color: #0d9ed6;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.lodur-chatbot-send:hover {
    background-color: #0b86b6;
}

.lodur-chatbot-send:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.lodur-chatbot-input:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.lodur-chatbot-send__spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lodur-chatbot-spin 0.7s linear infinite;
}

.lodur-chatbot-send--loading .lodur-chatbot-send__icon {
    display: none;
}

.lodur-chatbot-send--loading .lodur-chatbot-send__spinner {
    display: block;
}

@keyframes lodur-chatbot-spin {
    to {
        transform: rotate(360deg);
    }
}

.lodur-chatbot-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

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

.lodur-chatbot-message--bot {
    justify-content: flex-start;
}

.lodur-chatbot-bubble {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 7px;
    line-height: 1.4;
    overflow-wrap: break-word;
    cursor: default;
}

.lodur-chatbot-message--user .lodur-chatbot-bubble {
    background-color: #c0c0c0;
    color: #1c2337;
    border-bottom-right-radius: 2px;
}

.lodur-chatbot-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
}

.lodur-chatbot-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lodur-chatbot-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 1.4em;
    padding: 9px 13px;
    border-radius: 7px;
    border-bottom-left-radius: 2px;
    background-color: #c0c0c0;
    color: #1c2337;
    box-sizing: content-box;
    cursor: default;
}

.lodur-chatbot-typing__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #0d9ed6;
    animation: lodur-chatbot-typing-bounce 1.2s infinite ease-in-out;
}

.lodur-chatbot-typing__dot:nth-child(3) {
    animation-delay: 0.15s;
}

.lodur-chatbot-typing__dot:nth-child(4) {
    animation-delay: 0.3s;
}

.lodur-chatbot-typing__dot:nth-child(5) {
    animation-delay: 0.45s;
}

@keyframes lodur-chatbot-typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        background-color: #0d9ed6;
    }

    30% {
        transform: translateY(-3px);
        background-color: #fff;
    }
}

.lodur-chatbot-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;
}

@media (prefers-reduced-motion: reduce) {
    .lodur-chatbot-send__spinner,
    .lodur-chatbot-typing__dot {
        animation: none;
    }
}

@media print {
    #lodur-chatbot-launcher {
        display: none;
    }
}
