// sass-lint:disable class-name-format no-qualifying-elements id-name-format

#adminmenu .wp-submenu a[href='edit.php?post_type=ctct_forms&page=ctct_options_connect'] {
	color: $color-light-green;
}

//--------------------------------------------------------------
// Connect/Disconnect Page
//--------------------------------------------------------------

.wrap.ctct_options_connect {
	box-sizing: border-box;

	* {
	  box-sizing: border-box;
	}
	margin: 35px auto 0; 
	padding: 35px;
	@include wider-than('small') {
	  margin: 55px auto 0;
	} 
	max-width: 850px;
	position: relative;
	background-color: $color-white;
	border: 1px solid $color-silver;
	border-radius: 8px;
	box-shadow: $shadow_lg;
	text-align: center;
	z-index: 1;

	&.text-left{
		text-align: left;
	}

	&::before{
		width: 46px;
		height: 46px;
		position: absolute;
		left: 50%;
		top: -23px;
		margin-left: -23px;
		display: block;
		border-radius: 100%;
		content: '';
		z-index: -1;
		border-top: 1px solid $color-silver;
		background: $color-white url( ../images/ctct-icon-2x.png ) no-repeat center 45%;
	} 
 
	h2{
	  font-size: 24px;
	  font-weight: 700;
	  margin: 0 0 15px;
	  padding: 0;

	  + p {
		 font-size: 16px;
		 margin: 0 0 25px;
		 padding: 0 10% 25px;
		 position: relative;

		 &::after{
			position: absolute;
			content: '';
			height: 1px;
			width: 50px;
			left: 50%;
			bottom: 0;
			margin-left: -25px;
			background-color: $color-silver;
		 }
	  }
	} 

	.ctct-connected-wrap{
		padding: 45px 35px;
		background-color: $color-lighter-gray;
		border-radius: $radius;
	}
	
	.ctct-call-to-actions{
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		justify-content: space-between;

		&--item {
			width: 100%;
			margin: 0 0 25px;
			@include wider-than('small') {
				width: calc(50% - 5px);
			}
			padding: 30px 25px 25px;
			background-color: $color-lighter-gray;
			display: flex;
			justify-content: center;
			flex-wrap: wrap;
			border-radius: 6px;
			border: 1px solid $color-light-gray;	
			transition: all 0.15s ease;

			&:hover{
				box-shadow: $shadow_lg;
			}

			&.connect-account{
				border-color: #d1dfe8;
				background-color:#f5faff;

				&:hover{
					border-color: #90afc3;
				}
			}		

			&.no-account{
				border-color: #e2d9c4;
				background-color:#fff8e9;

				&:hover{
					border-color: #c7ba9a;
				}
			}	

			p{
				margin-bottom: 15px;
				line-height: 1.6;
				padding: 0 5px;
			}	
		}
	}

	h3 {
		font-size: 16px;
		font-weight: 700;
		line-height: 1.55;
		margin: 0 0 10px;
	}

	p {
		color: $color-modal-alt-text;
		font-size: 14px;
		margin-top: 0;

		&.small {
			color: $color-light-silver;
			font-size: 12px;
			margin: 0 auto;
			padding: 0 10%;
			line-height: 1.75;
			text-align: center;
		}
	}
	
	hr{
		margin: 35px 0;
	}

	.button.ctct-button {
		border-radius: 4px;
		color: $color-prussian-blue;
		font-size: 16px;
		font-weight: 600;
		height: auto;
		line-height: 1;
		margin: 25px 0 0;
		min-width: 180px;
		padding: 14px 30px;
		align-self: flex-end;
		width: 100%;
		transition: all 0.15s ease;

		&.button-orange {
			background-color: $color-chrome-yellow;
			border: 1px solid darken($color-chrome-yellow, 10%);
			color: $color-white;

			&:hover,
			&:focus {
				color: $color-white;
				background-color: lighten($color-chrome-yellow, 10%);
			}
		}

		&.button-blue {
			background-color: $color-prussian-blue;
			border: 1px solid darken($color-prussian-blue, 10%);
			color: $color-white;

			&:hover,
			&:focus {
				color: $color-white;
				background-color: lighten($color-prussian-blue, 10%);
			}
		}
	}
}


// Connection Details

.ctct-connected-wrap{

	.ctct-connection-details{
		display: flex;
		text-align: left;
		margin: 10px 0 0;

		> p,
		form{
			padding: 0 10px;
			width: 50%;
			text-align: left;
			display: flex;
			align-items: center;
			margin: 0;

			&:not(form):first-of-type{
				text-align: right;
			}

			input{
				position: relative;
				top: 2px;
			}
		}

		p{
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;

			&.ctct-label{
				justify-content: flex-end;
			}
		}
	}
}

// Getting Started/ Next Steps

.ctct-connected-next-step{
	text-align: left;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	width: 100%;

	p{
		margin: 0 0 15px;
	}

	> div{
		width: 100%;
		@include wider-than('small') {
			width: calc(50% - 10px);
		}
	}

	.ctct-video{
		margin-bottom: 15px;
		@include wider-than('small') {
			margin-bottom: 0;
			padding-right: 5px;
		}

		.wistia_embed{
			max-width: 100%;
			border-radius: $radius;
			overflow: hidden;
		}
	}
}


// Connect to GA

.ctct-connected-opt-in{
	display: none;
	width: 100%;
	text-align: left;

	.ctct-connect-ga-optin{
		display: flex;
		flex-wrap: nowrap;
		padding: 15px 0 0;

		.button{
			text-align: center;
			margin: 0 10px 0 0;
			width: auto;
		}
	}
}

.ctct-error {
	background: none !important;
	border: 1px solid $color-red;
	border-radius: $radius;
	box-shadow: none !important;
	display: inline-block;
	padding: 15px;
	margin: 0 0 25px 0 !important;

	p {
		color: $color-red !important;
	}

}
