/* ========================================================
	Flat Form with Bootstrap 4
	
	Version:		2.0
	Last change:	03.20.2018
	Author:			David Tovt
	
====[ LAYOUT ]=============================================
	
	- Form
		- Form Label
		- Form Helpers
		- Form Upload
		- Form Select
		- Form - Checkbox, Radio
		- Form Toggle
		- Form Ratings
	- Button
	- Alerts
	- Card
	- Tooltip and Help Icon
	- Cart
	
======================================================== */

/*
	Form
*/

fieldset {
	margin-bottom: 1.5rem;
}

	fieldset legend {
		margin-bottom: 1rem;
		padding-bottom: .5rem;
		font-size: 1.25rem;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}
	
/* Form Label */

label {
	margin: 0;
	font-weight: normal;
}

.control-label {
	display: block;
	padding: .625rem .875rem;
	font-size: .75rem;
	line-height: 1.5;
	font-weight: 400;
	color: #999;
	background: rgba(0, 0, 0, 0.015);
}

.control-label-sm {
	padding: .5rem .625rem;
	font-size: .625rem;
}

.control-label-lg {
	padding: .844rem 1.125rem;
	font-size: .875rem;
}

/* Form Field */

.form-control,
.input-group-text {
	border: 1px solid #ddd;
	-webkit-border-radius: 0;
	   -moz-border-radius: 0;
	        border-radius: 0;
}

.form-control {
	color: #666;
}

.form-control:focus {
	border-color: #4fd0fb;
}

.input-group-text {
	padding-right: .5rem;
	padding-left: .5rem;
	font-size: .875rem;
	color: #ccc;
	background: #fff;
}

	.input-group-text i {
		width: 1.25rem;
	}

.form-control,
.form-control:focus,
.custom-select.is-valid:focus,
.form-control.is-valid:focus,
.was-validated .custom-select:valid:focus,
.was-validated .form-control:valid:focus,
.custom-select.is-invalid:focus,
.form-control.is-invalid:focus,
.was-validated .custom-select:invalid:focus,
.was-validated .form-control:invalid:focus {
	-webkit-box-shadow: none;
	   -moz-box-shadow: none;
	        box-shadow: none;
}

.custom-select.is-valid,
.form-control.is-valid,
.was-validated .custom-select:valid,
.was-validated .form-control:valid,
.custom-select.is-valid:focus,
.form-control.is-valid:focus,
.was-validated .custom-select:valid:focus,
.was-validated .form-control:valid:focus,
.selectric-valid .selectric-label {
	border-color: #0ac964;
}

.custom-select.is-invalid,
.form-control.is-invalid,
.was-validated .custom-select:invalid,
.was-validated .form-control:invalid,
.custom-select.is-invalid:focus,
.form-control.is-invalid:focus,
.was-validated .custom-select:invalid:focus,
.was-validated .form-control:invalid:focus,
.selectric-invalid .selectric-label,
.was-validated label.custom-option input[type="checkbox"]:invalid + .button-checkbox,
.was-validated label.custom-option input[type="radio"]:invalid + .button-radio {
	border-color: #f45858;
}

.was-validated label.custom-option input[type="checkbox"]:invalid + .button-checkbox,
.was-validated label.custom-option input[type="radio"]:invalid + .button-radio {
	background: #fff4f4;
}

/* Form Helpers */

.help-block {
	font-size: .75rem;
	margin: 2px 0 0;
	color: #999;
}

.required-field {
	display: inline-block;
	vertical-align: middle;
	font-size: 2em;
	line-height: 1rem;
	color: #f45858;
}

/* Form Upload */

.custom-file {
	height: auto;
}

	.custom-file .custom-file-input {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		height: auto;
		z-index: -1;
	}
	
	.custom-file .btn {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
	}
	
/* Form - Checkbox, Radio */

.custom-control {
	padding-left: 2rem;
	-webkit-user-select: none;  
	   -moz-user-select: none;    
	    -ms-user-select: none;      
	        user-select: none;
}

	.custom-control-label:before,
	.custom-control-label:after {
		width: 1.2rem;
		height: 1.2rem;
		top: 50%;
		margin-top: -.7rem;
	}

	.custom-control-label:before {
		border: 1px solid #ddd;
		background: #fff;
	}

	.custom-control-input:focus ~ .custom-control-label:before,
	.custom-control-input:active ~ .custom-control-label:before {
		background: #fff;
		-webkit-box-shadow: none;
		   -moz-box-shadow: none;
				box-shadow: none;
	}

	.custom-checkbox .custom-control-label:before {
		-webkit-border-radius: 0;
		   -moz-border-radius: 0;
				border-radius: 0;
	}

	.custom-checkbox .custom-control-input:checked ~ .custom-control-label:before,
	.custom-radio .custom-control-input:checked ~ .custom-control-label:before {
		border-color: #4fd0fb;
		background: #4fd0fb;
	}

