.grp2{
display: grid;
grid-template-columns: 49% 49%;
grid-template-rows: auto;
grid-gap: 30px;
}

.grp3{
display: grid;  
grid-template-columns: repeat(auto-fit, minmax(30%, auto));
grid-template-rows: auto;
grid-gap: 15px;
}

.form{
width:100%;
max-width: 100%;
height: auto;
display: table;
margin: 0 auto;
padding: 10px;
margin-top: 10px;
}	

.form.form_line{
box-sizing: border-box;
}
.form.form_line .group-form{
margin-right: 10px;	
width: 100%;
}

.form > legend{
font-size: 1.4em;
color: #333;
padding: 15px;
margin-bottom: 5px;
font-weight: bold;
}

.group-form{
width: 100%;
height: auto;
margin-bottom: 10px;
box-sizing: border-box;
float: left; 
position: relative;
}

.group-form.auto{
width: fit-content;
padding: 0 10px;	
}

.center{text-align: center;}
.right{text-align: right;}
.left{text-align: left;margin-left: 0;}
.middle{margin-top: 30px;}
.middle button{height: 30px;line-height: 10px;border: 0 !important;}
.middle button i{font-size: 1.3em;}

.w70{
width: 66%;
margin-right: 0.25%;
margin-left: 0.25%;	
}
.w50{
width: 49%;
margin-right: 0.5%;
margin-left: 0.5%;	
}
.w20{width: 19.5%;margin-left: 0.25%;margin-right: 0.25%;}
.w30{width: 32%;margin-right: 0.65%;margin-left: 0.65%;}
.w25{width: 24.5%;margin-right: 0.25%;margin-left: 0.25%;}
.w20{width: 19.5%;margin-right: 0.25%;margin-left: 0.25%;}
.group-form label{
width: 100%;
font-size: 1em;
color: #444;
display: block;
font-weight: bold;
margin-bottom: 5px;	
}
.group-form label.obg{
color: tomato;
font-weight: bold;
}
.group-form label span.campo_invalido{
font-size: 10px;
color: tomato;
float: right;
margin-top: 5px;
margin-right: 5px;	
}
.group-form input[type=checkbox]{
width: 30px;
height: 30px;	
}
.group-form input, .group-form select{
width: 100%;
height: 30px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
padding-left: 5px;	
}
.group-form input[type=radio], .group-form input[type=checkbox]{
width: 25px;
height: 25px;
}

.group-form textarea{
width: 100%;
height: 100px;
resize: none;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
padding: 5px;	
}

.group-form .btnLine{
margin-top: 23px;
padding: 0 15px;	
}
.group-form .btnLine i{font-size: 1.4em;}

.group-form input.input_error i{
color: #f00;	
}

.com_icone input{padding-left: 45px;}
.com_icone i{
background: #ddd;
padding: 11px;
position: absolute;
top: 28px;
left: 2px;
color: #555;
}

.form fieldset{
width: 100%;	
box-sizing: border-box;
padding: 10px 10px;	
border: 1px solid #ccc;
margin-bottom: 10px;
background: #fff;
}
.form fieldset legend{
padding: 0 8px;
font-size: 1.2em;
color: #444;
font-weight: 900;	
}
.form fieldset label{font-size: 0.8em;}
/*Validando inputs com error */
.campo_error label{color: tomato;}
.campo_error input{border: 1px solid tomato;}
.campo_error i{color: tomato;}

.group-form input[type=submit]{
cursor: pointer;
width: 100%;
height: 40px;
font-size: 18px;
text-transform: uppercase;
border: 0 none;
color: #fff;	
}
.group-form button{
 width: fit-content;
 padding: 4px 10px;
 margin-left: 0;
 cursor: pointer; 
 border-radius: 4px;
 border:1px solid #ccc;
}
.group-form button i{width: 30px;}

.groups{	
height: 50px;
}
.groups input{
width: 70%;
}
.groups select{
width: 70% !important;	
}
.groups button{
width: 25%;
height: 30px;
cursor: pointer;
border-radius: 4px;
border: 0 none;
background: #069;
}

