/* トーク */
/* 上部のタブ */
.talk-header {
	display: table;
	table-layout: fixed;
	margin: 10px auto;
	width: 90%;
	min-width:300px;
	max-width:540px;
	border-radius: 5px !important;
	background-color: #FFFFFF;
	color: #808080;
}

.talk-header .talk,
.talk-header .info {
	display: table-cell;
	position: relative;
	padding: 5px 0;
	text-align: center;
	cursor: pointer;
}

.talk-header .talk {
	border-radius: 5px 0 0 5px;
}

.talk-header .info {
	border-radius: 0 5px 5px 0;
}

.talk-header .active {
	background-color: #B67C2D;
	color: #fff;
	font-weight: bold;
}

/* 本文 */
.talk-body {
	margin-top: 10px;
	padding: 20px;
	border: 5px solid #F5f5f5;
	border-radius: 4px;
	background-color: #F5F5F5;
	width: 100%;
	height: 500px;
	overflow: hidden;
	position: relative;
}

/* 本文の吹き出し */
.balloon-right,
.balloon-left{
	position: relative;
	width: 100%;
	text-shadow: none;
}

.balloon-right {
	float: right;
	text-align: right;
	margin-right: 2%;
}

.balloon-left {
	margin-left:3%;
	float: left;
}

.arrow-comment,
.arrow-comment-to-all {
	position: relative;
	display: inline-block;
	padding: 10px;
	min-width: 20%;
	max-width: 70%;
	font-size: 13px;
	margin-top: 3px;
	margin-bottom: 15px;
	color: #303030;
	line-height: 17px;
	border-radius: 10px;
}

.arrow-comment2 {
	position: relative;
	display: inline-block;
	padding: 0 15px 20px;
	min-width: 20%;
	max-width: 70%;
	font-size: 13px;
	margin-bottom: 5px;
	color: #000;
}

.balloon-right .arrow-comment{
	float: right;
	background: #87E144;
	text-align: left;
	color:#303030;
}

.balloon-left .arrow-comment{
	float: left;
	background: #FFFFFF;
	color:#303030;
}

.balloon-left .arrow-comment2{
	float: left;
	color:383838;
}

.balloon-left .arrow-comment-to-all{
	float: left;
	background: #FFFFFF;
	color:FFFFFF;
}

.arrow-comment:after,
.arrow-comment-to-all:after {
	content: "";
	position: absolute;
	top: 20%;
}

.balloon-right .arrow-comment:after{
	border: 10px solid transparent;
	border-width:0 0 15px 20px;
	border-left-color:#87E144;
	left: 100%;
}

.balloon-left .arrow-comment:after{
	border: 10px solid transparent;
	border-width:0 20px 15px 0;
	border-right-color:#FFFFFF;
	right: 100%;
}

.balloon-left .arrow-comment-to-all:after{
	border: 10px solid transparent;
	border-width:0 20px 15px 0;
	border-right-color:#FFFFFF;
	right: 100%;
}

.balloon-left .arrow-comment-to-all a,
.balloon-left .arrow-comment a{
	color: #646085;
}

.balloon-left .balloon-datetime,
.balloon-right .balloon-datetime {
	position: relative;
	top: 10px;
	font-size: 10px;
	color: #808080;
}

.balloon-left .balloon-datetime {
	left: 5px;
	float: left;
}

.balloon-right .balloon-datetime {
	left: -5px;
	float: right;
}

.balloon-left .balloon-datetime .nickname,
.balloon-right .balloon-datetime .nickname {
	font-size: 12px;
}
/* 画面下部のテキスト入力 */
.talk-input-box {
	margin: 10px 0 20px;
	padding: 10px 0 20px;
	border: 5px solid #F5f5f5;
	border-radius: 4px;
	background-color: #F5F5F5;
	width: 100%;
	height: auto;
	position: relative;
}

.talk-input-box textarea {
	display: block;
	background-color: #FFFFFF;
	border: 1px solid #D9D9D9;
	border-radius: 6px;
	height: 84px;
	width: 100%;
	margin: 0 0 10px;
	padding: 12px 14px;
	resize: none;
	transition: border linear 0.4s;
}

.talk-input-box textarea:focus {
	border: 1px solid #B67C2D;
	outline: none;
}

.talk-input-box textarea.disabled-textarea {
	background-color: #FFFFFF;
	color: #999999;
}

.talk-input-box.is-picture textarea {
	opacity: 0.4;
	pointer-events: none;
}

.talk-input-box .talk-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.talk-input-box .talk-actions svg {
	display: block;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 8px;
	color: #8C8D8E;
	cursor: pointer;
	transition: color linear 0.2s;
}

