.uol-assistant-root {
    --uol-primary: #111111;
    --uol-secondary: #ffffff;
    --uol-accent: #2f6fed;
    position: fixed;
    bottom: 22px;
    z-index: 999999;
    font-family: inherit;
}

.uol-assistant-right {
    right: 22px;
}

.uol-assistant-left {
    left: 22px;
}

.uol-assistant-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--uol-primary);
    color: var(--uol-secondary);
    padding: 13px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    cursor: pointer;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.uol-assistant-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,0,0,.26);
}

.uol-assistant-bubble-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--uol-accent);
    color: #fff;
    font-size: 13px;
}

.uol-assistant-panel {
    display: none;
    position: absolute;
    bottom: 68px;
    width: 380px;
    max-width: calc(100vw - 36px);
    height: 560px;
    max-height: calc(100vh - 110px);
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(0,0,0,.24);
    overflow: hidden;
}

.uol-assistant-right .uol-assistant-panel {
    right: 0;
}

.uol-assistant-left .uol-assistant-panel {
    left: 0;
}

.uol-assistant-root.is-open .uol-assistant-panel {
    display: flex;
    flex-direction: column;
    animation: uolAssistantIn .18s ease-out;
}

.uol-assistant-root.is-open .uol-assistant-bubble {
    display: none;
}

@keyframes uolAssistantIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.uol-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--uol-primary);
    color: var(--uol-secondary);
}

.uol-assistant-header strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.uol-assistant-header span {
    display: block;
    font-size: 12px;
    opacity: .78;
    margin-top: 3px;
}

.uol-assistant-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}

.uol-assistant-close:hover {
    opacity: 1;
}

.uol-assistant-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f7f7f8;
}

.uol-assistant-message {
    display: flex;
    margin-bottom: 12px;
}

.uol-assistant-message > div {
    max-width: 84%;
    padding: 11px 13px;
    border-radius: 14px;
    line-height: 1.42;
    font-size: 14px;
    white-space: normal;
}

.uol-assistant-message-assistant {
    justify-content: flex-start;
}

.uol-assistant-message-assistant > div {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(0,0,0,.06);
    border-bottom-left-radius: 4px;
}

.uol-assistant-message-user {
    justify-content: flex-end;
}

.uol-assistant-message-user > div {
    background: var(--uol-accent);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.uol-assistant-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.08);
}

.uol-assistant-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 12px;
    padding: 10px 11px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.uol-assistant-input:focus {
    border-color: var(--uol-accent);
}

.uol-assistant-send {
    align-self: flex-end;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--uol-primary);
    color: var(--uol-secondary);
    padding: 0 15px;
    font-weight: 700;
    cursor: pointer;
}

.uol-assistant-send:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.uol-assistant-footer {
    padding: 0 14px 12px;
    background: #ffffff;
    color: #666;
    font-size: 11px;
    text-align: center;
}

.uol-assistant-typing > div {
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: 18px;
}

.uol-assistant-typing span {
    width: 6px;
    height: 6px;
    background: #777;
    border-radius: 50%;
    display: inline-block;
    animation: uolTyping 1s infinite ease-in-out;
}

.uol-assistant-typing span:nth-child(2) {
    animation-delay: .15s;
}

.uol-assistant-typing span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes uolTyping {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .4;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .uol-assistant-root {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .uol-assistant-right,
    .uol-assistant-left {
        left: 14px;
        right: 14px;
    }

    .uol-assistant-panel {
        width: auto;
        height: min(560px, calc(100vh - 88px));
        left: 0 !important;
        right: 0 !important;
        bottom: 64px;
    }

    .uol-assistant-bubble {
        margin-left: auto;
    }

    .uol-assistant-left .uol-assistant-bubble {
        margin-left: 0;
        margin-right: auto;
    }
}