.groups button i{color: #fff;font-size: 1.2em;}

/*Configurando estilo dos botoes*/
.btn{
width: fit-content;
height: 30px;
border: 0 none;
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;	
}

.buttons{padding: 4px;border-radius: 4px;color: #fff;}

.primary{background: #337AB7;color: #fff;}
.success{background: #5CB85C;color: #fff;}
.alert{background: #F0AD4E;color: #fff;}
.danger{background: #D9534F;color: #fff;}
.info{background: #5BC0DE;color: #fff;}
.purple{background: #515399;color: #fff;}
.cyano{background: #5BC0DE;color: #fff;}
.tomato{background: tomato;color: #fff;}
.gray{background: #bbb;color: #333;}
.cinza{background: #34495e;color: #fff;}
.btn > a{color: #fff; text-decoration: none;}

.small{height: 30px;padding: 5px 8px;}
.medium{height: 35px; padding: 5px 12px;}
.largue{height: 40px; padding: 6px 20px;}


.chosen-container-single .chosen-single {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0 0 0 8px;
    height: 30px;
}

.chosen-container-single .chosen-single span {
    display: block;
    overflow: hidden;
    margin-right: 26px;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 14px;
}

.group-icons{
 margin: 0 5px;
 border:1px solid #ccc;
 display: flex;
 flex-direction: row;
}
.group-icons i{
width: 30px;
text-align: center;
line-height: 30px;
font-size: 1.3em;
cursor: pointer;
margin: 0;
}
.group-icons input{
width: 100%; 
text-align: left;
float: right;
border-radius:0 !important;
border:0 !important;
border-left: 1px solid #ccc !important;
}

/*Preview imagem unica*/
.container-preview{
 width: 220px;
 height: 150px;
 border:1px solid #ccc;
 border-radius: 4px;
 box-sizing: border-box;
 padding: 4px; 
position: relative;
display: flex;
align-items: center;
justify-content: center;
} 

.container-preview img{
 width: 100%;
 height: 100%; 
 display: none; 
 object-fit: cover;
 object-position: center;
}



label.input_file {
  width: fit-content;
  display: block;
  background-color: indigo;
  color: white;
  padding: 8px;
  font-family: sans-serif;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 5px;
  margin-bottom: 5px;
  user-select: none;
}
#img-container{
width: 120px;
height: 100px;
border: 1px solid #ddd;
margin-top: 5px;
overflow: hidden;
position: relative;
}
#img-container img{
width: 100%;
height: 100%;
display: none;
}
#img-container .remove_image{
position: absolute;
top: 0px;
right: 5px;
color: tomato;
font-size: 1.1em;
padding: 5px;
display: none;
cursor: pointer;
}

#file-chosen{
  margin-left: 0.3rem;
  margin-top: 5px;
  font-family: sans-serif;
}
/*fim imagem preview unica*/


/*Grupo de botoes*/
.group_btns{
width: fit-content; 
display: flex;
flex-direction: row;
height: 40px;
border: 1px solid #ccc;
overflow: hidden;
border-radius: 5px;
}
.group_btns button{
width: fit-content;
height: 40px;
border: 0 none;
cursor: pointer;
padding: 5px 10px;
border-right: 1px solid #ccc;
font-size: .7em;
}
.group_btns button a i{margin-right: 5px;}
.group_btns button a{outline: none;color: #333;padding: 5px;}
.group_btns button.active_btn{background: dodgerblue;}
.group_btns button.active_btn a{color: #fff;}
.group_btns button:last-child{border-right: none;}
/*Fim do grupo de botoes*/



/*Multiplas imagens*/
.images {
  display: flex;
  flex-wrap:  wrap;
  margin-top: 20px;
}
.images .img,
.images .pic {
  flex-basis: 31%;
  margin-bottom: 10px;
  border-radius: 4px;
    border: 1px solid #ddd;
}
.images .img {
  width: 112px;
  height: 93px;
  background-size: cover;
  margin-right: 10px;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;

}
.images .img:nth-child(3n) {
  margin-right: 0;
}
.images .img span {
  display: none;
  text-transform: capitalize;
  z-index: 2;
}
.images .img::after {
  content: '';
  width: 100%;
  height: 100%;
  transition: opacity .1s ease-in;
  border-radius: 4px;
  opacity: 0;
  position: absolute;
}
.images .img:hover::after {
  display: block;
  background-color: #000;
  opacity: .5;
}
.images .img:hover span {
  display: block;
  color: #fff;
}
.images .pic {
  background-color: #F5F7FA;
  align-self: center;
  text-align: center;
  padding: 40px 0;
  text-transform: uppercase;
  color: #848EA1;
  font-size: 12px;
  cursor: pointer;
} 
/*Multiplas imagens*/

/*Box header campos dinamicos*/
.box-header .add_dinamico{
 position: absolute;
 right: 10px;
 top: 2px; 
 color: #333;
}
/*Box header campos dinamicos*/

/*Custom checkbox*/
.checkbox_item .checkbox_wrap{
 position: relative;
 display: block;
 cursor: pointer;
 width: 100px; 
}
.checkbox_item .checkbox_wrap .checkbox_inp{
position: absolute;
top: 0;
left: 0;
opacity: 0;
z-index: 1;
}
.checkbox_item .checkbox_wrap .checkbox_mark{
 display: inline-block;
 position: relative;
 border-radius: 25px;
}

.checkbox_item .checkbox_wrap .checkbox_mark:before,
.checkbox_item .checkbox_wrap .checkbox_mark:after{
content: '';
position: absolute;
transition: all 0.5s ease;
}

/*Modos checkbox*/
/*Estilo basico*/
.checkbox_item.basico .checkbox_wrap .checkbox_mark{
background: #FFCCBC;
 width: 100px;
 height: 50px;
 padding: 2px;
}
.checkbox_item.basico .checkbox_wrap .checkbox_mark:before{
 top: 3px;
 left: 3px;
 width: 44px;
 height: 44px;
 background: #fff;
 border-radius: 50%; 
}

.checkbox_item.basico .checkbox_inp:checked ~ .checkbox_mark{
background: #34bfa3;
}
.checkbox_item.basico .checkbox_inp:checked ~ .checkbox_mark:before{
left: 54px;
}

/*Modo Flat*/
.checkbox_item.flat .checkbox_wrap .checkbox_mark{
border: 5px solid #FFCCBC;
 width: 100px;
 height: 50px;
 padding: 2px;
}
.checkbox_item.flat .checkbox_wrap .checkbox_mark:before{
 top: 2px;
 left: 2px;
 width: 44px;
 height: 36px;
 background: #FFCCBC;
 border-radius: 25px ; 
}

.checkbox_item.flat .checkbox_inp:checked ~ .checkbox_mark{
border-color: #34bfa3;
}
.checkbox_item.flat .checkbox_inp:checked ~ .checkbox_mark:before{
left: 44px;
background: #34bfa3;
}

/*Modo 3*/
.checkbox_item.skew .checkbox_wrap .checkbox_mark{
 width: 100px;
 height: 50px;
 padding: 2px;
 border-radius: 0;
 transform: skew(-10deg);
 overflow: hidden;
}
.checkbox_item.skew .checkbox_wrap .checkbox_mark:before,
.checkbox_item.skew .checkbox_wrap .checkbox_mark:after{
 top: 0px;
 left: 0px;
 width: 100%;
 height: 50px;
 text-align: center;
 line-height: 50px;
 color: #fff;
 font-weight: bold;
}

.checkbox_item.skew .checkbox_wrap .checkbox_mark:before{
 content: attr(data-n);
 background: #FFCCBC;  
}
.checkbox_item.skew .checkbox_wrap .checkbox_mark:after{
 content: attr(data-s);
 background:  #34bfa3;
 left: -100px;
}

.checkbox_item.skew .checkbox_inp:checked ~ .checkbox_mark:after{
left: 0;
}
.checkbox_item.skew .checkbox_inp:checked ~ .checkbox_mark:before{
left:100px;
}

.custom_chk{
 width: fit-content;
 height: 40px;
}

.custom_chk input[type="checkbox"]{
position: relative;
width: 60px;
height: 30px;
-webkit-appearance:none;
background: #c6c6c6;
outline: none;
border-radius: 20px;
box-shadow: inset 0 0 5px #bebcbe;
transition: 0.5s
}
.custom_chk input:checked[type="checkbox"]{
  background: #00c853;
}
.custom_chk input[type="checkbox"]::before{
 content: "";
 position: absolute;
 width: 30px;
 height: 30px;
 background: #fff;
 border-radius: 20px;
 top: 0;
 left: 0;
 box-shadow: 0 2px 5px #bebcbe;
 transition: 0.5s; 
}
.custom_chk input:checked[type="checkbox"]::before{
left:40px;
}



/*Custom input */
.quantity { position: relative;}
.quantity input[type=number]::-webkit-inner-spin-button,
.quantity input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity input[type=number] {
  -moz-appearance: textfield;
}

.quantity input {
  width: 60px;
  height: 42px;
  line-height: 1.65;
  float: left;
  display: block;
  padding: 0;
  margin: 0;
  padding-left: 20px;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  border-radius: 4px;
}

.quantity input:focus {
  outline: 0;
}

.quantity-nav {
  float: left;
  position: relative;
  height: 42px;
}

.quantity-button {
  position: relative;
  cursor: pointer;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  width: 21px;
  text-align: center;
  color: #333;
  font-size: 13px; 
  line-height: 1.5;
  padding: 0;
  background: #FAFAFA;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.quantity-button:active {
  background: #EAEAEA;
}

.quantity-button.quantity-up {
  position: absolute;
  height: 50%;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
  border-radius: 0 4px 0 0;
  line-height: 1.6
}

.quantity-button.quantity-down {
  position: absolute;
  bottom: 0;
  height: 50%;
  border-radius: 0 0 4px 0;
}
/*Fim do codigo que cutomiza o input number*/

@media(max-width: 560px){
.form{width:98%;margin: 0 1%;}	
.w50, .w30, .w70, .w25, .w15{width: 100%;}	


.grp2{
display: grid;
grid-template-columns: 100%;
grid-template-rows: auto;
grid-gap: 0px;
}

.grp3{
display: grid;  
grid-template-columns: 100%;
grid-template-rows: auto;
grid-gap: 5px;
}
}
@media(max-width:400px){
.quantity input {
  width: 50px;
  height: 30px;
  line-height: 1.65;
  float: left;
  display: block;
  padding: 0;
  margin: 0;
  padding-left: 20px;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  border-radius: 4px;
}
.quantity-nav {
  float: left;
  position: relative;
  height: 30px;
}

}