/*----------------------------------------------------
//          ROBOT GENESIS - CHAT - CSS CLIENTE       |
//                                                   |
//  Autor: Felipe Leite                              |
//  Data: 16/07/2019                                 |
//  User: 23                                         |
//--------------------------------------------------*/


/* CONTAINER CONFIG */
#robot-assistant {
    bottom: 0; right: 5px;
    height: 450px;
    width: 360px;
    position: fixed;
    display: none;
    z-index: 9999 !important;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}
@media only screen and (max-width: 600px) {
    #robot-assistant {
        width: 100%;
        height: 100%;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
    }
}


/* HEADER */
#robot-assistant > nav {
    display: flex;
    justify-content: space-between;
    font-family: 'Arial', Arial, sans-serif;
    padding: 0 16px 0 5px;
    background-color: #FECE00;
    color: #000;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
#robot-assistant > nav .logo,
#robot-assistant > nav ul.options,
#robot-assistant > nav {
    height: 52px;
}
#robot-assistant nav .logo {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 90%;
    padding: 0 8px;
    margin: 0;
}
#robot-assistant .logo span {
    font-size: 16px;
    padding: 0 10px;
}
#robot-assistant > nav #logo {
    background-image: url('https://apisindmepa.robot.rio.br/resources/marisol_navbar.jpg');
    background-size: 48px;
    background-repeat: no-repeat;
    background-position: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
}
#robot-assistant > nav ul.options {
    list-style-type: none;
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    padding: 0 4px;
    margin-top: 4px;
}
#robot-assistant > nav ul.options > li {
    padding: 14px;
    cursor: pointer;
    font-size: .8rem;
}
#robot-assistant nav .options li:first-child {
    font-size: 16px;
}
#robot-assistant nav .options i:hover {
    opacity: 0.8;
}


/* CONVERSATION AREA */
#robot-assistant #conversation {
    font-family: 'Arial', Arial, sans-serif;
    padding: 6px 18px 20px 18px !important;
    height: calc(100% - 90px) !important;
    width: auto;
    overflow: scroll;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    background-color: #ddd;
}
#robot-assistant #conversation::-webkit-scrollbar { 
    width: 0 !important;
}
#robot-assistant #conversation .conversation-row {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}
#robot-assistant #conversation p.text-wrapper {
    font-weight: 300;
    font-size: 14px;
}
#robot-assistant #conversation .avatar > div {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    margin-top: 18px !important;
}
#robot-assistant #conversation .avatar.me > div {
    margin-right: -20px !important;
    background-image: url('https://apisindmepa.robot.rio.br/resources/marisol_avatar_me.png');
    background-size: 35px !important;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
#robot-assistant #conversation .avatar.them > div {
    margin-left: -20px !important;
    background-image: url('https://apisindmepa.robot.rio.br/resources/marisol_trigger.png');
    background-size: 35px !important;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
#robot-assistant #conversation img,
#robot-assistant #conversation audio {
    width: 100%;
}
#robot-assistant .talktext .seen-mark-wrapper {
    padding: 0 7px;
    color: #777;
}
#robot-assistant .talktext .seen-mark-wrapper > i {
    font-size: 10px !important;
}


/* BALLOON CONFIG */
#robot-assistant .talk-bubble {
	margin: 7px 0 !important;
    display: inline-block;
    position: relative;
	width: 84% !important;
	height: auto;
    padding: 4px;
}
#robot-assistant .talk-bubble.me {
    background-color: #FFF;
}
#robot-assistant .talk-bubble.them {
    background-color: #fcc660;
}
#robot-assistant .talk-bubble.me .time-wrapper {
    color: #333;
}
#robot-assistant .talk-bubble.them .time-wrapper {
    color: #212121;
}
#robot-assistant .talk-bubble.me .text-wrapper {
    color: #333;
}
#robot-assistant .talk-bubble.them .text-wrapper {
    color: #212121;
}
#robot-assistant .round {
  	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
}
#robot-assistant .talktext {
	padding: 4px .6rem 0 .6rem !important;
  	text-align: left;
	line-height: 1.5em !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#robot-assistant .talktext > div {
    display: flex;
    justify-content: flex-end;
}
#robot-assistant .talktext p {
    width: 100%;
	-webkit-margin-before: 0em;
	-webkit-margin-after: 0em;
}
#robot-assistant .time-wrapper {
	font-size: 8px;
    opacity: 0.8;
    text-align: right;
}
#robot-assistant .typing .talk-bubble {
    width: 84% !important;
    padding: 10px 0 0 10px !important;
    margin-left: 30px !important;
}
#robot-assistant .typing img {
    height: 10px;
}


