// Forms
*:focus {
    outline: none;
}

form {
	margin: 0;
}

label {
	padding: rem-calc(4) 0 rem-calc(8);
	font-size: rem-calc(16);
	line-height: rem-calc(18); 
    font-weight: normal;
	text-decoration: none;
	border-bottom: 0 none;    
    .required {
		font-size: 140%;
		color: #ed3737;
    }
}


.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
	font-size: rem-calc(16);
	line-height: rem-calc(18); 
	margin-left: 0;
	margin-right: 20px;
	input {
		// margin-right: 15px;
	}
}

fieldset,
.fieldset
{
	legend
	{
		background: none;
	}
}

[type='text'],
[type='password'],
[type='date'],
[type='datetime'],
[type='datetime-local'],
[type='month'],
[type='week'],
[type='email'],
[type='number'],
[type='search'],
[type='tel'],
[type='time'],
[type='url'],
[type='color'],
textarea,
select,
// .select2,
// .select2 .select2-selection,
// .select2 .select2-selection .select2-selection__rendered,
// .select2-dropdown .select2-search .select2-search__field
{
	@include form_items_sizes();
	// font-weight: 300;
	-webkit-appearance: none;
    @include border-radius(0px); 
    @include box-shadow(none);

    &:hover, &:focus {
    	@include box-shadow(none);
    }	
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}


select {
	background-position: right 0em center;
	background-size: 6px 6px;

	option {
		color: $black;
	}
}

textarea {
	padding: $form-spacing;
	resize: vertical;
	height: auto;
	line-height: inherit;
}

input[type=checkbox],
input[type=radio] {
	& + label	{
		position: relative;
		padding: 0;
		text-transform: none;
		color: $input-color;
		font-family: inherit;
	}
}

.woocommerce-widget-layered-nav-dropdown {
	position: relative;
}

.select2 {
	margin: 0 0 1rem;
	transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
	border-color: #e1e1e1;
	&.select2-container--open {
		border-color: #000;
	}
	.select2-selection {
		background-color: transparent !important;
		border: none !important;
	}
}

.select2-dropdown {
    z-index: 4;
    border-radius: 0 !important;
    border-width:2px !important; 
}

.form-row,
.form-group,
.form-actions,
.form-row:last-child,
.form-group:last-child,
.form-actions:last-child {
	margin-bottom: 5px;
}
.form-row-wide {
    clear: both;
}
.form-row-first,
.form-row-last {
    width: 48%;

	@include breakpoint(small only) {
		width: 100%;
	}
}
.form-row-first {
	float: left;
}
.form-row-last {
    float: right;
}

#loginModal,
#head_loginModal {
	.form-row-first,
	.form-row-last {
		float: none;
		display: inline-block;
		vertical-align: bottom;		
	}
	.form-row-last {
		margin-left: 10px;
		@include breakpoint(small only) {
			margin-left: 0;
		}
	}
}

.woocommerce-form__label,
.form-row label {
	// display: inline-block;

}
.woocommerce-form__label-for-checkbox,
.form-row label.checkbox {
    padding-bottom: 0;
}
.form-row label .required {
	text-decoration: none;
	border-bottom: 0 none;

}

.login,
.register {
	.login-form-footer {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-box-align: baseline;
		-ms-flex-align: baseline;
		align-items: baseline;	
		
		.lost_password {
			-webkit-box-ordinal-group: 3;
			-ms-flex-order: 2;
			order: 2;
			padding: 0;

			a {
				color: #000;
				font-size: 16px;
				background-image: none !important;
				font-weight: 400;
				@include transition(opacity .3s !important);
				&:hover {
					opacity: .6;
				}
			}
			// margin-bottom: 10px;
		}	

		.woocommerce-form__label-for-checkbox {
			// position: relative;
			-webkit-box-ordinal-group: 2;
			-ms-flex-order: 1;
			order: 1;
			line-height: 1;
			
			span {
				display: inline-block;
				line-height: 1;
			}
		}		
	}

	.form-actions {
		margin-top: rem-calc(10);
		.button {
			width: 100%;
			margin-bottom: 0;
		}
	}

	.button.btn--border{
		width: 100%;
		margin-bottom: 0;		
	}	
}

// OR divider

.bb-login-form-divider {
    position: relative;
    width: 100%;
    margin: 14px 0;
    text-align: center;

	&:before {
	    position: absolute;
	    top: 50%;
	    left: 0;   
	    display: block;
	    content: " ";
	    width: 100%;
	    height: 1px;
	    background: #e1e1e1;
	} 
	span {
	    position: relative;
	    z-index: 10;
	    display: inline-block;
	    font-size: 18px;
	    font-weight: 400;
	    color: #000;
	    padding: 0 19px;
	    text-transform: lowercase;
	    background: #fff;
	}   
}

// Social Login

.barberry-social-login  {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	justify-content:space-between;

	.social-login-btn {
		flex-basis:100%;
		
		margin-right: 5px;
		margin-left: 5px;
		text-align: center;

		&:last-child {
			margin-right: 0;
		}

		a {
			background-color: #333;
			display: block;
			width: 100%;
			height: 100%;
			padding: 15px 10px;
			line-height: 10px;
			vertical-align: middle;

			span.social-login-btn-inner {
				position: relative;
				display: inline-block;
				line-height: 10px;
				// vertical-align: top;

				svg {
					position: absolute;
					left: 0;
					top: -2px;
					width: 16px;
					height: 16px;
					fill: #fff;
					@include breakpoint(450px down) {
						position: relative;
						top: 0;
					}
				}

				span {
					padding-left: 25px;
					display: inline-block;
					color: #fff;
					font-size: 10px;
					line-height: 10px;
					text-transform: uppercase;
					font-weight: 600;	

					@include breakpoint(450px down) {
						display: none;
					}				
				}
			}

			&:hover {
				opacity: 0.8;
			}

			&.login-fb-link {
				background-color:#4267B2;
			}
			&.login-goo-link {
				background-color:#4285F4;
			}
			&.login-vk-link {
				background-color:#45668E;
			}						
		}
	}
}

// Mailchimp

.mc4wp-form  {
	& > div {
	    display: -webkit-box;
	    display: -ms-flexbox;
	    display: flex;
	    -ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	    // justify-content: flex-end;

		input[type='email'] {
			min-width: 250px;
			border-color: #000;
			border-right: none;
			min-height: rem-calc(50);
		}

		input[type='submit'] {
			padding: 0 rem-calc(23);
			min-height: rem-calc(50);
			max-height: rem-calc(50);
			line-height: 4;
		}

	}	
}


// WPForms styles

div.wpforms-container {
	.wpforms-form {
		.wpforms-field-label {
			font-weight: normal;
		}

		input[type=date],
		input[type=datetime],
		input[type=datetime-local],
		input[type=email],
		input[type=month],
		input[type=number],
		input[type=password],
		input[type=range],
		input[type=search],
		input[type=tel],
		input[type=text],
		input[type=time],
		input[type=url],
		input[type=week],
		select,
		textarea {
			border-radius: 0;
			border: 2px solid #e1e1e1;
			padding: inherit;
			@include form_items_sizes();
		}
		textarea:focus,
		select:focus {
			border: 2px solid #e1e1e1;
		}

		button[type=submit] {
			background-color: inherit;
		}
	}
}


