*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

a, a:hover, a:visited, a:active, a:link{color: #0061AA; outline: none;}
a:hover{text-decoration: none;}

div#menu{
    margin: 0 0 10px 0;
    text-align: right;
    height: 40px;
}
div#menu a, div#menu a:visited, div#menu a:active, div#menu a:link, div#menu a:hover{
    background-color: #6bb90d;
    color: #FFFFFF;
    display: block;
    float: right;
    margin: 0 0 0 10px;
    padding: 5px 10px;
    text-decoration: none;
    width: auto;
    border-radius: 0 0 2px 2px;
}
div#menu a:hover{
    background-color: #666;
}

div#header{
    width: 100%;
    min-width: 1200px;
    margin: 0 auto;
    background-color: #61B01D;
    color: #fff;
    height: 100px;

}
div#header-in{
    font-size: 30px;
    line-height: 100px;
    width: 1200px;
    margin: 0 auto;
    /*    background: url(/i/logo.svg) right center no-repeat;*/
    background-size: auto 50%;
}

#wrapper{
    width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 150px;
}

h1{
    font-weight: 500;
    font-size: 32px;
}
h2{
    font-weight: 500;
    font-size: 28px;
}

/*Редактор страницы*/
div#page_editor table {
    width: 1200px;
    max-width: 1200px;
    max-width: 1200px;
    border-collapse: collapse;
}
div#page_editor table td, div#page_editor table th{
    padding: 5px;
    border: solid 1px #EEE;
}
div#page_editor table th{
    text-align: right;
    width: 400px;
}
div#page_editor table th[colspan="2"]{
    text-align: left;
}
div#page_editor textarea{
    width: 95%;
    height: 200px;
}
div#page_editor table tr:nth-child(odd){
    background: #fdfdfd;
}


input, select{
    width: 700px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
}
input[name="sort_id"]{
    width: 100px;
}
input[name="smenu"]{
    width: 20px;
}
input[name="date_publicate"]{
    width: 150px;
}
input[name="new_view"]{
    width: 250px;
    margin-left: 15px;
}
select[name="view_id"]{
    height: 27px;
    padding: 0 10px;
}

.page_img_wrap{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    width: 250px;
    height: 150px;
    background-color: #e2e2e2;
    background-size: cover;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
}

.remove_page_img{
    color: #DB1A21;
    position: absolute;
    right: 2px;
    top: 2px;
    padding: 3px 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.remove_page_img:hover{
    background-color: #DB1A21;
    color: #fff;
}

.page_img_wrap input{
    background-color: rgba(0,0,0,.4);
    padding: 5px 7px;
    color: #fff;
}

#map .title a{
    transition: opacity 0.3s ease;
    /*font-weight: normal;*/
}
.dir a{
    font-weight: normal;
}
#map .title a:hover{
    opacity: 0.75;
    text-decoration: none;
}

/*EMD Редактор страницы*/


/*Вывод спсика  страниц*/
div#map{
    background: #f7f7f7;
    border: solid 1px #ccc;
    padding: 20px;
}
div#map ul{
    margin: 0 0 0 30px;
    padding: 0;
    list-style: none;
}

div#map >ul{
    margin: 0 0 0 0;
}

#map > ul li{
    font-weight: bold;
    font-size: 15px;
}
#map >ul > li  li{
    font-size: 13.4px;
    font-weight: normal;
}
#map >ul > li li li{
    font-size: 12.5px;
    font-weight: normal;
}
#map >ul > li li li li{
    font-size: 12.0px;
}



div#map  ul ul a.green, div#map  ul ul a.red{
    text-transform: none !important;
    font-size: 9px !important;
}


div#map div.title{
    border-bottom: 1px solid #ccc;
    margin: 0 0 0 0;
    padding: 15px;
}


div#map ul ul div.title{
    padding-top: 7px;
    padding-bottom: 7px;
}


a.page_link{
    font-weight: 700;
    color: #0d89b9 !important;
}




