@import url("../../styles/variables");

#item(){
	display: inline-flex;
	position: relative;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 20px;
}

#timeInCallInfo(@side){
	position: absolute;
	@side: 0;
}

.message{

	&__in{
		
		&-item{
			#item();
			
			.call-info-content{
				margin-left: 65px;
			}
		}

		&-box{
			background-color: #f5f6fa;
			color: #344051;
			font-size: 14px;
			line-height: 22px;
			width: auto;
			max-width: 615px;
			border-radius: 0 30px 30px 30px;
			padding: 10px 25px;
			margin-top: 16px;
			margin-left: 20px;
		}

		&-time{
			position: absolute;
			right: 10px;
			top: 0;
			font-size: 12px;
			color: #344051;
			line-height: 1;

			&-InCallInfo{
				#timeInCallInfo("left");
			}
		}

		&-area{
			position: relative;
		}

		&-attached{
			margin-top: 0px;
		}

	}

	&__out{
		
		&-item{
			#item();
			justify-content: flex-end;

			.call-info-content{
				margin-right: 65px;
			}
		}

		&-box{
			background-color: #e9f5fd;
			color: #344051;
			font-size: 14px;
			line-height: 22px;
			width: auto;
			max-width: 615px;
			border-radius: 30px 0 30px 30px;
			padding: 10px 25px;
			margin-top: 16px;
		}

		&-time{
			position: absolute;
			left: 10px;
			top: 0;
			font-size: 12px;
			color: #344051;
			line-height: 1;

			&-InCallInfo{
				#timeInCallInfo("right");
			}
		}

		&-area{
			position: relative;
		}

		&-attached{
			margin-top: 0px;
		}
	}

	&-today{
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		color: @blue;
		font-size: 12px;
		margin-bottom: 30px;
	}

	&-visit-end{
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #c4c4c4;
		font-size: 12px;
		margin-bottom: 30px;
	}
}