html, body {
	min-height: 100%;
	margin: 0;
	bottom: 0;
	font-family: -apple-system;
}
body {
	background-color: #94b5da;
	font-size: 90%;
	word-break: break-all;
	overflow-wrap: break-word;
}
ol {
	margin-bottom: 0;
}
#survey-header {
	background-color: #303f57;
	color: #fefefe;
	margin: 0;
	padding: 8px;
	font-size: 100%;
	text-align: center;
	top: 0;
	z-index: 999;
	width: 100%;
	width: calc(100% - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#survey-header-title {
	font-weight: bold;
}
#header-image{
	max-height: 24px;
}
#main {
	padding-top: 16px;
	padding-bottom: 195px
}
#chat{
	padding: 0 16px;
}
#input-outer {
	background-color: #efefef;
	position: fixed;
	bottom: 0;
	height: 195px;
	width: 100%;
	z-index: 999;
}
.input-header {
	font-size: 80%;
	background-color: #ddd;
	padding: 8px 10px;
	height: 34px;
	box-sizing: border-box;
	position: relative;
}
.input-header button {
	background-color: white;
	margin-bottom: 8px;
}
.input-ma .stamps, #fa-textarea {
	position: absolute;
	top: 34px;
	bottom: 0;
	left: 0;
	width: calc(100% - 70px);
}
#fa-date {
	position: absolute;
	top: 34px;
	bottom: 0;
	left: 0;
	width: calc(100% - 50px);
	-webkit-appearance: none;
	border: 0;
	background-color: #fff;
}
#fa-textarea, #fa-address, #fa-postal-code {
	font-size: 120%;
	padding: 10px;
	resize: none;
	border: 0
}
#input-ma .ok-button, #input-ma-select .ok-button, #input-sa-ranking-select .ok-button, #input-ma-modal-select .ok-button, #input-fa-address .ok-button, #input-fa-file .ok-button, #input-sa-confirm .ok-button, #input-sa-select-confirm .ok-button , #input-fa-multiple-range .ok-button, #input-sa-star .ok-button {
	display: inline-block;
	width: 50px;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	background-color: #5a8ce1;
	color: white;
	text-align: center;
	padding-top: 8px;
	opacity: 0.7;
}
#input-fa .ok-button, #input-fa-date .ok-button {
	width: 50px;
	position: absolute;
	top: 34px;
	bottom: 0;
	right: 0;
	background-color: #5a8ce1;
	color: white;
	text-align: center;
}
.ma-help-hilight,.sa-confirm-help-hilight,.sa-select-confirm-help-hilight,.sa-star-help-hilight{
	color: #DD4E41;
	font-weight: bold;
}
.ok-button-tapped {
	background-color: #2f6ed9 !important;
}
.valid-ok-button, .valid-ok-button img {
	opacity: 1 !important;
}
.ok-button img {
	height: 16px;
	top: calc(50% - 8px);
	left: calc(50% - 8px);
	position: absolute;
	opacity: 0.5;
}
.stamps {
	height: 161px;
	box-sizing: border-box;
	padding: 2px;
	text-align: center;
}
.stamp {
	height: 73px;
	padding: 1px;
}
.star {
	height: 50px;
	padding: 1px;
}
.selected-stamp {
	 background-color: gray;
}
.msg {
	position: relative;
	display: inline-block;
	padding: 16px;
	width: calc(100% - 32px);
	margin-bottom: 16px;
	color: #000;
	border-radius: 10px;
}
.question {
	background: #fff;
}
.answer {
	background: #85e249;
}
.answer:before, .question:before {
	content: "";
	position: absolute;
	top: 10px;
	margin-left: 0;
	display: block;
	width: 30px;
	height: 35px;
	z-index: -1;
}
.question:before {
	left: -8px;
	background: #fff;
	border-radius: 0px 30px;
}
.answer:before {
	right: -10px;
	background: #85e249;
	border-radius: 30px 0;
}
.answer-stamp {
	width: 90%;
	margin-left: 5%;
	margin-bottom: 2em;
	text-align: right;
}
.answer-stamp img {
	height: 120px;
}
.answer:after, .question:after {
	content: "";
	position: absolute;
	top: 0;
	margin-left: 0px;
	display: block;
	width: 25px;
	height: 25px;
	background: none repeat scroll 0% 0% #94b5da;
	z-index: -1;
}
.question:after {
	left: -12px;
	transform: rotate(10deg);
	border-radius: 0px 30px;
}
.answer:after {
	right: -12px;
	border-radius: 30px 0px;
	transform: rotate(20deg);
}
.question p:first-child{
	margin-top: 0;
}
.question p:last-child{
	margin-bottom: 0;
}
.question ol{
	padding-left: 2em;
}
#before-message{
	padding: 4%;
	background-color: white;
	margin: 60px 20px 0 20px;
	border-radius: 10px;
}
.sa-zoom-stamp{
	background-color:white;
	border:1px solid #ddd;
	position:fixed;
	bottom:50px;
	box-shadow:0 0 3px silver;
	z-index: 9999;
	-webkit-transform:translateZ(1px);
	-moz-transform:translateZ(1px);
	-o-transform:translateZ(1px);
	transform:translateZ(1px);
}
.sa-zoom-stamp img{
	width:110px;height:110px;
}
.question-image-wrapper{
	text-align: center;
	margin-bottom: 16px;
}
.question-image{
	max-width: 100%;
}
.promotion-image-wrapper{
	text-align: center;
	margin-bottom: 16px;
}
.promotion-image{
	max-width: 100%;
}
#exit-button{
	z-index: 9999;
	display: block;
	position: fixed;
	bottom: 0;
	width: 100%;
	padding: 12px 0;
	color: white;
	background-color: #2f6ed9;
	text-align: center;
	font-size: 18px;
	text-decoration: none;
	cursor: pointer;
}
.hidden{
	display: none !important;
}
.writing-gif{
	height: 12px;
	margin-left: 12px;
	vertical-align: middle;
}
.hidden-input-inner{
	visibility: hidden;
}
.mini-input{
	height: 34px !important;
	transition: all 0.5s;
}
.full-view{
	padding-bottom: 34px !important;
}
#q-back-button{
	background-color: white;
	color: black;
	border: 1px solid silver;
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	padding: 5px;
	opacity: 0.9;
	text-align: center;
	border-radius: 10px;
	cursor: pointer;
}
.surveyor-icon{
	height: 50px;
	width:50px;
	background-size: cover;
	float: left;
	clear: both;
	border-radius: 10px;
}
.question-with-icon{
	width: calc(100% - 50px - 32px - 20px);
	min-height: 18px;
	margin-left: 20px;
	animation: 300ms ease 0s questionFadeInWithIcon;
}
@keyframes questionFadeInWithIcon {
	0% {width: 0}
	100% {width: calc(100% - 102px)}
}
.question:not(.question-with-icon) {
	animation: 300ms ease 0s questionFadeIn;
}
@keyframes questionFadeIn {
	0% {width: 0}
	100% {width: calc(100% - 32px)}
}
.msg table{
	display: block;
}
.msg *{
	max-width: 100%;
}
#toast{
	position: fixed;
	top: 20px;
	display: inline-block;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	border-radius: 4px;
	padding: 5px 9px;
	border: none;
	z-index: 100;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
	font-size: 17px;
}
#sa-select,#sa-select-confirm, #ma-select{
	width: calc(100% - 24px);
	height: 40px;
    padding: 6px 10px;
    background-color: #fff;
    border: 1px solid #D1D1D1;
    box-shadow: none;
    margin: 12px;
}
#fa-address{
	margin-top: 10px;
	width: 100%;
}
#postal-code-label{
	display: inline-block;
	color: red;
	width: 36px;
	text-align: center;
	font-size: 120%;
}
#fa-postal-code{
	margin-top: 10px;
	width: calc(100% - 56px);
}
#input-fa-multiple-range-text{
	display: flex;
	justify-content: center;
	align-items: center;
}
.multiple-range0{
	background: #ffffff;
}
.multiple-range1{
	background: #e2f1ea;
}
.multiple-range2{
	background: #aad5bf;
}
.multiple-range3{
	background: #72b895;
}
.multiple-range4{
	background: #478d6a;
}
.multiple-range5{
	background: #1d382b;
}