div#map div.title > .action_button, div#map div.title > a.action_button:active, div#map div.title > a.action_button:visited, div#map div.title > a.action_button:link{
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 2px 5px 2px 5px;
    text-transform: uppercase;
    text-decoration: none;
    background: #ccc;
    color: #fff;
    font-size: 10px;
}
/*div#map div.title > a:hover{
    background-color: #e2e2e2;
}*/

.title + ul{
    margin: 0 0 35px 30px !important;
}

div#map div.title > a.red ,div#map div.title > a.red:hover, div#map div.title > a.red:active, div#map div.title > a.red:visited, div#map div.title > a.red:link{
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 3px 10px;
    text-transform: uppercase;
    text-decoration: none;
    background: #b91d0d;
    color: #fff;
    font-size: 10px;
}
div#map div.title > a.green ,div#map div.title > a.green:hover, div#map div.title > a.green:active, div#map div.title > a.green:visited, div#map div.title > a.green:link{
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 3px 10px;
    text-transform: uppercase;
    text-decoration: none;
    background: #6bb90d;
    color: #fff;
    font-size: 10px;
    margin-left: 10px;
}
div#map div.title > .action_button ,div#map div.title > .action_button{
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 2px 5px 2px 5px;
    text-transform: uppercase;
    text-decoration: none;
    background: yellow;
    color: #000;
    font-size: 10px;
}





/*div#map div.title:hover{
    background-color: beige;
}*/

div#map div.dir{
    font-size: 10px;
    color:#888;
    margin-top: 5px;
}

div#map div.dir a, div#map div.dir a:hover, div#map div.dir a:active, div#map div.dir a:visited, div#map div.dir a:link{
    color:#333;
}

#page_editor input[type="submit"]{
    height: 46px;
    margin: 0 auto;
    display: block;
    width: 100%;
    font-size: 18px;
    background: #61B01D;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease-in-out;
}

#page_editor input[type="submit"]:hover{
    background-color: #ec6466;
}

#page_editor  input[name="sort_id"]{
    width: 70px;
    text-align: center;
}

#page_editor  input[type="checkbox"]{
    width: 20px;
    height: 20px;
}


#img_load{
    margin-top: 15px;
}

#img_load_title{
    float: left;
    margin-right: 15px;
    padding-left: 10px;
    font-size: 15px;
}
#img_not_load{
    margin-top: 7px;
    font-size: 15px;
    padding-left: 10px;
}

/*END Вывод спсика  страниц*/




/*Товары*/

a.add_cat{
    font-size: 20px;
    text-decoration: none;
}
.add_cat span{
    font-size: 32px;
    position: relative;
    top: 4px;
    transition: all 0.3s ease;
}

.add_cat:hover{
    opacity: .8;
}


.product_edit_wrap{
    /*    display: flex;
            flex-wrap: wrap;
            justify-content: space-between;*/
    margin-top: 30px;
}
.product_edit_item{
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    margin-bottom: 40px;
    width: 48%;
    margin-bottom: 2%;
}

.edit_product_main{
    display: flex;
    justify-content: space-between;
}

.edit_product_left{
    width: 270px;
}
.edit_product_right{
    width: calc(100% - 290px);
}



.load_image{
    width: 272px;
    height: 180px;
    position: relative;
    border: 1px solid #ccc;
    display: flex;
    align-items: flex-end;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.load_image input{
    background-color: #fff;
}



.product_info{
    padding: 20px;
    width: calc(100% - 201px);
}

.product_image{
    width: 35%;
    height: 250px;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
}
.product_name{
    font-size: 20px;
}

.product_section{
    margin-top: 5px;
}
.product_section a{
    color: #666;
    font-size: 15px;
}

.product_extra_sections{
    color: #ccc;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 22px;
}
.product_edit{
    margin-bottom: 6px;
    font-size: 14px;

}
.product_remove a{
    color: #b80000;
    font-size: 14px;
}






*:focus{
    outline: none;  
}



.edit_product{
    position: relative;
    max-width: 1280px;
    padding: 35px;
    background-color: #f9f9f9;
}

.edit_product h2{
    margin-top: 40px;    
}


#save_progect{

    margin: 50px auto 50px;
}


#save_progect  #img_load{
    display: flex;
}
#save_progect #page_img_wrap{
    float: none;
}

