html {
    scroll-padding-top: 32px;
}

.std-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    padding: 15px;
    opacity: 0;
    pointer-events: none;
}

.std-popup-inner {
    position: relative;
    width: 100%;
    /*padding: 25px;*/
    max-height: 90vh;
    max-width: 650px;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: auto;
    background: rgb(1, 224, 177);
    background: linear-gradient(90deg, rgba(1, 224, 177, 1) 0%, rgba(0, 208, 172, 1) 45%, rgba(1, 161, 161, 1) 100%);
    box-shadow: 0 11px 15px -7px rgb(0 0 0 / 20%), 0 24px 38px 3px rgb(0 0 0 / 14%), 0 9px 46px 8px rgb(0 0 0 / 12%);
}

.std-popup-holder.std-opened :is(.std-popup,.std-popup-overlay) {
    visibility: visible;
    opacity: 1;
    transition: all .2s ease-in-out;
}

.std-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1400;
    visibility: hidden;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.54);
    opacity: 0;
}

.std-hidden {
    display: none !important;
}

.std-popup-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    outline: none !important;
    background: #ffffff;
    box-shadow: none !important;
    text-decoration: none;
    font-size: 0;
    cursor: pointer;
    transition: .3s all ease-in-out;
    border-radius: 100%;
}

.std-popup-close:before {
    content: "\f158";
    color: #01a4a2;
    font-size: 21px;
    font-family: "dashicons";
    line-height: 58px;
}

.std-popup-inner .std-popup-header {
    position: relative;
    display: block;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 95%;
    margin: 22px auto 10px auto;
}

.std-popup-inner .std-popup-header .std-popup-title {
    padding: 30px 25px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.std-layout ~ #posts-filter .search-box {
    margin-top: 10px
}

#menu-posts-engine_layout .wp-submenu, #wp-admin-bar-new-engine_layout, .post-php.post-type-engine_layout .page-title-action {
    display: none
}

.edit-php.post-type-engine_layout #menu-posts-engine_layout .wp-submenu {
    display: block
}

#std-layout-conditions .std-layout-conditions-edit {
    margin-top: 5px
}

.std-layout .std-popup, .std-layout-conditions-edit + .std-popup {
    --std-input-width: 100%
}

.std-layout .std-popup form, .std-layout-conditions-edit + .std-popup form {
    padding: 0 10px;
}

.std-layout .std-popup label, .std-layout-conditions-edit + .std-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.std-layout .std-popup input, .std-layout-conditions-edit + .std-popup input, .std-layout .std-popup select, .std-layout-conditions-edit + .std-popup select {
    width: 100%;
    padding: 10px 15px;
    border-radius: 7px;
    border: none !important;
}

.std-layout .std-layout-condition select, .std-inited .std-layout-condition select {
    margin-left: 10px;
    height: fit-content;
}

.column-std_layout_conditions .std-layout-conditions-edit, #std-layout-conditions .inside .std-layout-conditions-edit {
    color: #fff;
    font-size: 15px;
    padding: 14px 22px;
    border-radius: 10px;
    line-height: initial;
    display: inline-block;
    outline: none !important;
    box-shadow: none !important;
    background: rgb(1, 224, 177);
    text-decoration: none !important;
    background: linear-gradient(90deg, rgba(1, 224, 177, 1) 0%, rgba(0, 208, 172, 1) 45%, rgba(1, 161, 161, 1) 100%);
}

