@charset "utf-8";
/*input (text和button和submit)*/
.container .send-message input[type="text"], .container .send-message input[type="text"]:hover, .container .send-message input[type="text"]:before, .container .send-message input[type="text"]:after, .container .send-message input[type="button"], .container .send-message input[type="button"]:hover, .container .send-message input[type="button"]:before, .container .send-message input[type="button"]:after, .container .send-message input[type="submit"], .container .send-message input[type="submit"]:hover, .container .send-message input[type="submit"]:before, .container .send-message input[type="submit"]:after{ 
	-webkit-transition: 0.25s ease-in-out all;
	-moz-transition: 0.25s ease-in-out all;
	-o-transition: 0.25s ease-in-out all;
	transition: 0.25s ease-in-out all;
}


.container .send-message {
    position: relative;
    margin: 0 auto;
    padding: 0;
}
.container .send-message span.glyphicon {
	border: 1px solid #335337;
    font-size: 25px;
}
.container .send-message .logword {
	font-size: 16px;
	line-height: 18px;
}
.container .send-message .btn-link {
	margin: 0px 4px;
	padding: 8px 15px;
	border: 1px solid #337ab7;
	border-radius: 5px;
	display: inline-block;
	cursor: pointer;
}
.container .send-message .btn-link span {
	margin-right: -5px;
}
.container .send-message .btn-link:hover, .container .send-message .btn-link:hover a, .container .send-message .btn-link:hover a:hover,
.container .send-message .btn-link:focus, .container .send-message .btn-link:focus a, .container .send-message .btn-link:focus a:hover {
	color: #424242;
	text-decoration: none;
	border: 1px solid #e8e8e8;
	background-color: transparent;
}
.container .send-message .btn-link:hover a, .container .send-message .btn-link:hover a:hover, .container .send-message .btn-link:focus a, .container .send-message .btn-link:focus a:hover {
	border: 0px solid transparent;
	padding: 5px 4px 5px 3px;

}
@media (max-width: 479px) {
    .container .send-message .btn-link {
        margin: 1px 0px;
        padding: 8px 7px;
    }
}

/* chat Service_Ami */
.Service_Ami {
    position: relative;
    margin: 0px auto;
    padding: 8px 8px 60px;
    border-radius: 5px;
    background-color: #f2f2f2;
    width: 100%;
    min-height: 447px;/*min-height: 377px;*/
}
.Service_Ami .d-none {
  display: none !important; }

.Service_Ami .d-inline {
  display: inline !important; }

.Service_Ami .d-inline-block {
  display: inline-block !important; }

.Service_Ami .d-block {
  display: block !important; }

.Service_Ami .d-table {
  display: table !important; }
.Service_Ami .seconds-message {
  padding: 0 5px;
  color: #989898; }

.Service_Ami .send-message {
    position: absolute;
    margin: 0 auto;
    padding: 0 10px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: column-reverse wrap;
    flex-flow: column-reverse wrap;
    -ms-flex-align: center;
    align-items: center;
    left: -2px;
    bottom: 8px;
    width: calc(100% - 2px);
    height: 48px;
    z-index: 100;
}
input[type="text"]#tbMsg{
    /*position: relative;*/
    margin: 0 8px;
    padding: 12px 20px;
 	width: calc(100% - 54px);
 	height: 42px;
 	line-height: 42px;
 	border: 2px solid #e8e8e8;
 	border-radius: 20px;
}
.form-talk-box {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 1.5rem;
  line-height: 1.42857143;
  color: #555555;
  background-color: #fff;
  background-image: none;
  background-clip: padding-box;
  /*border: 1px solid #ccc;
  border-radius: 4px;*/
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.0);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.0);
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}
.form-talk-box:hover,
.form-talk-box:active,
.form-talk-box:focus {
  outline: none;
  text-decoration: none;
}
.form-talk-box:focus {
  border-color: #e8e8e8;
  background-color: #fff;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .045), 0 0 8px rgba(102, 102, 102, 0.2);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .045), 0 0 8px rgba(102, 102, 102, 0.2);
}
.form-talk-box::-moz-placeholder {
  color: #999;
  opacity: 1;
}
.form-talk-box:-ms-input-placeholder {
  color: #999;
}
.form-talk-box::-webkit-input-placeholder {
  color: #999;
}
.form-talk-box::-ms-expand {
  background-color: transparent;
  border: 0;
}
.form-talk-box[disabled],
.form-talk-box[readonly],
fieldset[disabled] .form-talk-box {
  background-color: #eeeeee;
  opacity: 1;
}
.form-talk-box[disabled],
fieldset[disabled] .form-talk-box {
  cursor: not-allowed;
}
textarea.form-talk-box {
  height: auto;
}


