.redux-container-custom_header_builder{
    position: relative;
}
.redux-container-custom_header_builder > .redux_field_th{
    padding: 0px 0px 40px !important;
    font-size: 20px;
}
.redux-container-custom_header_builder .redux-sorter{
    position: relative;
}
.redux-container-custom_header_builder .overlay_header{
    display: none;
}
.redux-container-custom_header_builder .overlay_header.active{
    position: absolute;
    width: 100%;
    height: calc(100% - 60px);
    top: 60px;
    left: 0;
    background: rgba(0,0,0,.65);
    z-index: 34;
    text-align: center;
    color:#fff;
    display: block !important;
}
.redux-container-custom_header_builder .overlay_header.active h2{
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 35;
    text-transform: uppercase;
    font-size: 42px;
    margin: 0;
}   
.redux-container-custom_header_builder .overlay_header.active h2 a{
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
}
.redux-container-custom_header_builder ul {
    background: #F9F9F9;
    border: 1px solid #E3E3E3;
    min-height: 40px;
    padding: 30px 15px 10px;
    width: 145px;
    float: left;
    margin: 0 15px 0 0;
    position: relative;
}
 
.redux-container-custom_header_builder .edit_column{
    position: absolute;
    right: 0;
    top: 0;
    left:0;
    color:#888;
    text-align: center;
    line-height: 30px;
    margin-top: -30px;
}
.redux-container-custom_header_builder .edit_column a{
    color:inherit;
}

.wgl_header_items .wgl_header_column-container{
    display: block;
    padding: 0;
    margin:0;
    background: #fff;
}
.wgl_header_items ul li .edit-item{
    display: none;
}
.wgl_header_items ul li .trash-item{
    display: none;
}
.wgl_header_items .wgl_header_column-container ul{
    outline: none;
    padding-bottom: 5px;
    border: 0;
    margin-bottom: 20px;
    margin-top: 20px;
}
.wgl_header_column-container{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    background: #f5f5f5;
    min-height: 110px;
    width:100%;
    margin: 0 10px;
    padding:30px 15px 15px 15px;
    box-sizing: border-box;
}
.wgl_header_column-container ul{
    width:100%;
    height: 100%;
    box-sizing: border-box;
    padding:0;
    margin:0;
    position: relative;
    padding: 15px;
    background: #fff;
    margin-bottom: -10px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
}
.wgl_header_column-container ul h3{
    opacity:0;
    display: none;
}

.redux-container-custom_header_builder .edit_column .fa{
    cursor: pointer;
}
.wgl_header_row{
    display: flex;
    justify-content: space-between;
}
.wgl_header_row.hide_row{
    min-height: 10px;
    background: #f5f5f5;
}
.wgl_header_row > ul{
    width: 100% !important;
}
.wgl_header_row .wgl_header_row-btn + .wgl_header_column-container{
    margin-left:0 !important;
    padding-left: 15px;
}
.wgl_header_row > .wgl_header_column-container:last-child{
    margin-right:0 !important;
    padding-right: 15px;
}
.redux-container-custom_header_builder ul.filled {
    opacity: .7;
    filter: alpha(opacity=70);
    background: #efecec;
}
.redux-container-custom_header_builder ul li {
    border: 1px solid #4a98cd;
    margin-bottom: 10px !important;
    padding: 7px 10px !important;
    line-height: 32px !important;
    background:#5cabe1;
    overflow: visible;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-align: center;
    color:#fff;
    margin-right: 5px;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    min-width: 120px;
    white-space: nowrap;
    -webkit-flex: 0 1 auto !important;
    -ms-flex: 0 1 auto !important;
    flex: 0 1 auto !important;
    cursor:move;
    position: relative;
    z-index: 5;
}
.redux-container-custom_header_builder ul li .icon_wrapper{
    position: absolute;
    top: -29px;
    left: 50%;
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);    
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease;
    border-radius: 3px 3px 0 0;
    background: rgba(0,0,0,.6);
    line-height: 28px;
}
.redux-container-custom_header_builder ul li .fa{
    margin-left:0;
    cursor: pointer;
    margin-top: -1px;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}
.redux-container-custom_header_builder ul li .icon_wrapper .fa:first-child{
    margin-left: 0;
}
.redux-container-custom_header_builder ul li:hover .icon_wrapper{
    opacity: 1;
    visibility: visible;
}
.redux-container-custom_header_builder ul li .fa.fa-pencil{
    border-right: 1px solid #fff;
}
.redux-container-custom_header_builder ul li .fa + .fa{
    border-radius: 0 5px 5px 0;
}

