/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

@font-face {
    font-family: 'SaudiRiyal';
    src: url('/fonts/saudi_riyal.ttf');
    font-weight: normal;
    font-style: normal;
}
.riyal-symbol {
    display: inline !important;
}
.riyal-symbol:before {
    content: '\E900';
    font-family: 'SaudiRiyal' !important;
    font-size: 18px;
}
.riyal-symbol_large:before {
    content: '\E900';
    font-family: 'SaudiRiyal' !important;
    font-size: 35px;
}
.riyal-symbol_small:before {
    content: '\E900';
    font-family: 'SaudiRiyal' !important;
}


.irs-from, .irs-to, .irs-min, .irs-max, .irs-single{
    direction: ltr !important;
}

#top-bar.transparent-topbar {
    /*background: #00000094 !important;*/
    background: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, .75) 0%);
}
#header.transparent-header {
    --cnvs-header-bg: #00000094 !important;
}

.is-expanded-menu #header.transparent-header:not(.sticky-header) #header-wrap {
    border-bottom: unset;
}

#header-wrap {
    border-bottom: unset;
}

.stretched #gotoTop {
    left: var(--cnvs-gotoTop-position-boxed-right) !important;
}

/* زر البوت */
#chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #00b399;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110000;
}
#chatbot-btn img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,179,153,0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(0,179,153,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,179,153,0); }
}

/* نافذة الشات */
#chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 520px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
    z-index: 999999;
    flex-direction: column;
}


@keyframes fadeIn {
    from {opacity:0;transform:translateY(20px);}
    to {opacity:1;transform:translateY(0);}
}

/* رأس النافذة */
#chat-header {
    background: #2C3E50;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
}
#chat-header img {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 50%;
}

/* صندوق الرسائل */
/*#chat-body {*/
/*    padding: 15px;*/
/*    background: #f5f7f8;*/
/*    overflow-y: auto;*/
/*    max-height: 370px;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/
/* جسم المحادثة */
#chat-body {
    padding: 15px;
    background: #f5f7f8;
    overflow-y: auto;
    flex: 1;
}

/* فقاعات الرسائل */
.msg {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
    word-wrap: break-word;
}
.msg.user {
    align-self: flex-end;
    background: #00b399;
    color: #fff;
    border-bottom-right-radius: 0;
}
.msg.bot {
    align-self: flex-start;
    background: #ecf0f1;
    color: #2C3E50;
    border-bottom-left-radius: 0;
}

/*!* مدخل الكتابة *!*/
/*#chat-input-wrap {*/
/*    display: flex;*/
/*    background: #fff;*/
/*    padding: 10px;*/
/*    border-top: 1px solid #ddd;*/
/*    position: relative;*/
/*    z-index: 999999 !important;*/
/*}*/

/* منطقة الإدخال */
#chat-input-wrap {
    display: flex;
    background: #fff;
    padding: 10px;
    border-top: 1px solid #ddd;
    flex-shrink: 0; /* يمنعها من الاختفاء أو النزول */
}


#chat-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    outline: none;
    z-index: 9999999 !important;
}
#chat-send {
    background: #00b399;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    margin-right: 8px;
    cursor: pointer;
}


/* زر إعادة المحادثة */
.chat-reset-btn {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.chat-reset-btn:hover { background: #c0392b; }

/* الرسالة الترحيبية + معاينة الرد */
#chat-hint, #chat-preview {
    position: fixed;
    bottom: 110px;
    right: 100px;
    background: #ffffff;
    color: #2C3E50;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    padding: 10px 12px;
    max-width: 250px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.35s ease;
    pointer-events: none !important;
    display: none !important;
    z-index: 150000!important;
}
#chat-hint.show,
#chat-preview.show {
    opacity: 1 !important;
    transform: translateY(0);
    display: block !important;
}