/* Form Toggle */

.custom-toggle {
	position: relative;
	-webkit-user-select: none;  
	   -moz-user-select: none;    
	    -ms-user-select: none;      
	        user-select: none;
}

.custom-toggle:before,
.custom-toggle:after {
	position: absolute;
	top: 50%;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: -.65rem;
	font-size: .5rem;
	line-height: 1.2rem;
	text-align: center;
	color: #999;
	z-index: 1;
}

.custom-toggle:before {
	content: attr(data-on);
	left: 0;
}

.custom-toggle:after {
	content: attr(data-off);
	left: 1.2rem;
	margin-left: -1px;
}

	.custom-toggle-input {
		position: absolute;
		z-index: -1;
		opacity: 0;
	}
	
	.custom-toggle-btn {
		position: absolute;
		top: 50%;
		left: 0;
		width: 2.4rem;
		height: 1.2rem;
		margin-top: -.7rem;
		border: 1px solid #ddd;
	}
	
	.custom-toggle-btn:after {
		position: absolute;
		content: "";
		top: -1px;
		left: -1px;
		width: 1.2rem;
		height: 1.2rem;
		z-index: 2;
		background: #ddd;
		-webkit-transition: all .3s;
		   -moz-transition: all .3s;
		        transition: all .3s;
	}
	
	.custom-toggle-input:checked + .custom-toggle-btn {
		border-color: #4fd0fb;
	}

	.custom-toggle-input:checked + .custom-toggle-btn:after {
		left: 1.2rem;
		background: #4fd0fb;
	}
	
	.custom-toggle-label {
		position: relative;
		padding-left: 3.2rem;
		z-index: 2;
	}
	
	.custom-radio .custom-toggle-btn,
	.custom-radio .custom-toggle-btn:after {
		-webkit-border-radius: 1rem;
		   -moz-border-radius: 1rem;
				border-radius: 1rem;
	}
	
.custom-toggle-inline {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	margin-right: 1rem;
}

/* Form Ratings */

.rating {
	position: relative;
}

	.rating .rating-wrapper {
		display: inline-block;
		overflow: hidden;
		vertical-align: middle;
	}
	
		.rating .rating-wrapper > input {
			position: absolute;
			width: 0;
			height: 0;
			opacity: 0;
			z-index: -1;
		}
		
		.rating .rating-wrapper > label {
			float: right;
			padding-right: 2px;
			padding-left: 2px;
			color: #ccc;
			cursor: pointer;
		}
		
		.rating.rating-sm .rating-wrapper > label   { font-size: 0.8rem; }
		.rating .rating-wrapper > label             { font-size: 1.2rem; padding: .6rem .2rem; }
		.rating.rating-lg .rating-wrapper > label   { font-size: 1.6rem; }
		
		.rating.star .rating-wrapper > input:checked ~ label    { color: #fcc54e; }
		.rating.star .rating-wrapper > input:hover ~ label      { color: #ecb54e; }
		
		.rating.heart .rating-wrapper > input:checked ~ label   { color: #f45858; }
		.rating.heart .rating-wrapper > input:hover ~ label     { color: #d43838; }
	
	.rating .control-label {
		display: inline-block;
		vertical-align: middle;
	}
	
/*
	Buttons
*/

button:focus {
	outline: none;
}

.btn.focus,
.btn:focus,
.btn:not(:disabled):not(.disabled).active:focus,
.btn:not(:disabled):not(.disabled):active:focus,
.show > .btn.dropdown-toggle:focus {
	-webkit-box-shadow: none;
	   -moz-box-shadow: none;
	        box-shadow: none;
}

.btn {
	position: relative;
	overflow: hidden;
	z-index: 1;
	-webkit-border-radius: 0;
	   -moz-border-radius: 0;
	        border-radius: 0;
	-webkit-transition: all .3s;
	   -moz-transition: all .3s;
	        transition: all .3s;
}

.btn,
.btn:focus,
.btn:active,
.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled):hover {
	background: transparent;
}

.btn:before {
	position: absolute;
	content: '';
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	-webkit-transition: all .3s;
	   -moz-transition: all .3s;
	        transition: all .3s;
}

.btn:not(:disabled):not(.disabled):hover:before {
	top: 4px;
	right: 4px;
	bottom: 4px;
	left: 4px;
	opacity: .2;
}

.btn.disabled,
.btn:disabled {
	opacity: .4;
}

/* Default */
.btn-default,
.btn-default:not(:disabled):not(.disabled):active {
	color: #fff;
}
.btn-default:before {
	background: #ddd;
}
.btn-default,
.btn-default:not(:disabled):not(.disabled):hover,
.btn-default:not(:disabled):not(.disabled):active:hover,
.btn-default:not(:disabled):not(.disabled):active,
.btn-default.disabled,
.btn-default:disabled {
	border-color: #ddd;
}
.btn-default:not(:disabled):not(.disabled):hover,
.btn-default:not(:disabled):not(.disabled):active:hover {
	color: #999;
}

/* Primary */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
	color: #fff;
}
.btn-primary:before {
	background: #009EDB;
}
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):active:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.disabled,
.btn-primary:disabled {
	border-color: #009EDB;
}
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):active:hover {
	color: #0f9fcf;
}