/* BALLOON TIP RIGHT */
#robot-assistant .tri-right.border.right-in:before {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
    left: auto;
	right: -40px;
    top: 0;
	bottom: auto;
	border: 20px solid;
    border-color: #666 transparent transparent #666;
}
#robot-assistant .tri-right.right-in:after{
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
    left: auto;
	right: -20px;
    top: 8px;
	bottom: auto;
	border: 12px solid;
	border-color: transparent transparent #FFF #FFF;
}


/* BALLOON TIP LEFT */
#robot-assistant .tri-right.border.left-in:before {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
  	left: -40px;
	right: auto;
  	top: 0;
	bottom: auto;
	border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
#robot-assistant .tri-right.left-in:after{
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
  	left: -20px;
	right: auto;
  	top: 8px;
	bottom: auto;
	border: 12px solid;
    border-color: transparent #fcc660 #fcc660 transparent;
}


/* USER INPUT */
#robot-assistant #user-input {
    background-color: #FFF;
    padding: 0;
    height: 45px;
    width: 100%;
    position: absolute;
    bottom: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}
#robot-assistant #user-input .input {
    height: 45px;
    width: 100%;
    margin-top: 0;
}
#robot-assistant #user-input .input > input {
    border: 0;
    font-family: 'Arial', Arial, sans-serif;
    font-weight: 300;
    color: #333 !important;
    height: 100%;
    width: 100%;
    padding: 0 15px;
    outline: none;
}
#robot-assistant #user-input .input > input:focus {
    border-bottom: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
}
#robot-assistant #user-input .btn-floating {
    width: 34px;
    height: 34px;
    background-color: #388E3C;
}
#robot-assistant #user-input .btn-floating > i {
    font-size: 16px;
    margin: -1px 0 0 -4px;
    color: #FFF;
}
#robot-assistant #user-input > div:not(.input) {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* SEND BUTTON */
#robot-assistant #btn-send {
    border: none;
    border-radius: 50%;
    transition: background 0.5s;
    padding: 8px;
    color: #FECE00;
    background: #fff;
    width: 35px;
    height: 35px;
}

#robot-assistant #btn-send:hover {
    cursor: pointer;
    background: #FECE00;
    color: #fff;
}


/* CHAT TRIGGER */
#robot-assistant-trigger {
    opacity: 0.7;
    transition: opacity 0.4s;
    z-index: 9997 !important;
    position: fixed;
    bottom: 0; right: 1rem;
}

#robot-assistant-trigger:hover {
    opacity: 1;
    cursor: pointer;
} 

#robot-assistant-trigger.button-trigger {
    width: 54px;
    height: 54px;
    background-color: #388E3C;
    border: none;
    border-radius: 50%;
    padding: 16px;
    transition: opacity 0.4s;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

#robot-assistant-trigger.button-trigger i {
    color: #FFF;
    font-size: 20px;
}

#robot-assistant-trigger.image-trigger {
    height: 150px;
    border: none;
}

@media(max-width: 600px) {
    #robot-assistant-trigger.image-trigger {
        height: 120px;
    }
}

@media(max-width: 500px) {
    #robot-assistant-trigger.image-trigger {
        height: 120px;
    }
}

#visibility-avatar-control {
    position: fixed;
    bottom: 100px;
    right: -170px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border: 0;
    background-color: #FECE00;
    padding: 7px 10px;
    cursor: pointer;
    width: 200px;
    opacity: 0.7;
    z-index: 9998;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

#visibility-avatar-control span {
    font-size: 10px;
}

@keyframes revealLabelAvatarControl {
    from {
        right: -170px;
    }
    to {
        right: 0;
    }
}

#visibility-avatar-control:hover {
    animation-name: revealLabelAvatarControl;
    opacity: 1;
}

/* CONVERSATION ELEMENTS */
#robot-assistant .button {
    background-color: #5c5c5c;
    border: none;
    border-radius: 4px;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
}