.fg-wrapper {
    position: relative;
}

.layouts-switcher-wrapper h4 {
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.layouts-switcher-wrapper h3 {
    font-size: 16px;
    font-weight: bold;
}

span.change-layout-overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #000000bf;
    z-index: 998;
}

.oa-change-section-btn, .oa-dup-btn, .oa-section-reorder-btn, .oa-section-hide-btn {
    visibility: hidden;
    opacity: 0;
    transition: all .4s;
    position: absolute;
    width: 44px;
    height: 44px;
    left: 25px;
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 260;
    background: #fff;
    padding: 8px 10px 8px 0;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    box-shadow: 0px 8px 14.72px 1.28px rgb(130 130 134 / 20%);
    color: #585858 !important;
    display: flex;
    align-items: center;
}

.oa-change-section-btn i, .oa-dup-btn i, .oa-section-reorder-btn i, .oa-section-hide-btn i {
    font-size: 22px;
    min-width: 44px;
    text-align: center;
}

.oa-dup-btn {
    top: -120px;
}

.oa-section-go-down-btn {
    bottom: -120px;
}

.oa-section-go-up-btn {
    top: -240px;
}

.oa-section-hide-btn {
    bottom: -240px;
}

.oa-section-delete-btn {
    bottom: -360px;
}

.oa-config-section-btn {
    bottom: -115px;
}

.oa-dup-btn:hover, .oa-section-reorder-btn:hover {
    
}

.oa-change-section-btn span {
    transition: all .4s;
    font-weight: bold;
    overflow: hidden;
    height: 28px;
    line-height: 28px;
}

.oa-change-section-btn:hover {
    width: auto;
}

.oa-change-section-btn:hover span {
    width: auto;
    margin-left: 5px;
}

header:hover .oa-change-section-btn, div:hover > .oa-change-section-btn, div:hover > .oa-dup-btn, div:hover > .oa-section-reorder-btn, div:hover > .oa-section-hide-btn {
    visibility: visible;
    opacity: 1;
}

.layouts-switcher-wrapper {
    position: fixed;
    z-index: 999999;
    top: 0;
    height: 100%;
    width: 75vw;
    right: -75vw;
    border-left: 1px solid #e9edf4;
    background: #fff;
    font-size: 12px;
    padding: 20px;
    transition: all .4s;
    overflow-y: scroll;
}

.layouts-switcher-wrapper.show {
    right: 0 !important;
}

.layouts-switcher-wrapper .layout-item {
    margin-bottom: 20px;
}

.layouts-switcher-wrapper .layout-item a {
    border: 4px solid #f1f1f1;
    display: block;
}

.layouts-switcher-wrapper .layout-item a:hover {
    border: 4px solid #939393;
}

.layouts-switcher-wrapper .layout-item.active a {
    border-color: #3fc3ca;
}

.layouts-switcher-wrapper .close-layout-switcher {
    margin: 0;
    float: right;
    cursor: pointer;
    color: #000;
}

.layouts-switcher-wrapper .switcher-inner {
    padding-right: 5px;
}

.oa-duplication-form {
    opacity: 0;
    visibility: hidden;
    transition: all .4s;
}

.oa-duplication-form.show {
    opacity: 1;
    visibility: visible;
}

.oa-duplication-form .oa-duplication-overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background: #000000a6;
    z-index: 999999;
}

.oa-duplication-form form {
    width: 400px;
    height: 80px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: #fff;
    z-index: 999999;
    padding: 20px 10px;
    border-radius: 5px;
}

.oa-duplication-form form > div {
    display: flex;
}

.oa-duplication-form form > div > * {
    margin: 0 5px !important;
    height: 40px !important;
}

a.btn-save-layout-changed {
    position: fixed !important;
    z-index: 9999;
    right: 20px;
    bottom: 150px;
    margin: 0 !important;
}

.switch_section .section-list .item {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px 20px;
    cursor: move;
    background: #26ccca;
    color: #000;
    font-size: 13px;
}

.switch_section .section-list .item.disabled {
    background: #e9e9e9;
    color: #aeaeae;
    cursor: no-drop;
}

.switch_section .section-list .item.section-hidden {
    background: red !important;
    color: #fff;
}

.switch_section .section-list .item .btn {
    background: #fff;
    color: #000;
    float: right;
    padding: 11px !important;
    font-size: 10px !important;
    text-transform: capitalize;
    margin: 0;
    opacity: 1;
}

.oa-add-section-wrapper {
    padding: 30px 0;
    background: #ccc;
    opacity: 0.3;
    transition: all .4s;
}

.oa-add-section-wrapper:hover {
    opacity: 1;
}

.oa-add-section-wrapper a.btn {
    line-height: 18px !important;
    display: inline-block !important;
    margin: 0 !important;
    border-color: #61dcdd !important;
    background-color: #61dcdd !important;
    color: #000 !important;
}

