﻿/*------------------------------- BODY -----------------------*/
.S_OnCh_Main_Body
{
    position: fixed;
    display: block;
    width: 300px;
    height: auto;
    right: 20px;
    bottom: 0px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #0078C8;/*0,120,200*/
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.7);
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    overflow: hidden;
    z-index: 30000;
    -moz-transition: all 0.4s ease-in-out;
	-ms-transition: all 0.4s ease-in-out;
	-o-transition: all 0.4s ease-in-out;
	-webkit-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
}
/*------------------------------------------------------------*/

/*------------------------------- TITLE -----------------------*/
.S_OnCh_Title1, .S_OnCh_Title2
{
    position: relative;
    display: block;
    width: 100%;
    height: 34px;
    left: 0px;
    top: 0px;
    cursor: pointer;
    z-index: 10;
}
.S_OnCh_Title_Text
{
    position: absolute;
    display: block;
    width: auto;
    height: inherit;
    right: 15px;
    top: 0px;
    padding-right: 38px;
    color: white;
    font-size: 1.0em;
    font-weight: 500;
    text-align: right;
    direction: rtl;
    background-image: url('OC_Sign.png');
    background-repeat: no-repeat;
    background-position: right center;
    -webkit-background-size: 29px 26px;
    -moz-background-size: 29px 26px;
    -o-background-size: 29px 26px;
    background-size: 29px 26px;
}
.S_OnCh_Title_Key
{
    position: absolute;
    left: 2px;
    top: 2px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.0);
    background-repeat: no-repeat;
    background-image: url('OC_Arrow.png');
    -webkit-background-size: 30px 60px;
    -moz-background-size: 30px 60px;
    -o-background-size: 30px 60px;
    background-size: 30px 60px;
}
.S_OnCh_Title1:hover .S_OnCh_Title_Key, .S_OnCh_Title2:hover .S_OnCh_Title_Key
{
    background-color: rgba(0,0,0,0.2);
}

.S_OnCh_Title1 .S_OnCh_Title_Key
{
    background-position: top center;
}
.S_OnCh_Title2 .S_OnCh_Title_Key
{
    background-position: bottom center;
}

.S_OnCh_Waiting
{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left:0px;
    background-color: rgba(255,255,255,0.5);
    background-image: url('Waiting-Sign.gif');
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 10000;
}
/*------------------------------------------------------------*/

/*------------------------------- CHAT BODY -----------------------*/
.S_OnCh_Chat_Main
{
    position: relative;
    display: block;
    width: auto;
    height: 0px;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 2px;
    margin-bottom: 0px;
    background-color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    overflow: hidden;
    z-index: 100;
    -moz-transition: all 0.4s ease-in-out;
	-ms-transition: all 0.4s ease-in-out;
	-o-transition: all 0.4s ease-in-out;
	-webkit-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
}
.S_OnCh_Chat_Title
{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    background-color: #F0F0F0;
    box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.2);
    color: #004696;
    font-size: 0.8em;
    font-weight: normal;
    text-align: center;
    direction: rtl;
}
.S_OnCh_Chat_Title_Text
{
    position: relative;
    display: block;
    width: auto;
    height: auto;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
.S_OnCh_Chat_Panel
{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    background-color: #FFFFFF;
    color: #000000;
    font-size: 1.0em;
    font-weight: normal;
    text-align: right;
}
.S_OnCh_Chat_Finish
{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #F0F0F0;
    text-align: center;
}
.S_OnCh_Chat_Rows
{
    position: relative;
    display: block;
    width: auto;
    height: auto;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: right;
}
.S_OnCh_Chat_Rows_Submit
{
    position: relative;
    display: block;
    width: auto;
    height: auto;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    border-top: dotted 1px #0078C8;
    text-align: center;
}
.S_OnCh_Chat_Rows_Finish
{
    position: relative;
    display: block;
    width: auto;
    height: auto;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    color: #0AB21B;
    font-size: 1.0em;
    font-weight: 500;
    text-align: center;
}
.S_OnCh_Chat_Sep
{
    position: relative;
    display: block;
    width: auto;
    height: 10px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    border-top: dotted 1px #0078C8;
    clear: both;
}
.S_OnCh_Chat_TBox_FA
{
    position: relative;
    display: block;
    width: 95%;
    height: 26px;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 2.5%;
    padding-right: 2.5%;
    background-color: white;
    border: solid 1px #CCCCCC;
    border-radius: 4px;
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    font-size: 0.9em;
    text-align: right;
    color: black;
    direction: rtl;
}
.S_OnCh_Chat_TBox_EN
{
    position: relative;
    display: block;
    width: 95%;
    height: 26px;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 2.5%;
    padding-right: 2.5%;
    background-color: white;
    border: solid 1px #CCCCCC;
    border-radius: 4px;
    font-family: 'HelveticaLt';
    font-style: normal;
    font-weight: normal;
    font-size: 1.0em;
    text-align: left;
    color: black;
}
.S_OnCh_Chat_Mandatory
{
    position: absolute;
    width: 8px;
    height: 8px;
    left: 10px;
    top: 50%;
    margin-top: -4px;
    margin-left: -4px;
    background-image: url('OC_MandatorySign.png');
    background-repeat: no-repeat;
    background-position: right center;
    -webkit-background-size: 8px 8px;
    -moz-background-size: 8px 8px;
    -o-background-size: 8px 8px;
    background-size: 8px 8px;
}
.S_OnCh_Chat_Key_Submit
{
    position: relative;
    display: block;
    width: 150px;
    height: 26px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #0AB21B;
    box-shadow: 0px 0px 0px 2px rgba(10,178,27,0.5);
    border-radius: 4px;
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    font-size: 0.9em;
    text-align: center;
    color: white;
    direction: rtl;
    cursor: pointer;
    -moz-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	-ms-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	-o-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	-webkit-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
}
.S_OnCh_Chat_Key_Submit:hover
{
    background-color: #0ACF1E;
    box-shadow: 0px 0px 0px 4px rgba(10,207,30,0.5);
}
.S_OnCh_Chat_Key_Back
{
    position: relative;
    display: block;
    width: 150px;
    height: 26px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #0078C8;
    box-shadow: 0px 0px 0px 2px rgba(0,120,200,0.5);
    border-radius: 4px;
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    font-size: 0.9em;
    text-align: center;
    color: white;
    direction: rtl;
    cursor: pointer;
    -moz-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	-ms-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	-o-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	-webkit-transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
	transition: all 0.6s cubic-bezier(0.000, 0.580, 0.320, 0.995);
}
.S_OnCh_Chat_Key_Back:hover
{
    background-color: #0092F5;
    box-shadow: 0px 0px 0px 4px rgba(0,145,245,0.5);
}
.S_OnCh_Chat_Error
{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    font-size: 0.9em;
    text-align: center;
    color: #C80000;
    direction: rtl;
}
/*------------------------------------------------------------*/

/*-------------------------------  -----------------------*/
/*------------------------------------------------------------*/



@media screen and (min-width:0px) and (max-width:500px)
{
    .S_OnCh_Main_Body
    {
        display: none;
    }
    .S_OnCh_Main_Body
    {
        width: auto;
        right: 10px;
        left: 10px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.7);
        font-size: 13px;
    }
    .S_OnCh_Chat_Rows_Submit
    {
        position: absolute;
        width: 100%;
        margin-left: 0px;
        margin-right: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
    }
}
