.chatFCA {
    background-color: #8f0c25;
    z-index: 111;
    width: 320px;
    height: 60px;
    position: fixed;
    bottom: 0px;
    right: 100px;
    font-family: "ApexNew-Book",Helvetica,Arial,sans-serif;
    font-size: 15px;
    border: 1px solid #999;
    box-shadow: 0px -1px 30px 0px rgba(0, 0, 0, 0.5);
}

@media only screen and (max-width: 767px) {
    .chatFCA {
        right: 0px;
    }
}

.chatFCA.maximized {
    width: 800px;
    max-width: 95%;
    left: 50%;
    right: auto;
}

.chatFCA.minimized {
    height: 46px !important;
}

.chatFCA .icon-hiddenChat {
    position: absolute;
    right: 40px;
    cursor: pointer;
    width: 36px;
    height: 44px;
    border-right: 1px solid white;
    padding-top: 5px;
    background-position: center;
}

.chatFCA .icon-hiddenChat:before {
    content: '';
    background-image: url("/content/dam/alfaromeo/chat/it-it/img/live_chat_arrow_up.png");
    background-repeat: no-repeat;
    -ms-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    width: 24px;
    height: 22px;
    display: block;
}

.chatFCA.minimized .icon-hiddenChat:before {
    -ms-transform: rotate(0deg); /* IE 9 */
    -webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
    transform: rotate(0deg);
    background-position: center;
    margin-left: 4px;
    margin-top: 5px;
}

.chatFCA.open {
    height: auto;
}

.chatFCA figure {
    margin: 0px
}

.chatFCA > .buttonStart {
    width: 320px;
    height: 60px;
    position: relative;
    bottom: 0px;
    right: 0px;
}

@media only screen and (max-width: 767px) {
    .chatFCA > .buttonStart {
        width: 100%;
    }
}

.chatFCA > .buttonStart > figure {
    margin: 0px;
    display: inline-block;
    height: 100%;
    background-color: #fff;
    vertical-align: middle;
}

.chatFCA > .buttonStart > figure img {
    height: 25px;
    display: inline-block;
    margin: 20px 5px;
}

.chatFCA > .buttonStart span {
    color: white;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
    margin-left: 10px;
}

.chatFCA > .buttonStart > .chatOpen {
    position: absolute;
    right: 10px;
    top: 11px;
    width: 117px;
    height: 40px;
    cursor: pointer;
}

.chatFCA > .chatHeader {
    height: 42px;
}

.chatFCA > .chatHeader > figure {
    margin: 0px;
    display: inline-block;
    height: 100%;
    background-color: #fff;
    vertical-align: middle;
}

.chatFCA > .chatHeader > figure > img {
    height: 26px;
    display: inline-block;
    margin: 10px;
}

.chatFCA > .chatHeader > span {
    color: white;
    display: inline-block;
}

.chatFCA > .chatHeader > span.icon-closeChat {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 26px;
    background-image: url('/content/dam/alfaromeo/chat/it-it/img/cancel.png');
    background-position: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}

.chatFCA > .chatHeader > span.icon-largeChat {
    position: absolute;
    right: 80px;
    height: 42px;
    width: 38px;
    background-image: url("/content/dam/alfaromeo/chat/it-it/img/maximize.png");
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-right: 1px solid white;
}

.chatFCA .chat_button {
    background: #f1f1f1;
    border: none;
    color: #8f0c25;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #8f0c25;
}

.chatFCA > .chatStep1 {
    background: #f1f1f1;
    padding: 15px;
}

.chatFCA > .chatStep1 .centered {
    text-align: center;
}

.chatFCA > .chatStep1 .logo {
    height: 55px;
    margin: 5px 0 5px 0;
}

.chatFCA > .chatStep1 input[type='text'] {
    width: 100%;
    height: 30px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 0 10px;
    box-sizing: border-box;
}

.chatFCA > .chatStep1 textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
    display: none;
}

.chatFCA > .chatStep1 .small {
    font-size: 11px;
    line-height: 12px;
    margin-bottom: 20px;
}

.chatFCA > .chatStep1 .chat_button {
    display: block;
    margin: 10px auto 0 auto;
    width: 200px;
    height: 40px;
}

.chatFCA .chatStep2 {
    height: 520px;
    padding: 5px;
    background-color: #f1f1f1;
}

@media (max-height: 530px) {
    .chatFCA .chatStep2 {
        height:470px;
    }
}

.chatFCA .messageBoardHeader {
    background-color: black;
    height: 60px;
    display: none;
}

.chatFCA .messageBoardHeader > .logo {
    height: 40px;
    margin: 10px;
    display: inline-block;
    float: left;
}

.chatFCA .messageBoardHeader > span {
    color: white;
    font-size: 20px;
    line-height: 60px;
    text-align: right;
    width: auto;
    margin-left: 40px;
}

.chatFCA .messageBoardHeader > .headset {
    display: inline-block;
    height: 40px;
    float: right;
    margin-top: 10px;
    margin-right: 5px;
}

.chatFCA #chat_message_form textarea {
    width: 100%;
    height: 124px;
    padding: 10px;
    box-sizing: border-box;
}

.chatFCA #chat_message_form .chat_button {
    display: block;
    margin: 6px auto;
    width: 200px;
    height: 40px;
}

.chatFCA .chatStep2 .waitingBoard {
    background: #f1f1f1;
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 180px);
    margin-bottom: 3px;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding-top: 70px;
}