.talk-input-box .talk-actions svg:hover {
	color: #5F6061;
}

.talk-input-box .talk-actions label {
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.talk-input-box .talk-actions label:hover {
	opacity: 1;
}

.talk-input-box .smily-btn {
	cursor: pointer;
}

.talk-input-box .send-btn {
	box-sizing: border-box;
	margin-left: auto;
	width: auto;
	min-width: 96px;
	height: 36px;
	line-height: 34px;
	padding: 0 20px;
	text-align: center;
	cursor: pointer;
	color: #fff;
	font-weight: normal;
	background-color: #B67C2D;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: background-color linear 0.2s;
}

.talk-input-box .send-btn:hover {
	background-color: #fff;
	border-color: #B67C2D;
	color: #B67C2D;
}

.talk-input-box .send-btn.is-sending,
.talk-input-box .send-btn.is-sending:hover {
	opacity: 0.6;
	cursor: default;
	background-color: #B67C2D;
	color: #FFFFFF;
	border-color: transparent;
}

.talk-input-box .send-btn-picture {
	display: none;
}

.talk-input-box.is-picture .send-btn-text {
	display: none;
}

.talk-input-box.is-picture .send-btn-picture {
	display: block;
}

.talk-input-box .disabled-button {
	box-sizing: border-box;
	margin-left: auto;
	width: auto;
	min-width: 96px;
	height: 36px;
	line-height: 36px;
	padding: 0 20px;
	text-align: center;
	color: #FFFFFF;
	font-weight: bold;
	background-color: #C0C0C0;
	border-radius: 4px;
}

.talk-input-box input[type="file"] {
	display: none;
}

/* 添付チップ。画像を選んでいる間だけ入力欄の上に出る */
.talk-input-box .talk-attachment {
	display: none;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 10px 12px;
	background-color: #FFFFFF;
	border: 1px solid #E0E0E0;
	border-radius: 6px;
	font-size: 13px;
}

.talk-input-box.is-picture .talk-attachment {
	display: flex;
}

.talk-input-box .talk-attachment-name {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* テキストは一緒に送られないので、その旨を明示する */
.talk-input-box .talk-attachment-note {
	flex: none;
	color: #999999;
	font-size: 11px;
}

.talk-input-box .talk-attachment-clear,
.talk-input-box .stamp-box .close-btn {
	position: absolute;
	flex: none;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	font-size: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color linear 0.2s;
}

.talk-input-box .talk-attachment-clear {
	position: relative;
}

.talk-input-box .talk-attachment-clear:hover,
.talk-input-box .stamp-box .close-btn:hover {
	background-color: #EBEBEB;
	text-decoration: none;
}

.talk-input-box .talk-attachment-clear::before,
.talk-input-box .talk-attachment-clear::after,
.talk-input-box .stamp-box .close-btn::before,
.talk-input-box .stamp-box .close-btn::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 2px;
	border-radius: 1px;
	background-color: #8C8C8C;
	transition: background-color linear 0.2s;
}

.talk-input-box .talk-attachment-clear::before,
.talk-input-box .stamp-box .close-btn::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.talk-input-box .talk-attachment-clear::after,
.talk-input-box .stamp-box .close-btn::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.talk-input-box .talk-attachment-clear:hover::before,
.talk-input-box .talk-attachment-clear:hover::after,
.talk-input-box .stamp-box .close-btn:hover::before,
.talk-input-box .stamp-box .close-btn:hover::after {
	background-color: #555555;
}

/* 画像送信のエラー */
.talk-upload-error {
	display: none;
	margin: 0 0 10px;
	padding: 10px 14px;
	color: #C0392B;
	background-color: #FDF3F2;
	border: 1px solid #F2D5D1;
	border-radius: 6px;
	font-size: 13px;
}

.talk-input-box .stamp-box {
	display: none;
	position: absolute;
	top: auto;
	bottom: 100%;
	left: 0;
	width: 100%;
	height: 200px;
	padding: 36px 14px 14px;
	background-color: #FFFFFF;
	border: 1px solid #E5E5E5;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	overflow-x: hidden;
	overflow-y: auto;
}

.talk-input-box .stamp-box .close-btn {
	top: 8px;
	right: 8px;
}

.talk-input-box .stamp-box .stamp {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.talk-input-box .stamp-box img {
	width: calc(50% - 5px);
	max-width: 120px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color linear 0.2s;
}

.talk-input-box .stamp-box img:hover {
	background-color: #F3EDE3;
}

@media screen and (max-width: 991px) {
	.talk-input-box .send-btn,
	.talk-input-box .disabled-button {
		min-width: 88px;
		padding: 0 16px;
	}

	.talk-input-box .talk-attachment-note {
		display: none;
	}
}