.sa-ranking-select, .ma-modal-select {
    margin-bottom: 2em;
}

.sa-ranking-select > label, 
.ma-modal-select > label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.sa-ranking-select .multi-select-menu, 
.ma-modal-select .multi-select-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 50%;
    min-width: 0;
    overflow: auto;
    border: none;
    border-radius: 0.3em;
    box-shadow: 0 1em 3em rgba(0,0,0,0.4);
}

.sa-ranking-select .multi-select-menuitem , 
.ma-modal-select .multi-select-menuitem {
    font-size: 1em;
    padding: 1.5em 2.5em 1.5em 3.5em;
}

.sa-ranking-select .multi-select-menuitem + .multi-select-menuitem , 
.ma-modal-select .multi-select-menuitem + .multi-select-menuitem {
    padding-top: 0;
}

.sa-ranking-select .multi-select-menuitem input,
.ma-modal-select .multi-select-menuitem input {
    margin-left: -2.5em;
}

.multi-select-container {
    display: inline-block;
    position: relative;
}


.multi-select-menu {
    position: absolute;
    left: 0;
    top: 0.8em;
    z-index: 1;
    float: left;
    min-width: 100%;
    background: #fff;
    margin: 1em 0;
    border: 1px solid #aaa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: none;
}

.multi-select-menuitem {
    display: block;
    font-size: 0.875em;
    padding: 0.6em 1em 0.6em 30px;
    white-space: nowrap;
}