.chatFCA .chatStep2 .waitingBoard img {
    margin-bottom: 20px;
}

.chatFCA .chatStep2 .waitingBoard p {
    margin: 0;
    margin-bottom: 5px;
}

.chatFCA .chatStep2 .waitingBoard .waiting_msg {
    font-weight: normal;
    margin-top: 15px;
}

.chatFCA .chatStep2 .messageBoard {
    background: #f1f1f1;
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 180px);
    margin-bottom: 3px;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 5px;
}

.chatFCA .messageBoard .chat_msg {
    max-width: 100%;
    border-radius: 5px;
    padding: 5px;
    box-sizing: border-box;
    text-align: right;
    background-color: transparent;
    word-break: break-word;
}

.chatFCA .messageBoard .system_msg {
    text-align: center;
    font-style: italic;
    padding: 5px;
}

.chatFCA .messageBoard .chat_msg.system {
    text-align: right;
    position: relative;
    left: 25%;
    background-color: rgba(50, 50, 150, 0.3);
    position: relative;
    left: 0;
    background-color: transparent;
    max-width: 100%;
    border: none;
    text-align: left;
    color: #8f0c25;
}

.chatFCA .messageBoard .chat_msg span {
    font-size: 11px;
    display: block;
    margin-bottom: 4px;
}

.chatFCA > .chatStep3 {
    background: #f1f1f1;
    padding: 30px 15px;
    text-align: center;
}

.chat_notification {

    -webkit-animation: chat_notificatio 1s infinite; /* Safari 4+ */
    -moz-animation: chat_notification 1s infinite; /* Fx 5+ */
    -o-animation: chat_notification 1s infinite; /* Opera 12+ */
    animation: chat_notification 1s infinite; /* IE 10+, Fx 29+ */
}

@-webkit-keyframes chat_notification {
    0%, 49% {
        border: 4px solid #ffffff; /* #035642 */
    }
    50%, 100% {
        border: 4px solid transparent;
    }
}

#chatFCA_evaluation {
    font-family: verdana, sans-serif;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    top:0;
    left:0;
}

#chatFCA_evaluation.open {
    display: block;
}

#chatFCA_evaluation .chatFCA_evaluation_overlay {
    width: 100%;
    height: 100%;
    z-index: 100000;
    background: rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
}



#chatFCA_evaluation .chatFCA_evaluation_cont_parent {
    text-align: center;
    width: 610px;
    height: 520px;
    margin: 0 auto;
    background: white;
    z-index: 100001;
    position:fixed;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%,-50%);
    -moz-transform:translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

@media only screen and (max-width: 390px) {
    .chatFCA {
        width: 100%;
        right: 0px;
    }

    #chatFCA_evaluation .chatFCA_evaluation_cont_parent {
        text-align: center;
        width: 600px;
        height: 500px;
        max-width: 90%;
        margin: 0 auto;
        background: white;
        z-index: 100001;
        position:fixed;
        left: 50%;
        top: 50%;
        -ms-transform: translate(-50%,-50%);
        -moz-transform:translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
    }
}

@media only screen and (min-width: 800px) {
    #chatFCA_evaluation .chatFCA_evaluation_cont_parent {
        text-align: center;
        width: 600px;
        height: 500px;
        max-width: 90%;
        margin: 0 auto;
        background: white;
        z-index: 100001;
        position:fixed;
        left: 50%;
        top: 50%;
        -ms-transform: translate(-50%,-50%);
        -moz-transform:translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);

    }
}

@media only screen and (min-width: 1800px) {

    #chatFCA_evaluation .chatFCA_evaluation_cont_parent {
        text-align: center;
        width: 600px;
        height: 500px;
        max-width: 90%;
        margin: 0 auto;
        background: white;
        z-index: 100001;
        position:fixed;
        left: 50%;
        top: 50%;
        -ms-transform: translate(-50%,-50%);
        -moz-transform:translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
    }
}


@media only screen and (min-device-width : 375px) and (max-device-width : 667px) {
    .chatFCA {
        width: 100%;
        right: 0px;
    }

    #chatFCA_evaluation .chatFCA_evaluation_cont_parent {
        text-align: center;
        width: 300px;
        max-width: 90%;
        height: 500px;
        margin: 0 auto;
        background: white;
        z-index: 100001;
        position:fixed;
        left: 50%;
        top: 50%;
        -ms-transform: translate(-50%,-50%);
        -moz-transform:translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
    }

    iframe{
        overflow: visible;
    }
}

#chatFCA_evaluation #chatFCA_evaluation_iframe {
    border: 0;
    overflow: hidden;
}

#chatFCA_evaluation .chatFCA_evaluation_body .chat_button {
    background: red;
    border: none;
    color: white;
    font-size: 13px;
    font-weight: bold;
    line-height: 16px;
    padding: 8px 12px;
    cursor: pointer;
}

iframe{
    overflow:hidden;
}

@media only screen and (max-device-width: 667px) {
    .chatFCA{
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .chatFCA > .buttonStart > figure{
        display: none;
    }

    .chatFCA > .buttonStart span{
        display: none;
    }

    .chatFCA > .buttonStart > .chatOpen{
        top: initial;
        bottom: 55px;
    }

    .chatFCA .chat_button{
        background: #8f0c25;
        color: white;
        border: 1px solid white;
    }

    .chatFCA .chatHeader{
        background-color: #8f0c25;
    }
}


.chatIsClosed .logo,.chatNoAgents .logo{
    float: none;
    margin: 0 auto !important;
    display: block;
}
