﻿.ajustPositionChat {
    top: 54%;
    left: 1.6rem;
}

.close {
    font-size: 36px;
    margin-top: -10px;
    margin-right: -3px;
}

ul {
    list-style-type: none;
}

.new-chat {
    color: rgb(255, 106, 0);
    font-size: 18px;
}

.name-noread-message {
    color: #434651;
    font-size: 18px;
}

.name-read-message {
    color: rgba(0, 0, 0, 0.5);
    font-size: 18px;
}

.chat-button {
    float: right;
    color: #e67e22;
    font-size: 24px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    outline: 0;
}

div button:hover {
    outline: 0;
    color: #d35400;
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

/* --- */
/* Chat customer */
.chat {
    z-index: 100;
    width: 480px;
    height: 640px;
    right: 0;
    bottom: 0px;
    position: fixed;
    background: #F2F5F8;
    border-radius: 0;
    color: #434651;
    border-color: #e67e22;
    border-width: 1px;
    border-style: solid;
}

    .chat .header {
        padding: 5px;
        border-bottom: 2px solid #FFF;
        height: 10%;
        background: #e67e22;
    }

        .chat .header img {
            float: left;
            height: 52px;
            width: 52px;
        }

        .chat .header .chat-about {
            padding-left: 10px;
            margin-top: 6px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .chat .header .chat-with {
            font-weight: 700;
            font-size: 16px;
        }

        .chat .header .info {
            color: #FFF;
        }

    .chat .history {
        padding: 30px 30px 20px;
        border-bottom: 2px solid #FFF;
        height: 65%;
    }

        .chat .history ul {
            width: 100%;
            height: 100%;
            overflow-y: auto;
        }

        .chat .history .message-data {
            margin-bottom: 15px;
        }

        .chat .history .message-data-time {
            color: #a8aab1;
            padding-left: 5px;
            padding-right: 5px;
        }

        .chat .history .message {
            color: #FFF;
            padding: 18px 20px;
            line-height: 26px;
            font-size: 16px;
            border-radius: 7px;
            margin-bottom: 30px;
            width: 90%;
            position: relative;
            filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
        }

            .chat .history .message:after {
                bottom: 100%;
                left: 7%;
                border: solid transparent;
                content: " ";
                height: 0;
                width: 0;
                position: absolute;
                border-bottom-color: #94C2ED;
                border-width: 10px;
                margin-left: -10px;
            }

            .chat .history .message:hover {
                cursor: default;
            }

        .chat .history .agent {
            background: #94C2ED;
        }

        .chat .history .me {
            background: #86BB71;
            float: right;
            margin-right: 5px;
        }

            .chat .history .me:after {
                border-bottom-color: #86BB71;
                left: 93%;
                float: right;
            }

    .chat .message {
        padding: 30px;
        height: 25%;
    }

        .chat .message textarea {
            width: 100%;
            border: none;
            padding: 10px 20px;
            font: 14px/22px "Lato", Arial, sans-serif;
            margin-bottom: 10px;
            resize: none;
            height: 75%;
        }

            .chat .message textarea:focus {
                outline: none;
                box-shadow: 0 0 1px 1px #e67e22;
            }

        .chat .message .red-empty:focus {
            outline: none;
            box-shadow: 0 0 1px 1px #ff0500;
        }

.icon-me {
    color: #86BB71;
    margin-left: 3px;
}

.icon-agent {
    color: #94C2ED;
    margin-right: 3px;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.float-right {
    float: right;
}

/* --- */
/* Login chat */
.loginAgent {
    height: 192px !important;
}

.login {
    width: 480px;
    height: 140px;
    right: 0;
    bottom: 0;
    position: fixed;
    background: #F2F5F8;
    border-radius: 0;
    color: #434651;
    border-color: #e67e22;
    border-width: 1px;
    border-style: solid;
}

    .login .header {
        text-align: center;
        font-size: 1.8em;
        padding: 5px;
        height: 10%;
    }

    .login .message {
        padding: 30px;
        height: 90%;
    }

        .login .message input[type=text] {
            height: 44px;
            font-size: 16px;
            width: 100%;
            margin-bottom: 10px;
            background: #fff;
            border: 1px solid #d9d9d9;
            border-top: 1px solid silver;
            padding: 0 46px;
            box-sizing: border-box;
            background-image: url(../img/name.svg);
            background-size: 30px 30px;
            background-position: 11px 8px;
            background-repeat: no-repeat;
        }

        .login .message input[type=password], input[type=email] {
            height: 44px;
            font-size: 16px;
            width: 100%;
            margin-bottom: 10px;
            background: #fff;
            border: 1px solid #d9d9d9;
            border-top: 1px solid silver;
            padding: 0 8px;
            box-sizing: border-box;
        }

        .login .message input[type=text]:hover, input[type=password]:hover {
            border: 1px solid #b9b9b9;
            border-top: 1px solid #a0a0a0;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
        }

        .login .message input[type=text]:focus, input[type=password]:focus {
            outline: none;
            box-shadow: 0 0 1px 1px #e67e22;
        }

        .login .message input[type=text].red-empty:focus, input[type=password].red-empty:focus {
            outline: none;
            box-shadow: 0 0 1px 1px #ff0500;
        }
/* --- */

/* --- Dock de support--- */

.support-dock {
    position: fixed;
    right: 0;
    bottom: 70px;
    width: 200px;
    height: 140px;
}

    .support-dock ul {
        list-style-type: none;
        padding: 0;
    }

    .support-dock button {
        position: relative;
        margin-top: 15px;
        height: 50px;
        width: 50px;
        background-color: transparent;
        background-size: 40px 40px;
        background-repeat: no-repeat;
        background-position: center;
        border-top: 0;
        border-bottom: 0;
        border-left: 0;
    }

        .support-dock button:focus {
            outline: 0;
        }

        .support-dock button:active {
            background-color: transparent;
        }

    .support-dock li {
        float: left;
        width: 50px;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .support-dock .speech {
        width: 80px;
        height: 25px;
        visibility: hidden;
    }

        .support-dock .speech:before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border: 10px solid;
            border-color: #666 transparent transparent transparent;
            left: 28px;
            top: 22px;
        }

        .support-dock .speech:after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border: 9px solid;
            border-color: #fff transparent transparent transparent;
            left: 29px;
            top: 19px;
        }

li.chat-dock {
    width: 200px;
    height: 140px;
}

.chat-dock button {
    width: 200px;
    height: 100px;
    background-image: url(/img/chat.png);
    background-size: 200px 120px;
    border-right: 1px solid #fff;
    border-top-left-radius: 5px;
}

.chat-dock .speech {
    left: 10px;
}

.chat-dock:hover .speech {
    visibility: visible;
}

.info-new-message {
    position: absolute;
    top: 40px;
    font-size: 20px;
    left: 0px;
    color: green;
}

li.email-dock {
    width: 200px;
    height: 140px;
}

.email-dock button {
    width: 200px;
    height: 120px;
    background-image: url(../img/supporthelp.svg);
    background-size: 6rem;
    border-top-left-radius: 5px;
}

.email-dock .speech {
}

.email-dock:hover .speech {
    visibility: visible;
}

.facebook-dock button {
    background-image: url(/img/facebook.png);
}

.facebook-dock .speech {
    left: -15px;
}

.facebook-dock:hover .speech {
    visibility: visible;
}

.twitter-dock button {
    background-image: url(/img/twitter.png);
    border-right: 0;
}

.twitter-dock .speech {
    left: -33px;
}

.twitter-dock:hover .speech {
    visibility: visible;
}

.twitter-dock .speech:before {
    left: 45px;
}

.twitter-dock .speech:after {
    left: 46px;
}

@media handheld, only screen and (max-width: 500px) {
    .support-dock {
        display: none;
    }
}

@media screen and (min-width: 501px) and (max-width: 768px) {

    .support-dock {
        width: 100px;
        height: 70px;
    }


    .email-dock button {
        background-size: 120px 45px;
        background-image: url(../img/supporthelp.svg);
        width: 65px;
        height: 48px;
    }

    li.email-dock {
        width: 70px;
        height: 50px;
    }

    .ajustPositionChat {
        top: 4rem;
        left: 1rem;
    }
}
/* --- */
