.contractor-card-v2 {
	background: $color-white;
	border: 1px solid $color-charcoal1;
	box-shadow: 0 2px 4px 0 rgba($color-black, .1);
	border-radius: 4px;
	color: $color-charcoal6;
	cursor: pointer;
	overflow: hidden;
	transition: box-shadow $trans-time $trans-func;

	&__header {
		border-bottom: 1px solid $color-charcoal1;
		padding: 10px;
		position: relative;

		&-link {
			align-items: center;
			color: $color-charcoal5;
			display: flex;
			min-height: 97px;
			padding-right: 30px;
			position: relative;

			&:hover,
			&:focus,
			&:active {
				color: inherit;
			}
		}
	}

	&__logo {
		background: $color-white;
		border: 1px solid $color-charcoal1;
		border-radius: 4px;
		display: block;
		font-size: 0;
		height: 97px;
		line-height: 97px;
		overflow: hidden;
		text-align: center;
		width: 97px;

		img {
			height: 100%;
			object-fit: contain;
			object-position: 50% 50%;
			width: 100%;
		}
	}

	&__name-props {
		display: block;
		flex: 1;
		padding-left: 16px;
	}

	&__name {
		@include font-primary-bold;
		display: block;
		font-size: 16px;
		line-height: 19px;
		margin-bottom: 6px;
	}

	&__props {
		display: block;
		font-size: 12px;
		line-height: 15px;
	}

	&__rating-views {
		align-content: stretch;
		align-items: center;
		border-bottom: 1px solid $color-charcoal1;
		display: flex;
		height: 53px;
		position: relative;

		&-col {
			flex: 1;
			position: relative;
			text-align: center;

			& + & {
				&::before {
					background: $color-charcoal1;
					content: '';
					display: block;
					height: 53px;
					left: 0;
					position: absolute;
					top: 50%;
					transform: translateY(-50%);
					width: 1px;
				}
			}
		}
	}

	&__rating {
		text-align: center;

		.star-rating {
			&__stars {
				height: 12px;
				line-height: 12px;
				margin-right: 0;

				&::before,
				&::after {
					font-size: 12px;
					height: 12px;
					letter-spacing: 4px;
					line-height: 12px;
				}

				&::before {
					color: $color-orange1;
				}

				&--05 {
					&::after {
						width: 8%;
					}
				}

				&--15 {
					&::after {
						width: 28%;
					}
				}

				&--25 {
					&::after {
						width: 48%;
					}
				}

				&--35 {
					&::after {
						width: 68%;
					}
				}

				&--45 {
					&::after {
						width: 88%;
					}
				}
			}

			&__label {
				color: $color-orange4;
				font-size: 11px;
				line-height: 14px;
				margin-right: 4px;
			}

			&:hover,
			&:focus,
			&:active {
				.star-rating {
					&__label {
						color: $color-orange5;
					}
				}
			}
		}

		&-cta {
			@include font-primary-semi-bold;
			font-size: 11px;
			line-height: 14px;
		}
	}

	&__views {
		display: inline-block;
		white-space: nowrap;

		&-row {
			display: flex;
		}

		&-count {
			@include font-primary-bold;
			color: $color-blue5;
			flex: 1;
			font-size: 24px;
			line-height: 29px;
			padding: 0 13px;
		}

		&-copy {
			flex: 10;
			text-align: left;
		}

		&-title {
			@include font-primary-semi-bold;
			font-size: 11px;
			line-height: 14px;
		}

		&-descr {
			font-size: 10px;
			line-height: 13px;
		}
	}

	&__promo {
		@include font-primary-semi-bold;
		border-bottom: 1px solid $color-charcoal1;
		font-size: 11px;
		line-height: 14px;
		padding: 16px 10px;
		text-align: center;

		a {
			color: inherit;
		}

		i {
			color: $color-green5;
			font-size: 15px;
			margin-right: 5px;
			vertical-align: middle;
		}
	}

	&__instant-match {
		background: $color-ivory2;
		padding: 20px 10px 20px 60px;
		position: relative;

		&-title {
			@include font-primary-bold;
			font-size: 13px;
			line-height: 16px;
			margin-bottom: 3px;
		}

		&-descr {
			@include font-primary-semi-bold;
			font-size: 11px;
			line-height: 14px;
		}

		&::after {
			@include icon-fill;
			color: $color-blue5;
			content: '\e913';
			font-size: 24px;
			left: 30px;
			position: absolute;
			top: 26px;
		}
	}

	&__appt-details {
		padding: 10px;
		text-align: center;

		&-title {
			@include font-primary-bold;
			color: $color-charcoal2;
			font-size: 10px;
			line-height: 13px;
			margin-bottom: 2px;
			text-transform: uppercase;
		}

		&-descr {
			@include font-primary-bold;
			color: $color-green5;
			font-size: 14px;
			line-height: 18px;
		}
	}

	&__cta {
		background: $color-ivory2;
		padding: 10px;
		text-align: center;

		.btn {
			display: block;
			margin: 0;
			padding-left: 30px;
			padding-right: 30px;
			width: 100%;

			&-link {
				background: $color-white;
				border: 1px solid $color-charcoal1;
				border-radius: 4px;
			}
		}
	}
}

.contractors-list-v2 {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;

	&__item {
		margin-bottom: 15px;
	}
}

/**
 * Desktop styles
 */
@include breakpoint-md {
	.contractor-card-v2 {
		padding: 20px 20px 110px;
		position: relative;

		&::after {
			background: $color-ivory2;
			border-top: 1px solid $color-charcoal1;
			bottom: 0;
			content: '';
			display: block;
			height: 90px;
			left: 0;
			position: absolute;
			right: 0;
		}

		&:hover {
			box-shadow: 0 8px 16px 0 rgba($color-black, .1);
		}

		&__header,
		&__body {
			float: left;
			width: 50%;
		}

		&__header {
			border: 0;
			margin: 0;
			padding: 0;

			&::after {
				display: none;
			}

			&-link {
				padding-right: 0;

				&::after {
					display: none;
				}
			}
		}

		&__name {
			font-size: 22px;
			line-height: 27px;
			margin-bottom: 6px;
		}

		&__props {
			font-size: 11px;
			line-height: 14px;
		}

		&__logo {
			height: 120px;
			line-height: 120px;
			width: 120px;
		}

		&__body {
			padding-left: 20px;
		}

		&__rating-views {
			border: 0;
			margin-top: 0;

			&::after {
				display: none;
			}
		}

		&__rating {
			.star-rating {
				&__label {
					font-size: 15px;
				}

				&__stars {
					&,
					&::before,
					&::after {
						font-size: 16px;
						height: 16px;
						line-height: 16px;
					}
				}
			}
		}

		&__rating-cta {
			font-size: 14px;
			line-height: 14px;
			margin-top: 2px;
		}

		&__promo {
			border: 0;
		}

		&__instant-match,
		&__cta {
			background: transparent;
			border: 0;
			bottom: 45px;
			padding: 20px;
			position: absolute;
			transform: translateY(50%);
			width: 50%;
			z-index: 2;
		}

		&__instant-match {
			left: 0;
			padding-left: 70px;

			&::after {
				left: 42px;
			}
		}

		&__cta {
			right: 0;

			.btn-link {
				&:hover,
				&:focus,
				&:active {
					border-color: $color-charcoal2;
				}
			}
		}
	}
}
