#ddrc-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    font-family: Tahoma, 'Segoe UI', sans-serif;
    direction: rtl;
}

#ddrc-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0088cc;
    color: #fff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}
#ddrc-chat-toggle:hover { transform: scale(1.08); }

#ddrc-chat-box {
    width: 350px;
    height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 75px;
    right: 0;
}

.ddrc-header {
    background: #0088cc;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}
.ddrc-header-tools button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 5px;
}

#ddrc-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f9fa;
}

#ddrc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ddrc-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.ddrc-msg.user {
    background: #e1ffc7;
    align-self: flex-start;
    border-bottom-right-radius: 2px;
}
.ddrc-msg.bot {
    background: #fff;
    align-self: flex-end;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
}
.ddrc-msg-info {
    font-size: 10px;
    color: #8c8c8c;
    margin-top: 3px;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}
.ddrc-status-icon.seen { color: #34b7f1; }

.ddrc-faq-container {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #edf2f7;
}
.ddrc-faq-btn {
    background: #fff;
    border: 1px solid #cbd5e0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}
.ddrc-faq-btn:hover { background: #e2e8f0; }

.ddrc-typing {
    font-size: 11px;
    color: #718096;
    padding: 5px 12px;
}

.ddrc-footer {
    display: flex;
    padding: 8px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}
.ddrc-footer input[type="text"] {
    flex: 1;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    outline: none;
}
.ddrc-footer button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
}

.ddrc-input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
}
.ddrc-btn-primary {
    width: 100%;
    background: #0088cc;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}