@media (prefers-reduced-motion: reduce) {
  .form-talk-box {
    transition: none;
  }
}

.form-talk-box::-ms-expand {
  background-color: transparent;
  border: 0;
}

.form-talk-box::-webkit-input-placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-talk-box::-moz-placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-talk-box:-ms-input-placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-talk-box::-ms-input-placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-talk-box::placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-talk-box:disabled, .form-talk-box[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}




.send-message span.input-send-group {
  position: relative;
  margin: 2px 0 0;
  padding: 0;
  width: 42px;
  height: 40px;
  display: block;
  background-image: linear-gradient(45deg, #2ca5dc 0%, #2575fc 100%);
  border: 0;
  border-radius: 50%;
  font-weight: bold;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
}
.send-message span.input-send-group:hover {
  background-image: linear-gradient(45deg, #2575fc 0%, #002897 100%);
}
.send-message span.input-send-group:not(.loading):hover span.glyphicon {
 	line-height: 35px;
 	transform: translate(2px,-1px);
}
.send-message span.input-send-group span.glyphicon{
    position: absolute;
    left: calc(100%/2 - 12px);
    top: calc(100%/2 - 17px);
    margin: 0 auto;
    padding: 0;
 	display: inline-block;
 	line-height: 35px;
    font-size: 16px;
    transition: all 0.25s ease;
    z-index: 2;
}
input#btnSend{
    margin: 0 auto;
    padding: 0px;
 	width: 40px;
 	height: 42px;
 	line-height: 42px;
 	border: 0;
 	border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
 	font-weight: bold;
 	color: #fff;
 	text-align: center;
}


/* 對話 Messages */
#messages {
    position: relative;
    margin: 0 auto;
    padding: 0px 0px;
    display: block;
}
#bottom {
    position: fixed;
    margin: 0 0 0 25px;
    padding: 0;
    top: calc(447px - 20px);/*calc(377px - 20px);高度*/
    left: 22px;
    float: left;
    clear: both;
}
div.conv-form-wrapper:after {
    content: "";
    display: block;
    clear: both;
    width: 100%;
    height: 1px;
}
div.conv-form-wrapper div#messages {
    /*max-height: 50vh;*/
    max-height: 347px;/*max-height: 277px;高度*/
    height: auto !important;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE 11 */
}
div.conv-form-wrapper * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
div.conv-form-wrapper div#messages:after {
    content: "";
    display: table;
    clear: both;
}
div.conv-form-wrapper {
    position: relative;
}
div.conv-form-wrapper div.wrapper-messages {
    position: relative;
    height: 347px;/*height: 277px;高度*/
    /*max-height: 50vh;*/
    overflow-y: scroll;
    transition: margin 0.1s;
}
div.conv-form-wrapper:before {
    content: "";
    position: absolute;
    width: calc(100% + 46px);
    margin: 0 -23px;
    padding: 0px 20px;
    display: block;
    height: 42px;
    top: 362px;/*top: 292px;高度*/
    left: 0;
    /*z-index: 2;*/
    background: linear-gradient(#fff, transparent);
}
@media (max-width: 767px) {
    div.conv-form-wrapper div.wrapper-messages, div.conv-form-wrapper div#messages {
        max-height: 347px;/*max-height: 277px;高度*/
    }
}