.multi-select-menuitem--titled:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    margin: 0 0 0.25em -20px;
}

.multi-select-menuitem--titledsr:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.multi-select-menuitem + .multi-select-menuitem {
    padding-top: 0;
}

.multi-select-presets {
    border-bottom: 1px solid #ddd;
}

.multi-select-menuitem input {
    position: absolute;
    margin-top: 0.25em;
    margin-left: -20px;
}

.multi-select-button {
    display: inline-block;
    font-size: 2em;
}

.multi-select-button:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: 0.1em;
}

.multi-select-container--open .multi-select-menu {
    display: block;
}

.multi-select-container--open .multi-select-button:after {
    border-width: 0 0.4em 0.4em 0.4em;
    border-color: transparent transparent #999 transparent;
}

.multi-select-container--positioned .multi-select-menu {
    /* Avoid border/padding on menu messing with JavaScript width calculation */
    box-sizing: border-box;
}

.multi-select-container--positioned .multi-select-menu label {
    /* Allow labels to line wrap when menu is artificially narrowed */
    white-space: normal;
}

.multi-select-menuitem-span.selected {
  display: inline-block;
  width: 100%;
  background-color: gray;
  color: white;
}


/* 2024.12.06 add  */
.stamps {
  overflow-y: auto;
}

.stamps::-webkit-scrollbar {
  width: 8px;
}

.stamps::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.stamps::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.stamps::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.stamps img.stamp {
  margin: 0;
  flex-shrink: 0;
}

.collapse-button {
  background-color: #aaa !important;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0 10px;
  font-size: 12px;
  transition: transform 0.3s;
  transform: rotate(180deg);
  margin-left: 20px;

  position: absolute;
  right: 60px;
}

#input-sa .collapse-button {
  right: 10px !important;
}

.collapse-button.collapsed {
  transform: rotate(0deg);
}

.stamps.collapsed {
  padding: 0;
  /* overflow: hidden; */
}

.stamps {
  transition: height 0.3s ease-out, padding 0.3s ease-out;
}