@import "variables";

//
#modal-stripe {
	.modal-dialog .modal-content {
		background: #f5f7fa;
	}
}

#stripe-payment-form {
	@media(min-width: 768px){
		padding: 36px 64px;
	}
	.spf-card-image {
		position: relative;
		max-width: 250px;
		margin: 0 auto;
		//margin-bottom: 24px;
		img {
			display: block;
			width: 100%;
		}
		.front { display: block; }
		.back { display: none; }

		.brand {
			position: absolute; top: 12%; right: 8%;
			img {
				width: auto;
				max-width: 80px;
				max-height: 28px;
			}
		}

		.hl {
			outline: 2px solid #2db92d;
			position: absolute;
			display: none;
			&.n {
				top: 51%; left: 8%; right: 7%;
				height: 16%;
				display: block;
			}
			&.e {
				top: 66%; left: 40%; right: 38%;
				height: 12%;
				display: block;
			}
			&.c {
				top: 37%; left: 60%; right: 24%;
				height: 17%;
				display: block;
			}
		}

		&.inverted {
			.front { display: none; }
			.back { display: block; }
		}
	}
	.spf-label {
		display: block;
		margin-bottom: 12px;
		font-size: 16px;
		font-weight: bold;
		color: #0D61AB;
	}
	.spf-filed {
		position: relative;
		margin-bottom: 16px;
		& > .fa-lock {
			position: absolute; top: 2px; right: 100%;
			display: none;
			margin-right: 12px;
			font-size: 24px;
			line-height: 36px;
			color: #7e93b2;
			@media(min-width: 768px){
				display: block;
			}
		}
	}
	.spf-card {
		@media(min-width: 576px){
			background: $white;
			padding: 12px;
			box-shadow: 0 2px 4px 0 rgba(0,0,0,0.15);
			@include border-radius(3px);
		}
		.field-label {
			margin-bottom: 4px;
			font-size: 14px;
			@media(min-width: 576px){
				display: none;
			}
		}
		.field {
			@media(max-width: 575px){
				background: $white;
				padding: 12px;
				box-shadow: 0 2px 4px 0 rgba(0,0,0,0.15);
				@include border-radius(3px);
				margin-bottom: 16px;
			}
		}

		.spf-card__number {
			float: left;
			width: calc(100% - 100px);
			@media(max-width: 575px){
				width: 100%;
			}
		}
		.spf-card__date {
			float: left;
			width: 60px;
			@media(max-width: 575px){
				width: 50%;
				padding-right: 8px;
			}
		}
		.spf-card__cvc {
			float: left;
			width: 40px;
			@media(max-width: 575px){
				width: 50%;
				padding-left: 8px;
			}
		}

		.has-error {
			.field-label {
				color: $red;
			}
		}
	}
	.spf-confidential {
		position: relative;
		margin-top: 24px;
		text-align: center;
		span {
			position: relative;
			display: inline-block;
			padding-left: 24px;
			line-height: 1.25;
			.fa-lock {
				position: absolute; top: 50%; left: 0;
				display: block;
				margin-top: -18px;
				font-size: 24px;
				line-height: 36px;
				color: #7e93b2;
			}
		}
		@media (max-width: 575px){
			text-align: left;
		}
	}
	.spf-button {
		margin-top: 24px;
		text-align: center;
		.btn {
			height: auto;
			padding: 8px 16px 10px;
			font-size: 16px;
			line-height: 1.5;
		}
	}
}
#stripe-card-element {}
#stripe-card-errors {
	color: $red;
}

//
/*
.StripeElement {
	box-sizing: border-box;
	height: 40px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: white;
	box-shadow: 0 1px 3px 0 #e6ebf1;
	-webkit-transition: box-shadow 150ms ease;
	transition: box-shadow 150ms ease;
}
.StripeElement--focus {
	box-shadow: 0 1px 3px 0 #cfd7df;
}
.StripeElement--invalid {
	border-color: #fa755a;
}
.StripeElement--webkit-autofill {
	background-color: #fefde5 !important;
}
*/
