.clearfix:after,
.clearfix:before {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

#sfm-header{
    background: #48a3ff;
    padding: 40px 40px 0;
    border-radius: 3px 3px 0 0;
    position: relative;
    overflow: hidden;
}

#sfm-header h3{
    margin: 0 0 40px;
    color: #FFF;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: bold;
}

#sfm-tab-wrapper a.sfm-tab {
    display: inline-block;
    outline: 0;
    box-shadow: none;
    color: #FFF;
    padding: 18px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255, 255, 255, .2);
    margin-right: 15px;
    position: relative;
}
#sfm-tab-wrapper a.sfm-tab img {
    width: 120px;
    position: absolute;
    left: -10px;
    top: -12px;
}

.sfm-tab-wrapper {
    position: relative;
    z-index: 99999;
}

.upgrade-pro-banner {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    bottom: 0;
    opacity: 1;
}

.upgrade-pro-banner img {
    height: 100%;
    width: auto;
}

#sfm-tab-wrapper a.sfm-tab i{
    margin-right: 6px;
}

#sfm-tab-wrapper a.sfm-tab.sfm-tab-active{
    background: #FFF;
    color: #23282d;
}

.sfm-form-page{
    display: none;
}

.sfm-form-page.sfm-active{
    display: block;
}

#sfm-form-wrap{
    background: #FFF;
    padding: 20px 40px 40px;
}

#sfm-form-wrap img{
    max-width: 100%;
}

.sfm-button-repeater .form-table{
    background: #EEE;
    padding: 20px;
    margin-bottom: 20px;
}

.form-row{
    display: flex;
    margin: 20px 0 0;
}

.form-flex{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.form-row label.form-label{
    display: block;
    margin-bottom: 5px;
    width: 160px;
}

.form-row .form-field {
    flex-grow: 1;
}

.form-description{
    font-size: 13px;
    font-style: italic;
    margin: 5px 0 0;
}

.sfm-button-fields{
    position: relative;
    border: 1px solid #F3F3F3;
    padding: 20px;
    margin: 20px 0 0 ;
    background: #FAFAFA;
}

.sfm-button-fields .sfm-remove{
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    border-left: 1px solid #F3F3F3;
    color: #000;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.sfm-button-fields:first-child .sfm-remove{
    display: none;
}

.sfm-button-fields-header{
    padding: 15px 20px;
    margin: -20px -20px 0;
    line-height: 20px;
    border-bottom: 1px solid #F3F3F3;
    font-weight: bold;
    cursor: move;
}

.sfm-button-fields-header .sfm-drag{
    float: left;
    height: 50px;
    width: 50px;
    color: #000;
    text-align: center;
    line-height: 50px;
    font-size: 16px;
    margin: -15px 0 15px -20px;
}

.form-col-2 .form-col{
    width: 50%;
    margin-bottom: 10px;
}

.form-col-4 .form-col{
    width: 25%;
}

.form-row .form-col label.form-label{
    width: 100%;
}

#sfm-form-wrap form{
    width: 65%;
}

.sfm-add-new-button-fields{
    background: #FFF;
    padding: 20px;
    text-align: right;
}

.form-table td.sfm-seperator{
    padding: 0;
}

/*FontAwesome Icon Styles*/
.sfm-customizer-icon-box .sfm-icon-box {
    width: 405px;
    display: none;
}

.sfm-customizer-icon-box .sfm-type-icon {
    overflow: hidden;
}

.sfm-customizer-icon-box .sfm-selected-icon {
    background: #F6F6F6;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border: 1px solid #EEE;
    position: relative;
    margin-right: 44px;
    cursor: pointer;
    font-size: 22px;
    width: 60px;
}

.sfm-customizer-icon-box .sfm-selected-icon span i {
    display: block;
    line-height: 45px;
}

.sfm-customizer-icon-box .sfm-selected-icon span {
    position: absolute;
    background: #F6F6F6;
    right: -45px;
    top: -1px;
    height: 45px;
    width: 45px;
    border: 1px solid #EEE;
    font-size: 16px;
}

.sfm-customizer-icon-box .sfm-icon-search {
    padding: 10px;
    background: #f7f7f7;
    border: 1px solid #EEE;
    border-top: 0;
    display: flex;
    align-items: center;
}

.sfm-customizer-icon-box .sfm-icon-search input {
    flex-grow: 1;
}