.show_product_page{
    position: absolute;
    right: 35px;
    top: 35px;
}


.input_items_flex{
    display: flex;
    margin-left: -20px;
    flex-wrap: wrap;
}
.input_items_flex .input_item{
    margin-left: 20px;
}


.input_item{
    margin: 5px 0 15px;
}

.input_item label{
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}

.input_item input{
    height: 34px;
}

.input_item input{
    width: 100%;
    padding: 2px 10px;
    border: 1px solid #ccc;
    transition: border-color 0.2s ease;
}
.input_item input:hover{
    border-color: rgba(0, 97, 170, .5);
}
.input_item input:focus{
    border-color: #0061AA;
}

.input_item input[type="num"]{
    width: 80px;
}

.input_item select{
    padding: 5px 12px;
    max-width: 100%;
    min-height: 34px;
}

.required_note{
    margin: 37px 0 30px;
}

#img_load_title{
    float: none;
    font-size: 14px;
    font-style: italic;
}

#save_progect button{
    border: none;
    background-color: #0061AA;
    padding: 15px 50px;
    color: #fff;
    position: fixed;
    right: 10px;
    z-index: 100;
    top: 150px;
    transition: .3s all;
}
#save_progect button:hover{
    background-color: #005494;
}

#save_progect button i{
    margin-right: 5px;
    font-size: 18px;
}

.service_section_wrap{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service_section{
    width: 48%;
    margin-bottom: 2%;
}


.service_section_title{
    font-size: 14.5px;
    margin-top: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}


.checkbox_list{
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
}

.checkbox_list label{
    font-size: 14px;
}
.price-block .input_item{
    width: calc(20% - 20px)
}

.price-block .input_item label{
    font-size: 13px;
}

.price-block .input_item{
    margin-top: 10px;
}

.price input[type="text"]{
    width: 100%;
}


/*Messages*/
.success_msg, .error_msg, .attention_msg{
    font-size: 14px;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 20px 30px;
    line-height: 1.5;
    display: inline-block;
    border-radius: 10px;
    font-style: italic;
    font-weight: bold;
}
.success_msg{
    background-color: rgba(16, 181, 27, 0.22);
}
.error_msg{
    background-color: #f9ebeb;
}
.attention_msg{
    background-color: rgba(254,152,1, 0.22);
}

.success_msg:before, .error_msg:before, .attention_msg:before{
    display: block;
    font-weight: 400;
    margin-bottom: 3px;
    font-style: normal;
    font-size: 120%;
    font-weight: normal;

}
.success_msg:before{
    content: 'Всё хорошо!';
}
.error_msg:before{
    content: 'Ошибка!';
}

.attention_msg:before{
    content: 'Важно';
}

.error_msg.hide{
    display: none;
}

/*Messages END*/

input[type=file]{
    font-size: 13px;
}


#show_success_modal, #show_fail_modal{
    position: fixed;
    display: none;
    top: 30%;
    margin-top: 0;
    /* right: 0; */
    /* width: auto; */
    /* margin-left: 0; */
    padding: 16px 40px;
    text-align: center;
    border-radius: 5px;
    font-size: 18px;
    box-shadow: 2px 2px 3px -2px rgba(0,0,0,.5);
    border: none;
    z-index: 90000;
    cursor: pointer;
    left: 50%;
    color: #fff;
    transform: translateX(-50%);
}
#show_success_modal{
    background-color: #51aa00;
}
#show_fail_modal{
    background-color: #bb1f20;
}




.departures td, .departures th{
    padding: 15px 12px;
    border: 1px solid #ccc;
    font-size: 13px;
}
.departures th{
    text-transform: uppercase;
    font-weight: 400;
    text-align: left;
    background-color: rgba(36, 103, 180, 0.15);
}

.departures .active{
    color: #51aa00;
}
.departures .close{
    color: #bb1f20
}

input[type="number"]{
    width: 130px;
}
input[type="date"]{
    width: 180px;
}
label sup{
    color: #bb1f20;
    font-weight: bold;
}

