.elementor-3099 .elementor-element.elementor-element-35fb2f0{--display:flex;}/* Start custom CSS for html, class: .elementor-element-d2bd6ac */.perfect-chat-widget {
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e1e1e1;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    overflow: hidden;
    direction: rtl;
}

.chat-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #fff;
    padding: 15px 20px;
    text-align: right;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 5px;
    margin-right: 28px;
}

.chat-box {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.chat-box::-webkit-scrollbar {
    width: 6px;
}
.chat-box::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
}

.bot-message {
    background-color: #ffffff;
    color: #333;
    align-self: flex-start;
    border: 1px solid #e0e0e0;
    border-top-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-message {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end;
    border-top-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,123,255,0.2);
}

.input-area {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 10px;
}

.input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.input-area input:focus {
    border-color: #007bff;
}

.input-area button {
    background-color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.input-area button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.input-area button:active {
    transform: scale(0.95);
}

.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    padding-bottom: 5px;
    background: #fff;
}

.typing-indicator {
    font-style: italic;
    color: #777;
    font-size: 0.85rem;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 5px;
}/* End custom CSS */