// =============================================================================
// :: Settings
// =============================================================================
$circles-width: 113rem;
$circles-height: 108rem;
$bubble-offset: 6rem;

// =============================================================================
// :: Chat
// =============================================================================
.c-chat {
	position: relative;

	display: flex;
	flex-direction: column;
	overflow: hidden;
}

// =============================================================================
// :: Elements
// =============================================================================
.c-chat__grid {

	@include respond-at(get-breakpoint("desktop")) {
		margin-top: 6rem;
		margin-bottom: 6rem;
	}
}

.c-chat__title {
	margin-bottom: 6rem;

	font-weight: $font-weight-normal;
	line-height: $line-height-1x-large;
}

.c-chat__input {
	margin-top: 5.8rem;

	box-shadow: 0 1.3rem 4rem -1rem rgba(0,0,0,0.1);
}

.c-chat__autocomplete {
	margin-top: -2.5rem;
	margin-bottom: 10rem;

	padding: 0;

	list-style: none;

	box-shadow: 0 1.3rem 4rem -1rem rgba(0,0,0,0.1);

	background-color: $white;
	border-radius: 0 0 2rem 2rem;

	.c-chat__autocomplete__item {

		&:first-child {
			padding-top: 2.5rem;
		}

		&:last-child {

			&::after {
				content: none;
			}
		}
	}
}

.c-chat__autocomplete__item {
	position: relative;

	padding: 1rem 2rem;

	&::after {
		content: "";

		position: absolute;

		left: 0;
		bottom: 0;
		right: 0;

		height: 0.1rem;

		background-color: $background-color-pink;
	}

	&:hover {
		color: $pink;

		cursor: pointer;
	}
}

.c-chat__item {
	display: inline-block;
	margin-bottom: 3.5rem;

	@include respond-at(get-breakpoint("desktop")) {
		width: calc(100% - #{$bubble-offset});
	}
}

.c-chat__circles-container {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: $z-index-pit;

	width: 100%;
	height: 100%;

	overflow: hidden;

	transform: translateX(-50%);

	@include respond-at(get-breakpoint("desktop")) {
		max-width: 50rem;
	}
}

.c-chat__circles {

	&.c-circles {
		top: calc(50% - (#{$circles-height} * 0.8));
		left: calc(100% - #{$circles-width});

		transform: scaleY(1.2) translateY(-7rem);

		@include respond-at(get-breakpoint("desktop")) {
			top: calc(50% - (#{$circles-height} * 0.5));
		}
	}
}

// =============================================================================
// :: Elements
// =============================================================================
.c-chat__item--even {

	@include respond-at(get-breakpoint("desktop")) {
		margin-left: $bubble-offset;
	}
}
