body.no-scroll {
    overflow: hidden;
}

.fmpe-popup {
    display: none;
}

.fmpe-popup.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    overflow: auto;
}

.fmpe-single-product-edit a {
    padding: 10px 30px;
    background-color: #3a3a3a;
    margin: 10px 0;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    display: inline-block;
}

.fmpe-archive-product-edit {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #3a3a3a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: all 0.3s ease-in-out;
}

li.product:hover .fmpe-archive-product-edit {
    opacity: 1;
    visibility: visible;
}

.fmpe-single-product-edit a:hover,
.fmpe-archive-product-edit:hover {
    background-color: #525252;
}

.fmpe-startup-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.fmpe-startup-loading .fmpe-loader {
    width: 150px;
    height: 150px;
    border-width: 15px;
}

.fmpe-product-editor {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding-bottom: 50px;
    font-size: 13px;
    --fmpe-text-color: #3c434a;
}

.fmpe-product-editor .fmpe-not-supported {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    height: 50%;
}

.flatpickr-calendar {
    z-index: 999999 !important;
}

.fmpe-product-editor .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

/*
.fmpe-product-editor .header > div {
    display: flex;
    flex-direction: column;
    padding: 20px;
}
*/

.fmpe-product-editor .header a {
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.fmpe-product-editor .header .title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 2rem;
    color: #333;
}

