.quorra-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
}

.quorra-chatbot-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #173c73 0%, #4875b3 100%);
    box-shadow: 0 16px 38px rgba(0, 32, 77, 0.24);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quorra-chatbot-toggle:hover,
.quorra-chatbot-toggle:focus {
    transform: translateY(-1px);
    box-shadow: 0 24px 54px rgba(0, 32, 77, 0.34);
}

.quorra-chatbot-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #b7d3f5;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.quorra-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(72, 117, 179, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(0, 32, 77, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quorra-chatbot.is-open .quorra-chatbot-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.quorra-chatbot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 18px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #00204d 0%, #173c73 55%, #4875b3 100%);
}

.quorra-chatbot-header h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 32, 77, 0.32);
}

.quorra-chatbot-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.5;
}

.quorra-chatbot-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.quorra-chatbot-body {
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(247, 249, 251, 0.76) 0%, #ffffff 100%);
}

.quorra-chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    padding-right: 6px;
    overflow-y: auto;
}

.quorra-chatbot-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quorra-chatbot-message.is-user {
    align-items: flex-end;
}

.quorra-chatbot-bubble {
    max-width: 92%;
    padding: 13px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #21324a;
    background: #eef4fb;
}

.quorra-chatbot-message.is-user .quorra-chatbot-bubble {
    color: #fff;
    background: linear-gradient(135deg, #4875b3 0%, #173c73 100%);
}

.quorra-chatbot-bubble.is-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quorra-chatbot-bubble.is-typing span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(23, 60, 115, 0.4);
    animation: quorra-chatbot-pulse 1s infinite ease-in-out;
}

.quorra-chatbot-bubble.is-typing span:nth-child(2) {
    animation-delay: 0.12s;
}

.quorra-chatbot-bubble.is-typing span:nth-child(3) {
    animation-delay: 0.24s;
}

.quorra-chatbot-followups,
.quorra-chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quorra-chatbot-suggestions {
    margin-top: 16px;
}

.quorra-chatbot-chip {
    padding: 9px 12px;
    border: 1px solid rgba(72, 117, 179, 0.18);
    border-radius: 999px;
    color: #173c73;
    background: #fff;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quorra-chatbot-chip:hover,
.quorra-chatbot-chip:focus {
    background: #eef4fb;
    border-color: rgba(72, 117, 179, 0.3);
    transform: translateY(-1px);
}

.quorra-chatbot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #4875b3 0%, #173c73 100%);
}

.quorra-chatbot-input-wrap {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.quorra-chatbot-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(72, 117, 179, 0.16);
    border-radius: 16px;
    color: #21324a;
    background: #fff;
    font-size: 14px;
}

.quorra-chatbot-input:focus {
    outline: none;
    border-color: rgba(72, 117, 179, 0.5);
    box-shadow: 0 0 0 4px rgba(72, 117, 179, 0.12);
}

.quorra-chatbot-submit {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #4875b3 0%, #173c73 100%);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.quorra-chatbot-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.quorra-chatbot-note {
    margin: 12px 2px 0;
    color: #5d6f89;
    font-size: 12px;
    line-height: 1.5;
}

@keyframes quorra-chatbot-pulse {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .quorra-chatbot {
        right: 12px;
        bottom: 76px;
        left: 12px;
    }

    .quorra-chatbot-toggle {
        width: auto;
        justify-content: center;
    }

    .quorra-chatbot-panel {
        right: 0;
        left: 0;
        width: auto;
        bottom: calc(100% + 12px);
    }
}