.redux-container-custom_header_builder ul li:hover{
    background:#4a98cd;
}

.redux-container-custom_header_builder .sortee.ui-sortable-helper{
    background:#5cabe1 !important;
}
.wgl_header_items{
    margin-bottom: 0;
    padding: 0;
}
.wgl_header_items .wgl_header_column-container ul{
    display: block;
}
.wgl_header_items li{
    cursor: pointer !important;
}
.redux-container-custom_header_builder ul li h3 {
    margin: 0 0 10px;
    text-align: center;
    color: #777;
    text-transform: capitalize;
    word-wrap: break-word;
}
.redux-container-custom_header_builder ul li.placeholder {
    height: 48px;
}
.wp-customizer .redux-container-custom_header_builder ul {
    width: 85%;
    margin: 0 0 5px 0;
}
.wgl_header_row{
    clear:both;
    margin-bottom: 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    border: 1px solid transparent;
    margin-bottom: 40px;
}
.wgl_header_row.hide_row .wgl_header_column-container{
    display: none;
}
.wgl_header_row .wgl_arrow:before{
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #888 transparent transparent transparent;
    content: "";
    vertical-align: middle;
    display: inline-block;
}
.wgl_header_row.hide_row .wgl_arrow:before{
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #888 transparent;
}
.wgl_header_row:last-child{
    margin-bottom: 0;
} 

.wgl_header_row:after,.wgl_header_items:after{
    content: '';
    clear: both;
    height: 0;
    display: block;
}
.wgl_header_row > ul{
    width: calc(33% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
}
.wgl_header_row.disabled_row .wgl_header_column-container{
    opacity: .4;
}
.wgl_header_items > ul{
    width: 100%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    background: #f5f5f5;
    min-height: 110px;
    box-sizing: border-box;
    margin:0;
}

.select2-drop{
    z-index: 105001;
}

.redux-container-custom_header_builder .wgl_header_row ul{
    border: 0;
}

#wgl_modal_builder,#wgl_modal_builder_items{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
    max-height: 650px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #5cabe1;
    color: white;
    position: relative;
}
.modal-header h2{
    color: #fff;
}
.modal-body {
    padding: 2px 16px;
    max-height: calc(100vh - 210px);
    overflow: auto;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

table.wgl-item-option{
    width: 100%;
}
table.wgl-item-option tr th{
    width: 30%;
}
.wgl_header_row-btn{
    position: absolute;
    z-index: 1;
    right: 0;  
    bottom: 100%;
}
.wgl_header_row-btn a{
    background: #e6e6e6;
    padding: 4px 15px;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    font-size: 13px;
    margin-left: -1px;
    -webkit-transition: all .1s ease-in-out;
    -o-transition: all .1s ease-in-out;
    transition: all .1s ease-in-out;
    color: #888;
    border-radius: 2px 2px 0 0;
    display: block;
    width:42px;
    box-sizing: border-box;
}
.wgl_header_row-btn div{
    display: inline-block;
    margin-left: 2px;
}

.wgl_header_row.disabled_row .wgl_header_row-btn .wgl_header_row-disabled a{
    color: red;
}
.close-btn{
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 26px;
    height: 28px;
    margin: 0;
    padding: 0 10px 1px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;    
    color: #555;
    border-color: #ccc;
    background: #f7f7f7;
    box-shadow: 0 1px 0 #ccc;
    vertical-align: top;
    position: absolute;
    top: 50%;
    margin-top: -14px;
    right: 16px;
}
.close-btn:hover,
.close-btn:focus{
    background: #fafafa;
    border-color: #999;
    color: #23282d;
}
.close-btn:focus{
    border-color: #5b9dd9;
    box-shadow: 0 0 3px rgba(0,115,170,.8);
}
.trash-item:hover{
    color: #f92245;
}
.trash-item{
    position: relative;
    z-index: 3;
    transition: all .3s ease;
}
.add-item_icon{
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.add_item{
    order: 1;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #c9c9c9;
    cursor: pointer;
    border: none!important;
    border-radius: 5px;
    transition: background-color .5s;
    margin-bottom: 10px;
}
.add_item:hover{
    background-color: #e4e4e4;
    color: #fff;    
}
.add_item a,
.add_item i{
    color: #fff;
}
.add_item a{
    display: block;
    width: 100%;
    height: 100%;
}
.form-table .redux-container-custom_header_builder td{ 
    width: 70%;
}
@media screen and (max-width: 782px) { 
    .form-table .redux-container-custom_header_builder td{ 
        width: 100%;
    }
}