div.conv-form-wrapper div.wrapper-messages::-webkit-scrollbar, div#feed ul::-webkit-scrollbar, div.conv-form-wrapper div.options::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    /* remove scrollbar space */
    background: transparent;
    /* optional: just make scrollbar invisible */
}


div.conv-form-wrapper div#messages {
    transition: bottom 0.15s, padding-bottom 0.15s;
    position: absolute;
    bottom: calc(100%/2 - 348px) !important;/*bottom: calc(100%/2 - 278px);*/
    height: auto !important;
    width: calc(100% + 30px);
    margin: 0 -15px;
    padding: 10px 2px 10px 62px;
}
div.conv-form-wrapper  div#messages div.message {
    font-size: 1.5rem;
    color: #333;
    display: inline-block;
    padding: 10px 15px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
    float: right;
    clear: both;
    max-width: 100%;
    word-wrap: break-word;
    box-shadow: 0 0 3px 3px rgba(222, 222, 222, 0.4);
}

div.conv-form-wrapper  div#messages .card {
	background: #fff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
    padding: 8px 0px;
    border-radius: 10px;
    border: solid 1px #f8f8f8;
    margin: 10px 2px;
    width: 100%;
    text-align: center;
}
div.conv-form-wrapper  div#messages .card strong {
    margin: 0px auto 0px;
}
div.conv-form-wrapper  div#messages .card strong img {
    width: 132px;
    height: 86px;
    max-width: 100%;
    max-height: 100%;
    margin: -2px auto 3px;
    padding: 0px;
    display: block;
}
div.conv-form-wrapper  div#messages .card a {
    margin-top: 2px;
    padding: 5px 6px 2px;
    color: #2ca5dc;
    border-top: solid 1px #ddd;
    display: block;
}
div.conv-form-wrapper  div#messages .card a:hover,
div.conv-form-wrapper  div#messages .card a:active,
div.conv-form-wrapper  div#messages .card a:focus {
  color: #004a97;
  outline: none;
  text-decoration: none;
}
div.conv-form-wrapper  div#messages div.message.to {
    background: #fff;
    color: #282828;
    float: left;
    border-top-left-radius: 0;
}
div#messages div.message.to {
    position: relative;
    margin-top: 25px;
}
div#messages div.message.to img.a-1, div#messages div.message.to img.a-2 {
    position: absolute;
    content: "";
    display:inline-table;
    clear: both;
    top: -24px;
    left: -58px;
    width: 60px;
    height: 65px;
}
div#messages div.message.to img.a-2 {
    opacity: 1;
}
div#messages div.message.to:after {
    position: absolute;
    content: "";
    display: table;
    clear: both;
    top: -20px;
    left: -58px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent url("../img/icon-A-MI-01.png") no-repeat 50% center;
    background-size: 100%;
    opacity: 1;
    -webkit-animation: rotate-bg .65s ease-in 3;
    animation: rotate-bg .65s ease-in 3;
}
div#messages div.message.to:before {
    position: absolute;
    content: "";
    display: table;
    clear: both;
    top: -20px;
    left: -58px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent url("../img/icon-A-MI-00.png") no-repeat 50% center;
    background-size: 100%;
}
div.conv-form-wrapper div#messages div.message.from {
    background: linear-gradient(45deg, #2ca5dc 0%, #2ca5dc 42%, #2575fc 100%);
    color: #fff;
    border-top-right-radius: 0;
}
.message.to+.message.from, .message.from+.message.to {
    margin-top: 10px;
}
  @keyframes rotate-bg {
    0%  {
        opacity: 0;
    }
    20%  {
        opacity: 0;
    }
    20.1%  {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
  }
@-webkit-keyframes rotate-bg {
    0%  {
        opacity: 0;
    }
    20%  {
        opacity: 0;
    }
    20.1%  {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
  }


@media (min-width: 768px) {
  div.conv-form-wrapper  div#messages div.message {
      max-width: 70%;/*max-width: 65%;*/
  }
}
@media (min-width: 576px) {
  div.conv-form-wrapper  div#messages .card {
      max-width: calc(100%/3 - 4px);/*width: 140px;*/
      width: 150px;
      display: inline-block;
  }
}