.fmpe-product-editor .header .return a {
    color: #333;
    border-right: 1px solid #ddd;
    min-width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.fmpe-product-editor .header .return a span {
    font-size: 2.5rem;
    width: auto;
    height: auto;
}

.fmpe-product-editor .header .update {
    padding-right: 20px;
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.fmpe-product-editor .header .update a {
    color: #fff;
    background-color: #5cb85c;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
}

.fmpe-product-editor .editor-section {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: 1280px;
    margin: auto;
}

.fmpe-product-editor .editor-section:last-child {
    padding-bottom: 50px;
}

.fmpe-product-editor .editor-section > div {
    flex: 1;
}

.fmpe-product-editor textarea.resize-none {
    resize: none;
}

.fmpe-product-editor h3,
.fmpe-product-editor h4 {
    margin: 0;
    font-size: 1.3rem;
}

.fmpe-product-editor .fmpe-button {
    background-color: #3a3a3a;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    outline: none;
    box-shadow: none;
}

.fmpe-product-editor .swal2-confirm {
    background-color: #3a3a3a;
    border-color: #3a3a3a;
    color: #fff;
}

.fmpe-product-editor .swal2-cancel {
    background-color: transparent;
    color: #3a3a3a;
    border: 2px solid #3a3a3a;
}

.fmpe-product-editor .fmpe-pill {
    border: 2px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    cursor: pointer;
}

.fmpe-product-editor .fmpe-pill:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .fmpe-pill.active {
    background-color: #3a3a3a;
    color: #fff;
    border: 2px solid #3a3a3a;
    box-shadow: 0 0 0 1px inset #fff;
}

.fmpe-product-editor .remove-button {
    text-decoration: none;
    position: absolute;
    top: 50%;
    right: 20px;
    color: #545454;
    transform: translateY(-50%);
    outline: none;
    box-shadow: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fmpe-product-editor .remove-button:hover {
    background-color: #d3d3d3;
}

.fmpe-product-editor input::placeholder {
    color: #646970;
}

.fmpe-product-editor input[type="text"]:not(.wp-color-picker):not(.select2-search__field),
.fmpe-product-editor input[type="number"],
.fmpe-product-editor input[type="search"],
.fmpe-product-editor input[type="email"],
.fmpe-product-editor input[type="url"],
.fmpe-product-editor select {
    border: 2px solid #ddd !important;
    outline: none;
    width: 100%;
    cursor: pointer;
    padding: .5rem 1rem !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 2;
    min-height: 48px !important;
    height: auto !important;
    border-radius: 4px !important;
    color: #2c3338;
    margin: 0 !important;
}

.fmpe-product-editor textarea {
    border: 2px solid #ddd !important;
    outline: none;
    width: 100%;
    cursor: pointer;
    padding: .5rem 1rem !important;
    box-shadow: none !important;
    font-size: 14px;
}

.fmpe-product-editor input::-webkit-outer-spin-button,
.fmpe-product-editor input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fmpe-product-editor input[type=number] {
  -moz-appearance: textfield;
}

.fmpe-product-editor input:placeholder-shown,
.fmpe-product-editor textarea:placeholder-shown {
    border: 2px dashed #ddd !important;
}

.fmpe-product-editor input[type="text"]:focus:not(.wp-color-picker):not(.select2-search__field),
.fmpe-product-editor input[type="number"]:focus,
.fmpe-product-editor input[type="search"]:focus,
.fmpe-product-editor input[type="email"]:focus,
.fmpe-product-editor input[type="url"]:focus,
.fmpe-product-editor textarea:focus {
    border: 2px dashed #606060 !important;
}

.fmpe-product-editor input:hover,
.fmpe-product-editor textarea:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .input-box {
    position: relative;
}

.fmpe-product-editor .input-box label.ph {
    position: absolute;
    left: calc( 1rem - 5px);
    top: 0;
    transform: translateY(100%);
    background: #fff;
    padding: 0 5px;
    opacity: 0;
    pointer-events: none;
    color: #626262;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
}

.fmpe-product-editor .input-box label.ph.disabled {
    opacity: 0 !important;
}

.fmpe-product-editor .input-box input:not(:placeholder-shown) + label.ph,
.fmpe-product-editor .input-box textarea:not(:placeholder-shown) + label.ph {
    transform: translateY(-70%);
    opacity: 1;
}

.fmpe-product-editor input.disabled,
.fmpe-product-editor textarea.disabled,
.fmpe-product-editor select.disabled {
    background-color: #ddd;
    pointer-events: none;
    cursor: initial;
    color: #ddd;
    text-shadow: none;
}

.fmpe-product-editor input.disabled::placeholder {
    color: #ddd;
}

.fmpe-product-editor .editor-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 35% !important;
}

.fmpe-product-editor .editor-images .main-image {
    position: relative;
}

.fmpe-product-editor .editor-images .main-image .image-blurb {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    top: 10px;
    left: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.fmpe-product-editor .editor-images .main-image:hover .image-blurb {
    opacity: 1;
    visibility: visible;
}

.fmpe-product-editor .editor-images .main-image:hover .image-blurb > div {
    display: flex;
    gap: 5px;
}

.fmpe-product-editor .editor-images .main-image .image-blurb input {
    font-weight: 600;
    --placholder-color: #ccc;
}

.fmpe-product-editor .editor-images .main-image .image-blurb input::placeholder {
    color: var(--placeholder-color);
}

.fmpe-product-editor .editor-images .main-image .wp-picker-container button {
    outline: none;
    box-shadow: none;
    border: none;
    margin: 0;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #ddd;
    padding: 0;
}

.fmpe-product-editor .editor-images .main-image .wp-picker-container button > span,
.fmpe-product-editor .editor-images .main-image .wp-picker-container .wp-picker-input-wrap {
    display: none;
}

.fmpe-product-editor .editor-images .main-image .wp-picker-holder {
    position: absolute;
}

.fmpe-product-editor .editor-images .image-upload {
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    cursor: pointer;
    border-radius: 4px;
}

.fmpe-product-editor .editor-images .image-upload img {
    max-width: 100%;
}

.fmpe-product-editor .editor-images .image-upload.has-image {
    border: none;
    padding: 0;
}

.fmpe-product-editor .editor-images .image-upload div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fmpe-product-editor .editor-images .image-upload:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-images .image-upload svg {
    max-width: 50%;
}

.fmpe-product-editor .editor-images .image-upload.gallery {
    padding: 10px 20px;
}

.fmpe-product-editor .editor-images .image-upload.gallery div {
    justify-content: space-between;
}

.fmpe-product-editor .editor-images .image-upload.gallery svg {
    max-width: 50px;
}

.fmpe-product-editor .editor-images .image-upload.gallery.has-image {
    padding: 0;
    border: none;
}

.fmpe-product-editor .editor-images .image-upload.gallery.has-image div {
    justify-content: flex-start;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    gap: 5px;
    display: flex;
    flex-wrap: wrap;
}

.fmpe-product-editor .editor-images .image-upload.gallery.has-image img {
    width: 50px;
    object-fit: cover;
    height: 50px;
}

.fmpe-product-editor .editor-product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    grid-auto-rows: max-content;
}

.fmpe-product-editor .editor-product-info > div:not(.half) {
    grid-column: 1/-1;
}

.fmpe-product-editor .editor-product-info .simple-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    position: relative;
}

.fmpe-product-editor .editor-product-info .variable-info {
    display: none;
}

.fmpe-product-editor .editor-product-info .stock {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    grid-column: span 2;
}

.fmpe-product-editor.variable .editor-product-info .simple-info {
    display: none;
}

.fmpe-product-editor.variable .editor-product-info .variable-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #ddd;
    border-radius: 4px;
}

