.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-left: 15px;
    position: relative;
}

#sfm-tab-wrapper a.sfm-tab img {
    width: 120px;
    position: absolute;
    right: -10px;
    top: -12px;
}

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

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

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

#sfm-tab-wrapper a.sfm-tab i {
    display: inline-block;
    margin-left: 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 * {
    box-sizing: border-box;
}

#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;
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    border-right: 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: right;
    height: 50px;
    width: 50px;
    color: #000;
    text-align: center;
    line-height: 50px;
    font-size: 16px;
    margin: -15px -20px 15px 0;
}

.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 div.sfm-form-start {
    width: 65%;
    max-width: 800px;
}

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

.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-left: 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;
    left: -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-left: 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 {
    -ms-overflow-style: none;
    /* for Internet Explorer, Edge */
    scrollbar-width: none;
    /* for Firefox */
}

.sfm-customizer-icon-box .sfm-icon-list::-webkit-scrollbar {
    display: none;
}

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

.sfm-customizer-icon-box .sfm-icon-list li {
    float: right;
    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-right: -1px;
    top: -6px;
    cursor: pointer;
}

.sfm-range-slider .ui-slider .ui-slider-handle span {
    position: absolute;
    bottom: 100%;
    right: 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 {
    min-height: 30px;
    font-size: 14px;
    line-height: 2;
    color: #2c3338;
    border-color: #8c8f94;
    box-shadow: none;
    border-radius: 3px;
    background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat left 5px top 55%;
    background-size: 16px 16px;
    cursor: pointer;
    vertical-align: middle;
    padding: 0 10px 0 0;
}

.sfm-typography-fields .chosen-container-single .chosen-single div {
    display: none;
}

.sfm-typography-fields .chosen-container-single .chosen-single span {
    margin: 0 0 0 26px;
}

.sfm-typography-fields .chosen-container-single .chosen-search input[type="text"] {
    background: none !important;
    padding: 5px;
    box-shadow: none;
}

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

.sfm-live-demo {
    position: sticky;
    top: 40px;
    border: 2px solid #FAFAFA;
    height: 500px;
    width: 30%;
    margin-top: 20px;
    margin-right: 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;
    right: 50%;
    top: 50%;
    margin-right: -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;
    right: 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: left;
    -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;
    left: 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;
    left: 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 {
    left: 2px;
}

.onoff-switch-checkbox:checked + .onoff-switch-label:after {
    content: "ON";
    display: block;
    color: #FFF;
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 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-right: 5px;
}

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

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

.sfm-premium-features {
    border: 1px solid #EEE;
    padding: 30px;
    margin: 0 0 30px;
    max-width: 800px;
}

.sfm-premium-features h4 {
    font-size: 18px;
    text-transform: uppercase;
    margin: 0 0 15px;
    letter-spacing: 1px;
}

.sfm-feature-box {
    margin: 0 0 30px;
    padding: 0;
    text-transform: capitalize;
}

.sfm-feature-box li {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 10px;
    padding: 0 30px 0 0;
    position: relative;
}

.sfm-feature-box li:last-child {
    margin-bottom: 0;
}

.sfm-feature-box li:before {
    font-family: 'IcoFont' !important;
    content: "\f00d";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    color: #3caf0e;
}

.sfm-inline-buttons {
    display: flex;
    margin-bottom: 40px;
    gap: 30px;
    max-width: 800px;
}

.sfm-inline-buttons .sfm-link-button {
    flex-grow: 1;
}

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

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

/* Dropzone */
.sfm-dropzone-wrapper {
    border: 2px dashed #91b0b3;
    color: #92b0b3;
    position: relative;
    height: 150px;
    max-width: 500px;
    margin-bottom: 10px;
}

.sfm-dropzone-desc {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-direction: column;
}

.sfm-dropzone-desc .icofont-download {
    font-size: 22px;
}

.sfm-dropzone,
.sfm-dropzone:focus {
    position: absolute;
    outline: none !important;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.sfm-dropzone-wrapper:hover,
.sfm-dropzone-wrapper.dragover {
    background: #ecf0f5;
}

.sfm-preview-zone {
    border: 1px dashed #CCC;
    max-width: 500px;
    margin-bottom: 5px;
    position: relative;
}

.sfm-preview-zone .box-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-bottom: 0;
}

.sfm-preview-zone .box-solid p {
    margin: 10px 0;
}

.sfm-preview-zone .sfm-remove-preview {
    position: absolute;
    left: 10px;
    top: 10px;
    color: red;
    border: none;
    background: none !important;
    vertical-align: top;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.sfm-preview-zone.hidden + .sfm-dropzone-wrapper + #sfm_import {
    display: none;
}

.sfm-form-start .sfm-success-notice {
    background: green;
    padding: 15px;
}

.sfm-form-start .sfm-success-notice p {
    margin: 0;
    color: #FFF;
}

#sfm-form-wrap .wp-picker-container * {
    box-sizing: content-box;
}

/** Admin Notice **/
.sfm-notice.notice {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 20px 20px 40px !important;
    position: relative;
}

.sfm-notice.notice p {
    padding: 0;
    margin: 0 0 15px;
    font-size: 16px;
}

.sfm-notice.notice .button .dashicons {
    height: auto;
    width: auto;
    margin: 0 0 0 6px;
    vertical-align: middle;
    font-size: 16px;
}

.sfm-notice a.notice-dismiss {
    text-decoration: none;
}

.sfm-notice.notice .essentialicon-menu-1 {
    font-size: 52px;
    color: #72aee6;
}

.sfm-grid-col {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.sfm-grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sfm-grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sfm-grid-col li {
    margin: 0;
}

.sfm-grid-col li a {
    display: block;
    background: #48a3ff;
    padding: 15px;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.sfm-grid-col li a:hover {
    background: #3c89d8;
}

/* Additional RTL CSS */
.sfm-range-slider .ui-slider .ui-slider-range {
    left: 0;
}

#sfm-tab-wrapper a.sfm-tab img {
    left: -10px;
    right: auto;
}

.sfm-feature-box li {
    direction: ltr;
}

.sfm-ltr {
    direction: ltr;
    text-align: right;
}