/* Success */
.btn-success,
.btn-success:not(:disabled):not(.disabled):active {
	color: #fff;
}
.btn-success:before {
	background: #50f29c;
}
.btn-success,
.btn-success:not(:disabled):not(.disabled):hover,
.btn-success:not(:disabled):not(.disabled):active:hover,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success.disabled,
.btn-success:disabled {
	border-color: #50f29c;
}
.btn-success:not(:disabled):not(.disabled):hover,
.btn-success:not(:disabled):not(.disabled):active:hover {
	color: #0ac964;
}

/* Info */
.btn-info,
.btn-info:not(:disabled):not(.disabled):active {
	color: #fff;
}
.btn-info:before {
	background: #b2ade4;
}
.btn-info,
.btn-info:not(:disabled):not(.disabled):hover,
.btn-info:not(:disabled):not(.disabled):active:hover,
.btn-info:not(:disabled):not(.disabled):active,
.btn-info.disabled,
.btn-info:disabled {
	border-color: #b2ade4;
}
.btn-info:not(:disabled):not(.disabled):hover,
.btn-info:not(:disabled):not(.disabled):active:hover {
	color: #8078cc;
}

/* Warning */
.btn-warning,
.btn-warning:not(:disabled):not(.disabled):active {
	color: #fff;
}
.btn-warning:before {
	background: #ecc54e;
}
.btn-warning,
.btn-warning:not(:disabled):not(.disabled):hover,
.btn-warning:not(:disabled):not(.disabled):active:hover,
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning.disabled,
.btn-warning:disabled {
	border-color: #ecc54e;
}
.btn-warning:not(:disabled):not(.disabled):hover,
.btn-warning:not(:disabled):not(.disabled):active:hover {
	color: #c19716;
}

/* Danger */
.btn-danger,
.btn-danger:not(:disabled):not(.disabled):active {
	color: #fff;
}
.btn-danger:before {
	background: #f45858;
}
.btn-danger,
.btn-danger:not(:disabled):not(.disabled):hover,
.btn-danger:not(:disabled):not(.disabled):active:hover,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger.disabled,
.btn-danger:disabled {
	border-color: #f45858;
}
.btn-danger:not(:disabled):not(.disabled):hover,
.btn-danger:not(:disabled):not(.disabled):active:hover {
	color: #ab0505;
}

/* Icon Button */

.btn-with-icon {
	padding-left: 2.3rem;
}

.btn-sm.btn-with-icon {
	padding-left: 1.85rem;
}

.btn-lg.btn-with-icon {
	padding-left: 2.9rem;
}

.btn-with-icon:hover,
.btn-with-icon:focus {
	background: transparent;
}

.btn-with-icon,
.btn-with-icon i {
	color: #fff;
}

.btn-with-icon i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 2.3rem;
	line-height: 2.3rem;
	-webkit-transition: all .3s;
	   -moz-transition: all .3s;
	        transition: all .3s;
}

.btn-sm.btn-with-icon i {
	width: 1.85rem;
	line-height: 1.85rem;
}

.btn-lg.btn-with-icon i {
	width: 2.9rem;
	line-height: 2.9rem;
}