.fmpe-product-editor.variable .editor-product-info .variable-info svg {
    width: 25px;
    margin-right: 10px;
}

.fmpe-product-editor .editor-product-info .fmpe-datepicker {
    display: none;
} 

.fmpe-product-editor .editor-product-info .product-sale-price input:not(:placeholder-shown) + label:not(.ph) {
    color: #5cb85c;
}

.fmpe-product-editor .editor-product-info .datepicker-label {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
} 

.fmpe-product-editor .editor-product-info .product-manage-stock input {
    display: none;
}

.fmpe-product-editor .editor-product-info .product-manage-stock label {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 2px dashed #ddd;
    padding: .5rem 1rem;
    line-height: 2;
}

.fmpe-product-editor .editor-product-info .product-manage-stock input:checked + label {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #3a3a3a;
    box-shadow: 0 0 0 1px inset #fff;
}

.fmpe-product-editor .editor-product-info .product-backorders label {
    transform: translateY(-80%);
    opacity: 1;
}

.fmpe-product-editor div.mce-toolbar-grp {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: all 0.3s ease-in-out;
}

.fmpe-product-editor div.mce-container.active div.mce-toolbar-grp {
    padding: 5px;
    opacity: 1;
    visibility: visible;
    height: auto;
    border: 2px dashed #606060;
}

.mce-floatpanel {
    z-index: 99999999999999 !important;
}

.fmpe-product-editor div.mce-container div.mce-edit-area {
    border-left: 2px solid #ddd !important;
    border-right: 2px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 4px;
}

.fmpe-product-editor div.mce-container:not(.active) div.mce-edit-area {
    border-top: 2px solid #ddd !important;
}

.fmpe-product-editor div.mce-container.active div.mce-edit-area {
    border-left: 2px dashed #606060 !important;
    border-right: 2px dashed #606060 !important;
    border-bottom: 2px dashed #606060 !important;
}

.fmpe-product-editor div.mce-statusbar {
    visibility: hidden;
    height: 0;
    border: none;
}

.fmpe-product-editor .mce-resizehandle {
    top: -16px;
    opacity: 1;
    visibility: visible !important;
}
/*
.fmpe-product-editor .product-desc-short iframe {
    height: 70px !important;
}
*/
.fmpe-product-editor .mce-top-part::before {
    box-shadow: none;
}

.fmpe-product-editor .mce-btn.mce-active button, 
.fmpe-product-editor .mce-btn.mce-active:hover button, 
.fmpe-product-editor .mce-btn.mce-active i, 
.fmpe-product-editor .mce-btn.mce-active:hover i {
    color: #595959;
}

