.chat__container {
	position: relative;
	margin-top: 4em;
	border-radius: 30px;
	box-shadow: var(--shadow);
}
transition > .chat__container {
	opacity: 0;
}
.chat__header {
	display: flex;
	justify-content: space-between;
	grid-gap: 30px;
	border-radius: 30px 30px 0 0;
	padding: 30px;
	background: #fff;
}
.chat__header-block {
	display: flex;
	align-items: flex-start;
	flex: 1 1;
}
.chat__header-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	margin: auto 16px auto 0;
	border-radius: 100%;
	overflow: hidden;
	background-color: #f8f8f8;
}
.chat__header-ico img,
.chat__header-ico svg {
	width: 36px;
	height: 36px;
}
.chat__header-text {
	color: #333;
	font-size: 14px;
	line-height: 145%;
	margin: auto 0;
}
.chat__body {
	background: rgba(242, 242, 242, 0.9);
	border-radius: 0 0 30px 30px;
	padding: 30px;
}
.bot__wrapper,
.card-selector,
.color-selector__item {
	box-shadow: var(--shadow);
	background-color: #fff;
}
@media screen and (max-width: 767px) {
	.chat__header {
		display: block;
		grid-gap: 0;
		padding: 18px;
	}
	.chat__body {
		padding: 18px;
	}
}
.bot {
	display: flex;
	align-items: center;
}
.bot__info {
	position: fixed;
	left: 0;
	top: -100%;
	width: 100%;
	transition: top 0.4s;
	z-index: 10;
}
.bot__info.visible {
	top: 0;
}
.bot__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 30px;
}
.bot__img {
	flex-shrink: 0;
	border-radius: 100%;
}
.bot__text {
	margin: auto 0 auto 1em;
}
.bot__name {
	position: relative;
	font-size: 16px;
	line-height: 148%;
	font-weight: 600;
}
.bot__call {
	flex-shrink: 0;
}
@media (max-width: 768px) {
	.bot__wrapper {
		padding: 10px 16px;
	}
}
.message:not(:first-child) {
	margin-top: 16px;
}
.message-group:first-child,
.message__cont:first-child {
	margin-top: 0;
}
.message-group {
	display: flex;
	grid-gap: 16px;
	margin-top: 24px;
	min-height: 60px;
}
.message--user {
	flex-direction: row-reverse;
}
.message__cont {
	margin-top: 16px;
	max-width: 700px;
}
.message__write {
	margin: 0.75em;
	max-width: 700px;
	color: #999;
}
@-webkit-keyframes blink {
	50% {
		fill: transparent;
	}
}
@keyframes blink {
	50% {
		fill: transparent;
	}
}
.message__write .dots {
	vertical-align: bottom;
	color: grey;
}
.message__write .dot {
	-webkit-animation: 1s infinite blink;
	animation: 1s infinite blink;
	fill: grey;
}
.message__write .dot:nth-child(2) {
	-webkit-animation-delay: 250ms;
	animation-delay: 250ms;
}
.message__write .dot:nth-child(3) {
	-webkit-animation-delay: 0.5s;
	animation-delay: 0.5s;
}
.message__img {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	overflow: hidden;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	margin-top: 12px;
}
.card-selector,
.card-selector__bgimage,
.card-selector__border,
.message__text {
	border-radius: var(--bd-rad);
}
.message__img--empty,
.modal-open-enter {
	opacity: 0;
}
.message__img img {
	display: block;
}
.message__text {
	display: inline-block;
	vertical-align: top;
	position: relative;
	padding: 16px 24px;
	background: #fff;
	max-width: 700px;
	color: #666;
	font-size: 15px;
	line-height: 1.6;
	box-shadow: var(--shadow);
}
.message--user .message__text {
	background: #e9ffe2;
	padding-right: 40px;
}
.message__status--readed:after,
.message__status:before {
	position: absolute;
	bottom: 0;
	width: 12px;
	height: 12px;
	background: url(../../img/check.svg);
	content: '';
}
.message--bot .message__cont .message__text {
	border-radius: 0 12px 12px;
}
.message--user .message__cont .message__text {
	border-radius: 12px 0 12px 12px;
}
.message__status {
	position: absolute;
	right: 24px;
	bottom: 20px;
	height: 12px;
	width: 12px;
}
.message__status:before {
	left: 0;
}
.message__status--readed:after {
	left: 5px;
}
@media (max-width: 600px) {
	.bot__img,
	.message__img {
		width: 32px;
		height: 32px;
	}
	.bot__name {
		font-size: 14px;
	}
	.bot__text {
		font-size: 12px;
	}
	.bot__call span {
		display: none;
	}
	.message:not(:first-child),
	.message__cont {
		margin-top: 10px;
	}
	.message-group:first-child,
	.message__cont:first-child {
		margin-top: 0;
	}
	.message-group {
		grid-gap: 10px;
		margin-top: 20px;
	}
	.message__text {
		padding: 10px 12px;
		font-size: 13px;
		line-height: 140%;
	}
	.message__status {
		bottom: 13px;
		right: 20px;
	}
}
.card-selector {
	display: block;
	position: relative;
	padding: 0.75em 1.5em;
	cursor: pointer;
	transition: background 0.4s, box-shadow 0.4s;
}
.card-selector--full {
	padding: 0;
}
.card-selector__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 8px;
}
.card-selector__container--x3 {
	grid-template-columns: 1fr 1fr 1fr;
}
.card-selector__input,
.color-selector input {
	position: absolute;
	visibility: hidden;
	width: 0;
	height: 0;
	top: 0;
	left: 0;
}
.card-selector__img {
	display: block;
	margin-bottom: 0.5em;
}
.card-selector__bgimage {
	display: block;
	position: relative;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
.card-selector--full .card-selector__bgimage,
.color-selector__ico {
	background-size: cover;
}
.card-selector__bgimage::before {
	content: '';
	width: 100%;
	display: block;
	padding-bottom: 75%;
}
.card-selector__name {
	display: block;
	font-size: 18px;
	line-height: 132%;
	margin-bottom: 2px;
	font-weight: 500;
}
.card-selector__price {
	display: block;
	color: #828282;
	font-size: 15px;
	line-height: 148%;
	font-weight: 300;
	white-space: nowrap;
}
.card-selector__border {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	border: 3px solid var(--main);
	opacity: 0;
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
	transition: opacity 0.3s, transform 0.2s, -webkit-transform 0.2s;
}
.card-selector__input:checked ~ .card-selector__border {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}
.card-selector__input:checked ~ .card-selector__border:after {
	content: '';
	position: absolute;
	top: -1em;
	right: -1em;
	width: 2em;
	height: 2em;
	border-radius: 100%;
	background: url(../../img/check-white.svg) center center/1em no-repeat;
	background-color: var(--main);
}
.card-selector:hover {
	box-shadow: 0 4px 24px rgba(60, 60, 60, 0.4);
}
@media (max-width: 480px) {
	.chat__container {
		margin-top: 2em;
	}
	.bot__wrapper {
		padding: 10px;
	}
	.card-selector {
		margin-bottom: 0.5em;
	}
	.card-selector__container {
		display: block;
		grid-gap: 0;
	}
	.card-selector__container--x3 {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.card-selector__img {
		max-width: 165px;
		margin: 0 auto 0.5em;
	}
	.card-selector__name {
		font-size: 16px;
	}
}
@media (max-width: 360px) {
	.card-selector {
		padding: 0.5em 1em;
	}
	.card-selector__name {
		font-size: 13px;
	}
}
.color-selector {
	position: relative;
	margin: 12px 12px 0 0;
}
.color-selector__item {
	display: inline-flex;
	padding: 0.75em 1.5em;
	border-radius: var(--bd-rad);
	cursor: pointer;
	transition: background 0.4s;
}
.color-selector__ico {
	position: relative;
	display: inline-block;
	width: 24px;
	height: 24px;
	margin: auto 0.5em auto 0;
	border-radius: 0.5em;
	overflow: hidden;
	flex-shrink: 0;
}
.color-selector__text {
	font-size: 14px;
	line-height: 24px;
}
input:checked ~ .color-selector__item {
	background-color: var(--main);
}
.darkMainColor input:checked ~ .color-selector__item .color-selector__text {
	color: #fff;
}
@media (max-width: 480px) {
	.color-selector__text {
		font-size: 12px;
		line-height: 1.4;
	}
}
.slide-fade-bot-enter {
	-webkit-transform: translateX(-20px);
	transform: translateX(-20px);
	opacity: 0;
}
.slide-fade-bot-enter-active,
.slide-fade-user-enter-active {
	transition: opacity 0.5s ease-out, transform 0.5s ease-out, -webkit-transform 0.5s ease-out;
}
.haeder-start-enter-to-class,
.messenger-start-enter-to-class,
.modal-open-enter-to-class,
.slide-fade-bot-enter-to-class,
.slide-fade-user-enter-to-class {
	opacity: 1;
}
.slide-fade-user-enter {
	-webkit-transform: translateX(20px);
	transform: translateX(20px);
	opacity: 0;
}
.messenger-start-enter {
	-webkit-transform: translateY(40px) scale(0.8);
	transform: translateY(40px) scale(0.8);
	opacity: 0;
}
.messenger-start-enter-active {
	transition: opacity 0.5s ease-out 0.5s, transform 0.6s ease-out 0.5s,
		-webkit-transform 0.6s ease-out 0.5s;
}
.haeder-start-enter {
	-webkit-transform: translateY(-40px);
	transform: translateY(-40px);
	opacity: 0;
}
.haeder-start-enter-active {
	transition: opacity 0.5s ease-out, transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
}
.modal-open-enter-active {
	transition: opacity 0.2s ease-out;
}