.sfm-customizer-icon-box .sfm-icon-list {
    height: 215px;
    overflow-y: scroll;
    font-size: 18px;
    border: 1px solid #EEE;
    background: #FFF;
    border-right: 0;
    border-top: 0;
    margin: 0;
    padding: 0;
    display: none;
    cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.sfm-customizer-icon-box .sfm-icon-list:first-of-type {
    display: block;
}

.sfm-customizer-icon-box .sfm-icon-list li {
    float: left;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    border: 1px solid #EEE;
    border-radius: 3px;
    font-size: 18px;
    margin: 4px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sfm-customizer-icon-box .sfm-icon-list li:hover {
    background: #333;
    border: 1px solid #333;
    color: #FFF;
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
}

.sfm-customizer-icon-box .sfm-icon-list li.icon-active {
    background: #0073aa;
    border: 1px solid #0073aa;
    color: #FFF;
}

.sfm-range-slider{
    width: 300px;
    margin-top: 30px;
}

.sfm-range-slider .ui-widget.ui-widget-content{
    position: relative;
    background: rgba(0, 0, 0, .15);
    border: none;
    height: 4px;
    cursor: pointer;
}

.sfm-range-slider .ui-slider .ui-slider-range{
    position: absolute;
    top: 0;
    height: 100%;
    background: #13a1dc;
}

.sfm-range-slider .ui-slider .ui-slider-handle{
    position: absolute;
    height: 10px;
    width: 2px;
    background: #d9d9d9;
    border: none;
    border-radius: 0;
    margin-left: -1px;
    top: -6px;
    cursor: pointer;
}

.sfm-range-slider .ui-slider .ui-slider-handle span{
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #13a1dc;
    color: #FFF;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 2px;
    line-height: 1;
    margin-bottom: 4px;
    min-width: 12px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sfm-range-slider .ui-slider .ui-slider-handle span:hover{
    transform: scale(1.05) translateX(-50%);
}

.sfm-range-slider .ui-slider .ui-slider-handle span:after{
    content: " px";
}

.sfm-typography-line-height .sfm-range-slider .ui-slider .ui-slider-handle span:after{
    content: "";
}

.sfm-typography-fields{
    margin: 0;
    padding: 0;
}

.sfm-typography-fields li{
    margin: 0;
    padding: 0;
}

.sfm-typography-fields li.typography-loading{
    opacity: 0.7;
    pointer-events: none;
}

.sfm-typography-fields .chosen-container-single .chosen-single{
    height: 32px;
    line-height: 30px;
    border-radius: 2px;
}

.sfm-typography-fields .chosen-container-single .chosen-single div b{
    background-position: 0 5px;
}

.sfm-typography-fields .chosen-container-active.chosen-with-drop .chosen-single div b{
    background-position: -18px 8px;
}

#sfm-form-wrap{
    display: flex;
}

.sfm-live-demo{
    position: sticky;
    top: 40px;
    border: 2px solid #FAFAFA;
    height: 500px;
    width: 30%;
    margin-top: 20px;
    margin-left: 5%;
}

.sfm-live-demo.sfm-loading .sfm-floating-menu{
    opacity: 0.4;
}

.sfm-button a{
    pointer-events: none;
}

.sfm-live-demo:after {
    content: "";
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -15px;
    margin-top: -15px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

.sfm-live-demo.sfm-loading:after{
    display: block;
}

.sfm-live-demo:before{
    content: 'Preview';
    font-size: 40px;
    color: #F6F6F6;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    font-weight: bold;
    border: 1px dashed #f6f6f6;
    padding: 30px;
}

#sfm-form-wrap p.submit{
    margin: 40px 0 0;
    padding: 0;
}

#sfm-form-wrap hr{
    border-bottom: 1px solid #F3F3F3;
    border-top: 0;
    margin: 20px 0;
}

.sfm-form-row{
    border: 1px solid #F3F3F3;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sfm-form-row label.form-label{
    margin-bottom: 0;
    font-weight: bold;
    font-size: 15px;
    width: auto;
}

.sfm-form-row label.form-label span{
    display: block;
    font-weight: normal;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

/* On Off switch */
.onoff-switch {
    position: relative;
    width: 52px;
    display: inline-block;
    float: right;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoff-switch-checkbox {
    display: none !important;
}

.onoff-switch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 22px;
    padding: 0;
    line-height: 19px !important;
    -webkit-transition: background-color 0.2s ease-in;
    transition: background-color 0.2s ease-in;
    border-radius: 30px;
    background-color: #c4c4c4;
    -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, .11);
    box-shadow: inset 0 2px 1px rgba(0, 0, 0, .11);
}

.onoff-switch-label:before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    position: absolute;
    top: 2px;
    bottom: 0;
    right: 32px;
    background-color: #fff;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .1);
    box-shadow: 0 0 3px rgba(0, 0, 0, .1);
    border-radius: 10px;
    -webkit-transition: all 0.2s ease-in 0s;
    transition: all 0.2s ease-in 0s;
}

.onoff-switch-label:after {
    content: "OFF";
    display: block;
    color: #FFF;
    position: absolute;
    top: 2px;
    bottom: 2px;
    right: 6px;
    font-size: 11px;
    font-family: 'Arial';
}

.onoff-switch-checkbox:checked+.onoff-switch-label {
    background-color: #3caf0e;
}

.onoff-switch-checkbox:checked+.onoff-switch-label,
.onoff-switch-checkbox:checked+.onoff-switch-label:before {
    border-color: #3caf0e;
}

.onoff-switch-checkbox:checked+.onoff-switch-label:before {
    right: 2px;
}

.onoff-switch-checkbox:checked+.onoff-switch-label:after {
    content: "ON";
    display: block;
    color: #FFF;
    position: absolute;
    top: 2px;
    bottom: 2px;
    right: 27px;
    font-size: 11px;
    font-family: 'Arial';
}

.sfm-notice p{
    font-size: 15px;
}

.sfm-error-notice{
    color: red;
}

.sfm-success-notice{
    color: green;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wp-core-ui #sfm-form-wrap .button.button-small{
    height: 30px;
    margin-left: 5px;
}

#adminmenu #toplevel_page_simple-floating-menu div.wp-menu-image:before{
    font-family: Flaticon;
    content: "\f1bf";
    font-weight: bold;
    font-size: 18px;
    margin-top: 8px;
}

.sfm-button.sfm-edit{
    display: none;
}

.sfm-feature-box{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.sfm-feature-box li{
    margin: 0 10px 20px;
    padding: 20px;
    border: 1px solid #EEE;
    width: 22%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 16px rgb(0 0 0 / 10%);
}

.sfm-inline-buttons{
    display: flex;
    margin-bottom: 40px;
}

.sfm-inline-buttons .sfm-link-button a{
    display: inline-block;
    background: #48a3ff;
    padding: 15px 40px;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    margin-right: 20px;
}

.sfm-inline-buttons .sfm-link-button a:hover{
    background: #3c89d8;
}