.fmpe-product-editor .mce-toolbar .mce-btn-group .mce-btn:focus, 
.fmpe-product-editor .mce-toolbar .mce-btn-group .mce-btn:hover, 
.fmpe-product-editor .qt-dfw:focus, .qt-dfw:hover {
    outline: none;
    box-shadow: none;
    background-color: #f9f9f9;
}




.fmpe-product-editor .editor-section.cat-tag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fmpe-product-editor .editor-categories .no-categories,
.fmpe-product-editor .editor-tags .no-attributes {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px dashed #ddd;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    color: #6c6c6c;
    border-radius: 4px;
}

.fmpe-product-editor .editor-categories .no-categories:hover,
.fmpe-product-editor .editor-tags .no-tag:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-categories .no-categories span,
.fmpe-product-editor .editor-tags .no-tag span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ebebeb;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #939393;
    font-size: 1.5rem;
}

.fmpe-product-editor .editor-categories,
.fmpe-product-editor .editor-tags {
    border: 2px dashed #ddd;
    cursor: pointer;
    padding: 20px;
    position: relative;
    border-radius: 4px;
}

.fmpe-product-editor .editor-tags {
    cursor: default;
}

.fmpe-product-editor .editor-categories:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-categories label,
.fmpe-product-editor .editor-tags label {
    position: absolute;
    left: calc( 1rem - 5px);
    top: 0;
    transform: translateY(-70%);
    background: #fff;
    padding: 0 5px;
    pointer-events: none;
    color: #626262;
    font-size: 1rem;
}

.fmpe-product-editor .editor-categories > div,
.fmpe-product-editor .editor-tags > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fmpe-product-editor .editor-categories > div .category,
.fmpe-product-editor .editor-tags > div .tag {
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-weight: 600;
    background-color: #fff;
}

.fmpe-product-editor .editor-tags > div .add-new-tag {
    border: 2px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    cursor: pointer;
}

.fmpe-product-editor .editor-tags > div .add-new-tag:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-tags > div .tag {
    position: relative;
}

.fmpe-product-editor .editor-tags > div .tag .remove {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: -10px;
    right: -10px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #d9534f;
    outline: none;
    box-shadow: none;
}

.fmpe-product-editor .editor-tags > div .tag:hover .remove {
    opacity: 1;
    visibility: visible;
}

.fmpe-product-editor .editor-tags > div .tag .remove span {
    font-size: 14px;
    line-height: 1.4;
}



.fmpe-product-editor .editor-attributes .add-attribute.small {
    display: none;
}

.fmpe-product-editor .editor-attributes .add-attribute.large {
    display: none;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px dashed #ddd;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    color: #6c6c6c;
    border-radius: 4px;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.fmpe-product-editor .editor-attributes .add-attribute.large:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-attributes .add-attribute.large span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ebebeb;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #939393;
    font-size: 1.5rem;
}

.fmpe-product-editor .editor-attributes .add-attribute.small.active {
    display: inline-block;
	color: #2271b1;
	text-decoration: underline;
}

.fmpe-product-editor .editor-attributes .add-attribute.large.active {
    display: flex;
}

