/* ========================================================
	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 {
	
	-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: #999;
	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 - 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 {
		
		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;
	}
	
/*
	Buttons
*/

button:focus {
	outline: none;
}

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

#BGJ_form .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;
}

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

#BGJ_form .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;
}

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

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


#BGJ_form .btn-primary,
#BGJ_form .btn-primary:not(:disabled):not(.disabled):active {
	color: #fff;
}
#BGJ_form .btn-primary:before {
	background: #4fd0fb;
}
#BGJ_form .btn-primary,
#BGJ_form .btn-primary:not(:disabled):not(.disabled):hover,
#BGJ_form .btn-primary:not(:disabled):not(.disabled):active:hover,
#BGJ_form .btn-primary:not(:disabled):not(.disabled):active,
#BGJ_form .btn-primary.disabled,
#BGJ_form .btn-primary:disabled {
	border-color: #4fd0fb;
}
#BGJ_form .btn-primary:not(:disabled):not(.disabled):hover,
#BGJ_form .btn-primary:not(:disabled):not(.disabled):active:hover {
	color: #0f9fcf;
}

/* Success */
#BGJ_form .btn-success,
#BGJ_form .btn-success:not(:disabled):not(.disabled):active {
	color: #fff;
}
#BGJ_form .btn-success:before {
	background: #28a745;
}
#BGJ_form .btn-success,
#BGJ_form .btn-success:not(:disabled):not(.disabled):hover,
#BGJ_form .btn-success:not(:disabled):not(.disabled):active:hover,
#BGJ_form .btn-success:not(:disabled):not(.disabled):active,
#BGJ_form .btn-success.disabled,
#BGJ_form .btn-success:disabled {
	border-color: #50f29c;
}
#BGJ_form .btn-success:not(:disabled):not(.disabled):hover,
#BGJ_form .btn-success:not(:disabled):not(.disabled):active:hover {
	color: #28a745;
}
/* Warning */
#BGJ_form .btn-warning,
#BGJ_form .btn-warning:not(:disabled):not(.disabled):active {
	color: #fff;
}
#BGJ_form .btn-warning:before {
	background: #ecc54e;
}
#BGJ_form .btn-warning,
#BGJ_form .btn-warning:not(:disabled):not(.disabled):hover,
#BGJ_form .btn-warning:not(:disabled):not(.disabled):active:hover,
#BGJ_form .btn-warning:not(:disabled):not(.disabled):active,
#BGJ_form .btn-warning.disabled,
#BGJ_form .btn-warning:disabled {
	border-color: #ecc54e;
}
#BGJ_form .btn-warning:not(:disabled):not(.disabled):hover,
#BGJ_form .btn-warning:not(:disabled):not(.disabled):active:hover {
	color: #c19716;
}


#BGJ_form .input-group-text,#BGJ_form .form-control{font-size:14px;}
#BGJ_form .form-control.is-invalid, 
#BGJ_form .was-validated .form-control:invalid{background:none;}

#BGJ_form .required-field {
  color: #f45858;
}

#BGJ_form .new-control-label {
	width: 125px;
	display: block;
	padding: .625rem .875rem;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	color: #000;
	background: #f3f4f5;
	text-align: center;
	border-radius: 4px;
}

#BGJ_form .nnew-control-label {
	width: 76px;
	display: block;
	padding: .625rem .875rem;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 400;
	color: #000;
	background: #f3f4f5;
	text-align: center;
	border-radius: 4px;
}

#BGJ_form .btn-primary.active {
    border-color: #fcdfdf;
	background-color: #feefef;
	color:#f26161;
	position: static;
}

.img-preview{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.img-preview-content{
    display: flex;
    width: 100%;
    height: 100%;
    color: #fff;
    justify-content: center;
    align-items: center;
}

.img-preview-image{
	cursor: pointer;
    transition: transform 0.3s;
}

.img-preview__close{
	position: absolute;
    top: -40px;
    right: 0px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.2s;
}

.wap_img-preview__close{
	position: absolute;
    top: 115px;
    right: -40px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.2s;
	clip-path: inset(50% 0 0 0); 
}

.img-preview__close-icon{
	position: absolute;
    top: 46px;
    left: 16px;
    font-size: 16px;
}

.wap_img-preview__close-icon{
	position: absolute;
    top: 115px;
    right: -40px;
    font-size: 16px;
}

.img-preview__controller{
	position: absolute;
    bottom: 10%;
    left: 50%;
    display: flex;
    width: 260px;
    height: 34px;
    padding: 0 22px;
    margin-left: -139px;
    background: rgba(109, 109, 109, 0.6);
    border-radius: 22px;
    justify-content: center;
}

.img-preview__controller-item{
	display: flex;
    height: 100%;
    padding: 0 9px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

#tangjin_content input:invalid,
#syuvmj_content input:invalid,
#jitu_content input:invalid,
#chujiao_content input:invalid,
#fudiao_content input:invalid,
#tucheng_content input:invalid{
	border-color: #f45858;
}

#BGJ_form .wap-new-control-label {
	width: 117px;
	display: block;
	padding: .625rem .875rem;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
	color: #000;
	background: #f3f4f5;
	text-align: center;
	border-radius: 4px;
}

.new-circle{
	width: 152px;
	height: 80px;
	border: 2px solid #000;
	border-radius: 50%;
	padding: 10px;
	display: flex;
	justify-content: center; /* 水平居中 */
	align-items: center; /* 垂直居中 */
	color: #000;
	font-size: 16px;
	background-color: #5ac2ff;
}

.wrapper {
    display: flex;
    align-items: stretch;
}
 
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #7386D5;
    color: #fff;
    transition: all 0.3s;
}
 
#sidebar.active {
	margin-left: -250px;
}

#sidebar .sidebar-header {
	padding: 20px;
	background: #6d7fcc;
}

#sidebar ul.components {
	padding: 20px 0;
	border-bottom: 1px solid #47748b;
}

#sidebar ul p {
	color: #fff;
	padding: 10px;
}

#sidebar ul li a {
	padding: 10px;
	font-size: 1.1em;
}