.btn-facebook,
.btn-facebook i     { background: #3b5a9a; }
.btn-facebook,
.btn-facebook:hover,
.btn-facebook:focus { border-color: #3b5a9a; }
.btn-facebook:hover,
.btn-facebook:focus { color: #3b5a9a; }

.btn-twitter,
.btn-twitter i      { background: #29a9e1; }
.btn-twitter,
.btn-twitter:hover,
.btn-twitter:focus  { border-color: #29a9e1; }
.btn-twitter:hover,
.btn-twitter:focus  { color: #29a9e1; }

.btn-google,
.btn-google i       { background: #df4b38; }
.btn-google,
.btn-google:hover,
.btn-google:focus   { border-color: #df4b38; }
.btn-google:hover,
.btn-google:focus   { color: #df4b38; }


/*
	Alerts
*/

.alert {
	-webkit-border-radius: 0;
	   -moz-border-radius: 0;
	        border-radius: 0;
}

.alert-default,
.alert-default .alert-link  { color: #999; border-color: #999; }
.alert-default              { background: #f9f9f9; }

.alert-success,
.alert-success .alert-link  { color: #0ac964; border-color: #0ac964; }
.alert-success              { background: #cafbe1; }

.alert-info,
.alert-info .alert-link     { color: #7088cc; border-color: #7088cc; }
.alert-info                 { background: #d8e6f7; }

.alert-warning,
.alert-warning .alert-link  { color: #c19716; border-color: #c19716; }
.alert-warning              { background: #f9edca; }

.alert-danger,
.alert-danger .alert-link   { color: #ab0505; border-color: #ab0505; }
.alert-danger               { background: #fccdcd; }

	.alert .alert-link {
		text-decoration: underline;
		font-weight: 400;
	}
	
	.alert .alert-link:hover {
		text-decoration: none;
	}
	
	
/*
	Card
*/

.card-form {
	border: 0;
}

.card-form,
.card-form .card-header,
.card-form .card-footer {
	-webkit-border-radius: 0;
	   -moz-border-radius: 0;
	        border-radius: 0;
}

	.card-form .card-header {
		position: relative;
		padding: 1.25rem;
		text-align: center;
		border-bottom: 5px solid #009EDB;
		color: #ecfaff;
		background: #009EDB;
	}
	
		.card-form .card-header a {
			color: #fff;
			text-decoration: underline;
		}
		
		.card-form .card-header a:hover {
			text-decoration: none;
		}
		
		.card-form .card-header p {
			margin: 0;
		}
	
		.card-form .card-header .title {
			position: relative;
			margin-bottom: 1rem;
			font-weight: 900;
			color: #fff;
			text-shadow: 0 5px 0 rgba(0, 0, 0, 0.05);
		}
		
			.card-form .card-header .title:before {
				position: absolute;
				content: '';
				bottom: -.4rem;
				left: 50%;
				width: 30px;
				height: 0;
				margin-left: -1rem;
				border-bottom: 1px solid rgba(100%, 100%, 100%, 0.3);
			}
	
	.card-form .card-body {
		background: #fcfcfc;
	}
	
	.card-form .card-footer {
		border-top: 0;
		font-size: .75rem;
		color: #666;
		border-top: 1px solid #f3f3f3;
		background: #fcfcfc;
	}

/*
	Tooltip and Help Icon
*/

.tooltip {
	text-transform: none;
}

.tooltip.in {
	opacity: 0.7;
}

.fa.help-icon {
	font-size: .875rem;
	color: #4fd0fb;
	cursor: help;
	pointer-events: auto;
}

/*
	Cart
*/

.cart-steps {
	margin-bottom: 2rem;
	color: #999;
}

	.cart-steps ul {
		position: relative;
		overflow: hidden;
		margin-bottom: 0;
		padding: 0;
		list-style: none;
		text-align: center;
		z-index: 0;
	}
	
		.cart-steps li {
			padding-top: 0;
			padding-bottom: .5rem;
			line-height: .875rem;
		}
	
		.cart-steps li:after {
			position: absolute;
			content: '';
			top: 2.5rem;
			left: 0;
			right: 0;
			border-bottom: 1px solid #eee;
		}
		
		.cart-steps li:before {
			position: absolute;
			content: '';
			top: 2.5rem;
			left: 50%;
			margin-left: -5px;
			margin-top: 1px;
			border-top: 5px solid #eee;
			border-left: 5px solid transparent;
			border-right: 5px solid transparent;
		}
		
			.cart-steps li span {
				display: block;
				width: 2.5rem;
				height: 2.5rem;
				margin: 0 auto .75rem;
				line-height: 2.5rem;
				font-size: 1.25rem;
				font-weight: 700;
				color: #fff;
				background: #eee;
			}
		
		.cart-steps li.active {
			color: #333;
			border-color: #4fd0fb;
		}
		
		.cart-steps li.active:after {
			border-color: #4fd0fb;
		}
		
		.cart-steps li.active:before {
			border-top-color: #4fd0fb;
		}
		
			.cart-steps li.active span {
				background: #4fd0fb;
			}

.product-list li {
	align-items: center;
	margin: 0;
	padding-top: .5rem;
	padding-bottom: .5rem;
}

.product-list li:nth-child(even) {
	background: #fbfbfb;
}

.price-list {
	margin-bottom: 2rem;
	padding: 1rem 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

	.price-list ul {
		margin-bottom: 0;
	}