.stdLayoutConditionsHolder .std-popup-actions .std-layout-conditions-edit-save {
    color: #fff;
    width: 100%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 15px;
    border-radius: 10px;
    border: 1px solid #fff !important;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-block;
    text-align: center;
    line-height: initial;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.stdLayoutConditionsHolder .std-layout-conditions-edit-add {
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 15px;
    margin-top: 15px;
    display: inline-block;
}

.stdLayoutConditionsHolder .std-layout-conditions-edit-add:before {
    vertical-align: middle;
    font-weight: 400;
    font-family: "dashicons";
    margin-inline-end: 6px;
    content: "\f502";
}

.std-layout-condition-remove {
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin-right: 10px;
}

.std-layout-condition-remove:before {
    content: "\f158";
    color: #f01e6a;
    font-size: 21px;
    font-family: "dashicons";
    line-height: 58px;
}

.std-layout .std-layout-conditions .std-layout-condition-add {
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 15px;
    margin-top: 15px;
    display: inline-block;
}

.std-layout .std-layout-conditions .std-layout-condition-add:before {
    vertical-align: middle;
    font-weight: 400;
    font-family: "dashicons";
    margin-inline-end: 6px;
    content: "\f502";
}

.std-popup.std-loading [class*="std-layout-"] {
    opacity: .7;
}

.std-loading .lds-roller {
    opacity: 1;
    visibility: unset;
}

.lds-roller {
    display: inline-block;
    position: absolute;
    top: 44%;
    right: 44%;
    width: 80px;
    height: 80px;
    opacity: 0;
    visibility: hidden;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.std-notice {
    background-color: #ffffff;
    color: #000000;
    padding: 17px 15px;
    border-radius: 10px;
    margin: 0 0 25px;
    text-align: center;
    line-height: initial;
    font-size: 15px;
    font-weight: 500;
}

.std-success {
    background-color: #00ffa1;
    color: #105a11;
}

.std-warning {
    background-color: #FFEFEF;
    color: #FA5757;
}


.std-layout .std-popup .std-popup-inner, .std-layout-conditions-edit + .std-popup .std-popup-inner {
    max-width: 950px
}

.std-popup-content {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 20px 0 20px;
    max-height: 60vh;
}

.column-std_layout_conditions .std-popup-content {
    padding: 20px 30px 0 30px;
}

.std-layout .std-popup .std-popup-content, .std-layout-conditions-edit + .std-popup .std-popup-content {
    max-height: 70vh
}

.std-btns-set {
    display: flex;
    flex-wrap: wrap;
}

.std-set-btn-img {
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    border-radius: 7px;
    border: 3px solid #ff5b5b00;
}

.std-set-btn-img img {
    /*border-radius: 7px;*/
    width: 100%;
    height: auto;
    max-width: 100%;
}

.std-layout .std-popup .std-set-btn-img, .std-layout-conditions-edit + .std-popup .std-set-btn-img {
    flex-basis: 32.333333%
}

.std-layout-fields:not(.std-layout-type-checkout):not(.std-layout-type-all) .std-layout-type-select {
    display: none
}

.std-layout-predefined-layouts {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-top: 15px;
}

.std-layout-predefined-layout:hover .std-import-preview-wrap {
    visibility: visible;
    opacity: 1
}

.std-import-preview-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    display: flex;
    background-color: rgba(0, 0, 0, 0.15);
    opacity: 0;
    cursor: pointer;
    transition: all .25s ease;
    pointer-events: none
}

.std-import-preview-wrap .std-import-item-preview {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background-color: #FFF;
    color: #4E4E4E !important;
    display: inline-block;
    margin: auto;
    padding: 12px 12px;
    border-radius: 7px;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
}

.std-layout-predefined-layouts > label {
    margin-bottom: 17px !important;
    font-size: 15px;
}

.std-set-btn-img.std-active {
    border: 3px solid #ff5b5b;
}

.std-popup-content .std-layout-submit-wrap {
    position: sticky;
    display: flex;
    bottom: 1px;
    z-index: 10;
    background: #fff;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(4px);
    margin: 22px -30px 0 -30px;
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.25);
}
.std-popup-content .std-layout-submit-wrap button {
    color: #40cbbd;
    width: 100%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 15px;
    border-radius: 10px;
    border: 1px solid #fff !important;
    background: rgb(255 255 255 / 82%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.std-popup-content .std-layout-submit-wrap button.std-disabled {
    opacity: .7;
    pointer-events: none;
}

.std-layout-fields {
    display: flex;
    margin-right: -6px;
    margin-left: -6px
}

.std-layout-field {
    flex: 1 1 50%;
    margin-bottom: 15px;
    padding-right: 6px;
    padding-left: 6px
}

.std-layout-field + .std-layout-conditions {
    margin-top: 20px
}

.std-layout-condition {
    position: relative;
    display: flex;
    margin-top: 20px;
    height: 48px;
}

.std-layout-condition:first-child {
    margin-top: 0;
}

.std-layout-condition > *:not(.std-layout-condition-remove) {
    flex: 1 1 33.3333333%;
}

.std-layout-condition > .select2-container {
    max-width: 33.3333333%
}

.select2-hidden-accessible {
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    padding: 0 !important;
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    white-space: nowrap !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
}

.wp-toolbar .select2-container--std .select2-selection--single {
    background-color: #FFF;
    height: 48px !important;
    display: block;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    padding: 10px 15px;
    border-radius: 7px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
}

.wp-toolbar .select2-container--std {
    z-index: 99999;
}

.wp-toolbar .select2-container--std.select2-container--open.select2-container--below .select2-selection {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #007cba !important;
    border-bottom: none !important;
}

.wp-toolbar .select2-container--std.select2-container--open .select2-dropdown {
    box-shadow: 0 2px 4px rgb(0 124 186 / 20%);
    border: 1px solid #007cba;
    background-color: #FFF;
    border-top: none;
    z-index: 1051;
    display: block;
    box-sizing: border-box;
    border-radius: 0 0 7px 7px;
}

.wp-toolbar .select2-container--std .select2-selection--single .select2-selection__arrow:before {
    position: absolute;
    top: 16px;
    left: 11px;
    display: block;
    font-size: 16px;
    content: "\f347";
    font-weight: 400;
    font-family: dashicons;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wp-toolbar .select2-container--std .select2-selection--single .select2-selection__rendered {
    display: block;
    overflow: hidden;
    padding-right: 8px !important;
    padding-left: 30px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #444;
    line-height: 29px;
}

.wp-toolbar .select2-container--std .select2-results > .select2-results__options {
    overflow-y: auto;
    max-height: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-toolbar .select2-container--std .select2-results > .select2-results__options .select2-results__option {
    padding: 6px;
    -webkit-user-select: none;
    user-select: none;
    line-height: 22px;
    font-size: 12px;
}

.wp-toolbar .select2-container--std .select2-results__option--highlighted[aria-selected], .wp-toolbar .select2-container--std .select2-results__option[data-selected="true"] {
    background-color: #007cba;
    color: #FFF;
}

.select2-results__option[aria-selected="true"] {
    background-color: #007cba;
    color: #FFF;
}

.wp-toolbar .select2-container--std .select2-search--dropdown {
    padding: 5px;
    display: block;
}

.wp-toolbar .select2-container--std .select2-search--dropdown .select2-search__field {
    height: 35px !important;
    outline: 0;
    border: 1px solid #10101014;
    border-radius: 4px;
    box-shadow: none;
    margin: 0;
    box-sizing: border-box;
    padding: 4px;
    width: 100%;
    line-height: 2;
    min-height: 30px;
    background-color: #fff;
    color: #2c3338;
    font-size: 14px;
}

/* Start switcher */

.std-switcher-btn {
    position: relative;
    top: 10px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    padding-right: 6px;
    padding-left: 6px;
    min-width: 64px;
    height: 32px;
    border: 1px solid #10101014;
    border-radius: 30px;
    background-color: #FFF;
    cursor: pointer;
    transition: all .2s ease;
}

.std-switcher-btn.std-loading {
    pointer-events: none;
}

.std-switcher-btn.std-loading .std-switcher-dot {
    opacity: 0;
}

.std-switcher-btn.std-loading:before {
    position: absolute;
    top: 5px;
    inset-inline-start: 6px;
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left-color: #000;
    border-radius: 50%;
    vertical-align: middle;
    animation: std_rotate 450ms infinite linear;
}

.std-switcher-btn.std-active {
    border-color: #2271b1;
    background-color: #2271b1;
    color: #FFF;
}

.std-switcher-btn.std-active:before {
    inset-inline-start: 50px;
    border-color: rgba(255, 255, 255, 0.15);
    border-inline-start-color: #FFF;
}

.std-switcher-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 5px;
    padding-left: 5px;
    width: 100%;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 10px;
    user-select: none;
}

.rtl .std-switcher-labels {
    flex-direction: row-reverse
}

.std-switcher-label {
    overflow: hidden;
    max-width: 50px;
    height: 12px;
    text-overflow: ellipsis;
    line-height: 1;
    transition: opacity .2s ease;
}

.std-switcher-label.std-on {
    padding-right: 5px;
    opacity: 0;
}

.std-switcher-label.std-off {
    padding-left: 5px;
    opacity: 1;
}

.std-switcher-btn.std-active .std-switcher-label.std-on {
    opacity: 1;
}

.std-switcher-btn.std-active .std-switcher-label.std-off {
    opacity: 0;
}

.std-switcher-dot-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 5px;
    padding-left: 5px;
    transition: all .2s ease
}

.rtl .std-switcher-dot-wrap {
    flex-direction: row-reverse
}

.std-switcher-dot {
    z-index: 1;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #dddddf;
    transition: inherit
}

.std-switcher-btn.std-active .std-switcher-dot-wrap {
    transform: translateX(calc(100% - 32px))
}

.std-switcher-btn.std-active .std-switcher-dot {
    background-color: #FFF
}

.std-switcher-btn.std-active:hover .std-switcher-dot {
    background-color: rgba(255, 255, 255, 0.9)
}

.std-switcher-btn:not(.std-active):hover .std-switcher-dot {
    background-color: #efeff0;
}

.rtl .std-switcher-btn.std-active .std-switcher-dot {
    background-color: #FFF;
}

@keyframes std_rotate {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