.oa-add-section-wrapper a.btn i {
    float: left;
    margin: 0 10px 0 0;
    font-size: 17px;
}

.oa-sections-listing-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    padding: 50px;
    z-index: 99999;
    box-sizing: border-box;
    transition: all .4s;
    opacity: 0;
    visibility: hidden;
}

.oa-sections-listing-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.oa-sections-listing-wrapper .inner {
    background: #fff;
    position: relative;
    border-radius: 10px;
    height: 100%;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.oa-sections-listing-wrapper .inner .sections-list {
    width: 40%;
    display: inline-block;
    background: #e5e5e5;
    padding: 10px 0 10px 10px;
    max-width: 400px;
    height: calc(100% - 0px);
    overflow-y: scroll;
}

.oa-sections-listing-wrapper .inner .sections-list .section-item {
    width: calc(50% - 10px);
    background: #fff;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
    padding: 10px 0;
    border: 1px solid transparent;
    cursor: pointer;
}

.oa-sections-listing-wrapper .inner .sections-list .section-item.active {
    border-color: #61dcdd;
    box-shadow: 0 0 1px 1px #888;
}

.oa-sections-listing-wrapper .inner .sections-list .section-item a {
    color: #222 !important;
}

.oa-sections-listing-wrapper .inner .sections-list .section-item a .section-icon {
    font-size: 30px;
    margin-bottom: 7px;
}

.oa-sections-listing-wrapper .inner .sections-list .section-item a .section-icon img {
    height: 30px;
}

.oa-sections-listing-wrapper .inner .sections-list .section-item a .section-name {
    font-size: 13px;
}

.oa-sections-listing-wrapper .inner .section-layouts {
    width: calc(100% - 400px);
    padding: 20px;
    height: calc(100% - 0px);
}

.oa-sections-listing-wrapper .btn-close-add-section {
    position: absolute !important;
    right: 5px;
    z-index: 2;
    top: 4px;
    font-size: 33px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}

.oa-sections-listing-wrapper .inner > div {
    height: 100%;
    flex-wrap: wrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-list {
    height: calc(100% - 70px);
    overflow-y: scroll;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-list .loading {
    width: 100px;
    height: 100px;
    background: url(../../images/loading.gif) no-repeat;
    background-size: 100% 100%;
    display: block;
    margin: 0 auto;
    display: none;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-action {
    margin-top: 20px;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-list .layout-item {
    margin-bottom: 35px;
    border: 5px solid #ededed;
    padding: 10px;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-list .layout-item span {
    display: block;
    font-weight: bold;
    color: #000;
    font-size: 15px;
    margin-bottom: 5px;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-list .layout-item.active, .oa-sections-listing-wrapper .inner .section-layouts .layouts-list .layout-item:hover {
    border-color: #61dcdd;
}

.oa-sections-listing-wrapper .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000000bd;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-action .btn {
    background: #61dcdd !important;
    border-color: #61dcdd !important;
    color: #000;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-action .btn[disabled] {
    background: #ccc !important;
    border-color: #ccc !important;
    opacity: 0.5;
}

.oa-sections-listing-wrapper .inner .section-layouts .layouts-action input, .oa-sections-listing-wrapper .inner .section-layouts .layouts-action select {
    display: inline;
    width: 225px;
    box-shadow: none;
    border: 1px solid #888;
    border-radius: 4px;
}

.oa-sl-colors option {
    zoom: 1.2;
    color: #fff;
}

.colors-selector-block .cl-item {
    width: 30px;
    height: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 5px;
    cursor: pointer;
}

.colors-selector-block .cl-item.active {
    border-color: #000;
    box-shadow: 0 0 5px 3px #5e5e5e;
}

.colors-selector-block .col {}

.colors-selector-block.clpicker {
    position: relative;
}

.colors-selector-block.clpicker .color-overlay {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    left: 100px;
    top: 0;
    z-index: 2;
}

.colors-selector-block.clpicker input {
    width: 130px;
    height: 30px;
    min-height: unset !important;
    position: relative;
    z-index: 1;
    background: transparent;
    cursor: pointer;
}

.colors-selector-block.clpicker .iris-picker {
    position: absolute;
    z-index: 3;
}

.media-modal {
    z-index: 999999;
}

.layouts-switcher-wrapper .layout-item.bg-img-item input {
    width: 0;
    padding: 0;
    border: 0;
}

.layouts-switcher-wrapper .layout-item .img-wrapper {
    display: table;
    position: relative;
}

.layouts-switcher-wrapper .layout-item .img-wrapper .btn-delete-bg-img {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #fff;
    width: 25px;
    height: 25px;
    line-height: 27px;
    text-align: center;
    border-radius: 100%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .4s;
}

.layouts-switcher-wrapper .layout-item .img-wrapper:hover .btn-delete-bg-img {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .oa-change-section-btn, .oa-dup-btn, .oa-section-reorder-btn {
        display: none !important;
    }
}