.rro-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    font-family: inherit;
}

.rro-chatbot-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 9999px;
    background: #123e69;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.12);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.rro-chatbot-toggle:hover {
    background: #0d355d;
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.22),
        0 6px 16px rgba(15, 23, 42, 0.14);
}

.rro-chatbot-toggle:focus-visible,
.rro-chatbot-close:focus-visible,
.rro-chatbot-form button:focus-visible,
.rro-chatbot-form input:focus-visible,
.rro-chatbot-suggestions button:focus-visible {
    outline: 3px solid rgba(209, 167, 57, 0.45);
    outline-offset: 3px;
}

.rro-chatbot-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rro-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    display: flex;
    width: min(390px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 120px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.22),
        0 8px 22px rgba(15, 23, 42, 0.12);
}

.rro-chatbot-panel[hidden] {
    display: none !important;
}

.rro-chatbot-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #0d355d;
    color: #ffffff;
}

.rro-chatbot-header > div {
    min-width: 0;
}

.rro-chatbot-header strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.rro-chatbot-header span {
    display: block;
    margin-top: 4px;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.3;
}

.rro-chatbot-close {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.rro-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.rro-chatbot-notice {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}

.rro-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    background: #ffffff;
    scroll-behavior: smooth;
}

.rro-chatbot-message {
    display: flex;
    margin-bottom: 12px;
}

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

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

.rro-chatbot-bubble {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

.rro-chatbot-message-bot .rro-chatbot-bubble {
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 5px;
    background: #f8fafc;
    color: #334155;
}

.rro-chatbot-message-user .rro-chatbot-bubble {
    border-bottom-right-radius: 5px;
    background: #123e69;
    color: #ffffff;
}

.rro-chatbot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.rro-chatbot-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid #bfd5e8;
    border-radius: 9999px;
    background: #ffffff;
    color: #123e69;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.rro-chatbot-actions a:hover {
    background: #eef6fb;
}

.rro-chatbot-suggestions {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 14px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    scrollbar-width: thin;
}

.rro-chatbot-suggestions button {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #ffffff;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.rro-chatbot-suggestions button:hover {
    border-color: #123e69;
    background: #f8fafc;
    color: #123e69;
}

.rro-chatbot-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.rro-chatbot-form input {
    min-width: 0;
    flex: 1;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 13px;
    color: #0f172a;
    font-size: 13px;
}

.rro-chatbot-form input::placeholder {
    color: #94a3b8;
}

.rro-chatbot-form input:focus {
    border-color: #123e69;
}

.rro-chatbot-form button {
    height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: #123e69;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rro-chatbot-form button:hover {
    background: #0d355d;
}

.rro-chatbot-form button:disabled,
.rro-chatbot-form input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.rro-chatbot-privacy {
    margin: 0;
    padding: 0 14px 12px;
    background: #ffffff;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.45;
}

.rro-chatbot-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 640px) {
    .rro-chatbot {
        right: 14px;
        bottom: 14px;
        left: auto;
    }

    .rro-chatbot-toggle-label {
        display: none;
    }

    .rro-chatbot-toggle {
        width: 52px;
        min-height: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
    }

    .rro-chatbot-panel {
        position: fixed;
        right: 12px;
        bottom: 76px;
        left: 12px;
        width: auto;
        height: min(620px, calc(100dvh - 96px));
        border-radius: 20px;
    }

    .rro-chatbot-bubble {
        max-width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rro-chatbot-toggle,
    .rro-chatbot-messages {
        transition: none;
        scroll-behavior: auto;
    }
}