.ort-chatbot {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    font-family: inherit;
}

.ort-chatbot-launcher {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    background: var(--navy, #111111);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.28);
    cursor: pointer;
    position: relative;
}

.ort-chatbot-launcher-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent, #3FA66A);
}

.ort-chatbot-launcher-label {
    font-weight: 600;
    font-size: 0.95rem;
    padding-right: 0.25rem;
}

.ort-chatbot-pulse {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: ort-pulse 2s infinite;
}

@keyframes ort-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ort-chatbot-panel {
    width: min(380px, calc(100vw - 1.5rem));
    height: min(560px, calc(100vh - 6rem));
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid #E2E5E2;
}

.ort-chatbot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, #111111, #1F6B3A);
    color: #fff;
}

.ort-chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3FA66A;
}

.ort-chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ort-chatbot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.ort-chatbot-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.ort-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #F4F5F4;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ort-chat-bubble {
    max-width: 88%;
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ort-chat-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #E2E5E2;
    border-bottom-left-radius: 0.25rem;
    color: #121212;
}

.ort-chat-user {
    align-self: flex-end;
    background: #1F6B3A;
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.ort-chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #E2E5E2;
    background: #fff;
    max-height: 120px;
    overflow-y: auto;
}

.ort-chat-chip {
    border: 1px solid #C5DCCE;
    background: #E8F2EC;
    color: #111111;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
}

.ort-chat-chip:hover {
    background: #1F6B3A;
    color: #fff;
    border-color: #1F6B3A;
}

.ort-chatbot-compose {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #E2E5E2;
    background: #fff;
}

.ort-chatbot-compose .form-control {
    font-size: 0.9rem;
}

.ort-chatbot-compose .btn {
    flex-shrink: 0;
}

.ort-chatbot-contact {
    padding: 0.75rem;
    border-top: 1px solid #E2E5E2;
    background: #fff;
}

@media (max-width: 575.98px) {
    .ort-chatbot {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .ort-chatbot-launcher-label {
        display: none;
    }

    .ort-chatbot-launcher {
        padding: 0.35rem;
        border-radius: 50%;
    }

    .ort-chatbot-panel {
        position: fixed;
        right: 0.5rem;
        bottom: 4.5rem;
        width: calc(100vw - 1rem);
        height: min(70vh, 520px);
        margin-bottom: 0;
    }
}