.fmpe-product-editor .editor-attributes .attributes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fmpe-product-editor .editor-attributes .attributes .attribute {
    border: 2px dashed #ddd;
    padding: 20px;
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.fmpe-product-editor .editor-attributes .attributes .attribute:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-attributes .attributes .attribute:last-child {
    margin-bottom: 20px;
}

.fmpe-product-editor .editor-attributes .attributes .attribute label {
    position: absolute;
    left: calc(1rem - 5px);
    top: 0;
    transform: translateY(-70%);
    background: #fff;
    padding: 0 5px;
    pointer-events: none;
    color: #626262;
    font-size: 1rem;
}

.fmpe-product-editor .editor-attributes .attributes .attribute div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fmpe-product-editor .editor-attributes .attributes .attribute div .term {
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-weight: 600;
    background-color: #fff;
}



.fmpe-product-editor .editor-section.variations {
    opacity: 0;
    visibility: hidden;
}

.fmpe-product-editor.variable .editor-section.variations {
    opacity: 1;
    visibility: visible;
}

.fmpe-product-editor .editor-section.variations {
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 20px;
}

.fmpe-product-editor .editor-variations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fmpe-product-editor .editor-variations .variation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.fmpe-product-editor .editor-variations .variation:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .editor-variations .variation > div {
    flex: 1;
}

.fmpe-product-editor .editor-variations .variation .sku {
    text-align: center;
}

.fmpe-product-editor .editor-variations .variation .price {
    text-align: right;
}

.fmpe-product-editor .editor-section.variations .loader {
    display: none;
}

.fmpe-product-editor .editor-section.variations .loader.active {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(88 88 88 / 50%);
    z-index: 2;
}

.fmpe-product-editor .editor-section.variations .loader.active .fmpe-loader {
    width: 100px;
    height: 100px;
    border-width: 10px;
}

.fmpe-product-editor .variation-actions {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.fmpe-product-editor .variation-actions .variation-bulk label.ph {
    transform: translateY(-80%);
    opacity: 1;
}

.fmpe-product-editor .variation-actions .variation-bulk select {
    width: 100%;
    max-width: 100%;
}

.fmpe-product-editor .swal-bulk {
    display: flex;
    flex-direction: column;
    gap: 20px;
}




.fmpe-product-editor .fmpe-variation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fmpe-product-editor .fmpe-variation .product-sku label.ph {
    transform: translateY(-70%);
    opacity: 1;
}

.fmpe-product-editor.variable .fmpe-variation .editor-product-info .simple-info {
    display: grid;
}

.fmpe-product-editor .fmpe-variation .save-variation {
    background-color: #5cb85c;
}

.fmpe-product-editor .fmpe-variation .image .image-upload {
    width: 100px;
    cursor: pointer;
    display: inline-block;
}

.fmpe-product-editor .fmpe-variation .image .image-upload img {
    width: 100%;
}










.fmpe-product-editor-popup .fmpe-editor-attributes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-search-result {
    display: none;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-search-result.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-search-result .results {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-terms {
    display: none;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-terms.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-terms .terms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-terms .terms .new-term {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-type {
    display: none;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-type.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-type .choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-save {
    display: none;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-save.active {
    display: flex;
}

.fmpe-product-editor-popup .fmpe-editor-attributes .attribute-save .fmpe-button {
    background-color: #5cb85c;
}














.fmpe-product-editor .fmpe-checkbox input {
    display: none;
}

.fmpe-product-editor .fmpe-checkbox {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.fmpe-product-editor .fmpe-checkbox:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .fmpe-checkbox span {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #c5c5c5;
    border-radius: 2px;
    position: relative;
}

.fmpe-product-editor .fmpe-checkbox span::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 15%;
    transform: scale(0);
    width: 70%;
    height: 70%;
    transform-origin: center center;
    border-radius: 2px;
    background-color: #585858;
    transition: all 0.2s ease-in-out;
}

.fmpe-product-editor .fmpe-checkbox input:checked + span::before {
    transform: scale(1);
}









.fmpe-product-editor .fmpe-product-editor-popup {
    display: none;
}

.fmpe-product-editor .fmpe-product-editor-popup.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.fmpe-product-editor .fmpe-product-editor-popup .content {
    background-color: #fff;
    padding: 30px;
    width: 1000px;
    max-width: 100%;
    overflow-y: auto;
    --animate-duration: 0.3s;
    max-height: 70%;
}






.fmpe-product-editor-popup .fmpe-editor-categories {
    display: flex;
    gap: 20px;
}

.fmpe-product-editor-popup .fmpe-editor-categories > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fmpe-product-editor-popup .fmpe-editor-categories .new-category {
    flex: 0 0 30%;
}

.fmpe-product-editor-popup .fmpe-editor-categories .categories-list {
    max-height: 400px;
    overflow-y: auto;
}

.fmpe-product-editor-popup .fmpe-editor-categories .categories-list ul ul {
    padding-left: 20px;
}

.fmpe-product-editor-popup .fmpe-editor-categories .categories-list ul,
.fmpe-product-editor-popup .fmpe-editor-categories .categories-list ul li {
    margin: 0;
    list-style: none;
    padding: 0;
}













.fmpe-product-editor .fmpe-acf .fmpe-acf-header {
    cursor: pointer;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.fmpe-product-editor .fmpe-acf .fmpe-acf-header:hover {
    background-color: #f9f9f9;
}

.fmpe-product-editor .fmpe-acf .fmpe-acf-header.active span {
    transform: rotate(180deg);
}

.fmpe-product-editor .fmpe-acf .fmpe-acf-content {
    display: none;
    padding: 20px;
    background-color: #f3f3f3;
}

.fmpe-product-editor .fmpe-acf .fmpe-acf-content > div {
    flex: 1;
}

.fmpe-product-editor .fmpe-acf .fmpe-acf-content .acf-field {
    padding: 15px;
}

























body.single-product .woocommerce-product-gallery__wrapper {
    position: relative;
}

body.single-product .woocommerce-product-gallery__wrapper .fmpe-blurb {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    line-height: 2;
    border-radius: 4px;
    padding: .5rem 1rem;
    font-size: 14px;
    font-weight: 600;
}

body.single-product .woocommerce-product-gallery__wrapper .fmpe-blurb.sale {
    left: 40px;
}









@media ( max-width: 768px ) {

    .fmpe-product-editor {
        max-width: calc(100% - 10px);
        padding: 65px 5px;
        row-gap: 40px;
    }

    .fmpe-product-editor .header {
        position: fixed;
        background-color: #fff;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 50;
    }

    .fmpe-product-editor .header .return a {
        min-width: 50px;
    }

    .fmpe-product-editor .header .return a span {
        font-size: 1.5rem;
    }
    
    .fmpe-product-editor .header .title {
        display: none;
    }

    .fmpe-product-editor .header .update {
        padding-right: 0;
        padding: 10px;
    }

    .fmpe-product-editor .header .update a {
        padding: 10px 20px;
    }

    .fmpe-product-editor .editor-images {
        flex: 1 !important;
    }

    .fmpe-product-editor .editor-section {
        flex-direction: column;
    }

    .fmpe-product-editor .editor-product-info .simple-info {
        row-gap: 40px;
    }

    .fmpe-product-editor .editor-product-info div.half {
        grid-column: -1/1;
    }

    .fmpe-product-editor.variable .editor-product-info .variable-info {
        flex-direction: column;
        gap: 10px;
    }

    .fmpe-product-editor .editor-section.cat-tag {
        grid-template-columns: 1fr;
    }

    .fmpe-product-editor-popup .fmpe-editor-categories {
        flex-direction: column-reverse;
    }

    .fmpe-product-editor .editor-product-info {
        row-gap: 40px;
    }

    .fmpe-product-editor .editor-product-info .stock {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .fmpe-product-editor .editor-variations {
        grid-template-columns: 1fr;
    }

    .fmpe-product-editor .editor-categories, 
    .fmpe-product-editor .editor-tags {
        padding: 10px;
    }

    .fmpe-product-editor .editor-attributes .attributes .attribute {
        padding: 10px;
    }

    .fmpe-product-editor .variation-actions {
        grid-template-columns: 1fr;
    }

    .fmpe-product-editor .fmpe-acf .fmpe-acf-group {
        display: flex;
        flex-direction: column;
    }

    .fmpe-product-editor .fmpe-acf .fmpe-acf-group .acf-field {
        width: 100% !important;
        padding: 0;
    }

}
























.fmpe-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #3a3a3a;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 