#ryze-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
#ryze-chat-icon {
    width: 60px;
    height: 60px;
    background: #0284c7;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
    font-size: 26px;
    transition: transform 0.2s ease, background 0.2s ease;
}
#ryze-chat-icon:hover {
    transform: scale(1.06);
    background: #0369a1;
}
#ryze-chat-window {
    width: 380px;
    height: 500px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 76px;
    right: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: ryzeFadeIn 0.25s ease-out;
}
@keyframes ryzeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#ryze-chat-window.ryze-hidden {
    display: none;
}
.ryze-chat-header {
    background: #0284c7;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ryze-chat-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
#ryze-close-chat {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.15s ease;
}
#ryze-close-chat:hover {
    color: #ffffff;
}
#ryze-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    font-size: 14px;
}
.ryze-msg {
    margin-bottom: 12px;
    line-height: 1.5;
    word-break: break-word;
}
.ryze-msg.ryze-agent {
    background: #e0f2fe;
    color: #0f172a;
    padding: 12px 14px;
    border-radius: 12px 12px 12px 2px;
    border-left: 3px solid #0284c7;
}
.ryze-msg.ryze-user {
    background: #0284c7;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px 12px 2px 12px;
    margin-left: auto;
    max-width: 85%;
    text-align: right;
}
.ryze-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    color: #0284c7;
    text-decoration: none;
    transition: background 0.15s ease;
}
.ryze-pdf-link:hover {
    background: #f1f5f9;
    text-decoration: underline;
}
.ryze-chat-input-area {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}
#ryze-user-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.15s ease;
}
#ryze-user-input:focus {
    border-color: #0284c7;
}
#ryze-send-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease;
}
#ryze-send-btn:hover {
    background: #0369a1;
}