a.edit_departure_go{
    padding: 5px 12px;
    font-size: 11px;
    color: #0061AA;
    border: 1px solid;
    background-color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all .2s ease;
}
a.edit_departure_go:hover{
    background-color: #0061AA;
    color: #fff;
}







/*-----------*/

table.offers td, table.offers th{
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #fff;
}
.add_offer{
    padding: 5px 20px;
    border: 1px solid #ccc;
    background-color: green;
    color: #fff;
    border-radius: 25px;
    display: inline-block;
    margin: 25px 0;
    cursor: pointer;
    font-size: 13px;
}

.remove_offer, .hide_offer{
    display: inline-block;
    padding: 4px 7px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    min-width: 140px;
    text-align: center;
    background-color: #ccc;
    transition: all .2s ease;
}

.remove_offer{
    background-color: #aa2700;
    color: #fff;
    margin-top: 5px;
}
.remove_offer:hover, .hide_offer:hover{
    opacity: .85;
}

.offers tr.hide{
    opacity: .5;
}
.offers tr.remove td{
    background-color: rgba(255,0,0,.4);
}



/*PHOTO OFFER*/
.photo_offer_wrap{
    position: relative;
    width: 160px;
    border: none;
    margin: 25px 0;
}
.photo_offer{
    display: none;
}

.photo_offer_label{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 160px;
    border: 1px solid #ccc;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    /*background-image: url(https://img2.freepng.ru/20180525/wbc/kisspng-computer-icons-question-mark-font-awesome-clip-art-5b084c8a240a46.3267708315272705381476.jpg);*/
    transition: all 0.2s ease;
}
.photo_offer_label:hover{
    border-color: #F19243;
}

.photo_offer_label span{
    width: 100%;
    font-size: 14px;
    background-color: rgba(0,0,0,0.5);
    padding: 0 5px;
    line-height: 1;
    color: #fff;
    display: flex;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    height: 40px;
    position: relative;
    top: 0;
}
.photo_offer_label i{
    line-height: 1;
    font-style: normal;
    margin-right: 5px;
}


.photo_offer_label:hover span{
    background-color: #fbb770;
}

.photo_offer_error{
    display: none;
    margin-top: 20px;
    /*	top: 40px;
            font-size: 13px;
            color: #eb0e0e;
            font-style: italic;*/
}

.remove_photo_offer{
    display: none;
    position: absolute;
    color: #eb0e0e;
    right: 0;
    top: -29px;
    width: 34px;
    cursor: pointer;
    font-size: 15px;
    background-color: rgba(0,0,0, .2);
    padding: 5px 0;
    text-align: center;
    transition: all .2s ease;
}
.remove_photo_offer:hover{
    opacity: .85;
}

.photo_offer_wrap .loader{
    position: absolute;
    display: none;
    left: calc(50% - 32px);
    top: calc(50% - 32px);;
}
/*PHOTO OFFER*/


select[name="accesories[]"]{
    font-size: 14px;
}
select[name="accesories[]"] option{
    cursor: pointer;
    padding: 3px 0;
}
select[name="accesories[]"] option:hover{
    background-color: #f9f9f9;
}



/*LOADER*/
.loader {
    display: none;
    position: relative;
    width: 64px;
    height: 64px;
}
.loader div {
    position: absolute;
    border: 4px solid #fbb770;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.loader div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple {0% {top: 28px;left: 28px; width: 0; height: 0; opacity: 1;}  100% {top: -1px;left: -1px;width: 58px; height: 58px;opacity: 0;}}

/*END LOADER*/



.label_note{
    font-size: 12px;
    display: block;
    color: #999;
}

.characteristics select{
    width: 350px;
}
.characteristics td{
    padding: 5px 15px;
}


table.offers{
    min-width: 100%;
}



.offer_gallery_image option{
    width: 100px;
    background-size: contain;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}

select[name="parent_id"] .level_1,
select[name="section_id"] .level_1
{
    font-weight: bold;
}

.row_params{
    display: flex;
}

.row_params .input_item{
    margin-right: 10px;
}

select[name="feature_id"],
select[name="feature_value"]{
    width: auto;
    margin-right: 10px;
}
