body {
    overflow: hidden;
}

.main-pages {
    margin-right: 70px;
}

.media-editor {
    background-image: radial-gradient(circle 382px at 50% 50.2%, rgb(174 175 193) 0.1%, rgb(241 241 241) 100.2%);
    background-color: #503e9e00;
    height: calc(95dvh - var(--header-size));
    justify-content: center;
    width: 100%;
    display: flex;
    gap: 10px;
    align-content: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    border: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 50px;
    color: #060505 !important;
    box-sizing: border-box;
    max-width: 2000px;
    padding: 1vw;
    border-radius: 10px;
    margin: 2.5dvh auto;
    margin-top: 20px;
    overflow: hidden;
}

.z-close-style.history-close-js {
    color: #333;
    z-index: 1;
}

.z-pop-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 30%;
}

.media-editor .title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

/* .media-editor .z-close {
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    font-family: 'Line Awesome Free';
    font-weight: 900;
    font-size: 30px;
} */

.media-editor .z-close,
.z-close-style {
    position: absolute;
    right: 15px;
    top: 5px;
    cursor: pointer;
    font-family: 'Line Awesome Free';
    font-weight: 1000;
    font-size: 35px;
}

.media-editor .z-close:hover {
    color: #138DD4;
}

.media-editor .z-close:before {
    content: "\f00d";
}

.z-pop-cont {
    border: 1px solid #EAEAEA;
    height: calc(100dvh - 100px);
}

.prop,
.nprop {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
    border-left: 0;
    font-size: 13px;
    padding: 5px 0;
    border: 1px solid #d0d2d4;
    border-radius: 3px;
    color: #6e767c;
}

.prop.over-visible {
    overflow-y: visible;
}

input:disabled,
input[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.radio-buttons-inline input {
    display: none;
}

.radio-buttons-inline {
    display: flex;
    background-color: #000000;
    padding: 5px;
    gap: 10px;
    border-radius: 5px;
    align-items: start;
    min-width: 150px;
}

.radio-buttons-inline.select-dropcon select {
    text-align: center;
    background: #fff;
    padding: 4px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.radio-buttons-inline.select-dropcon {
    position: relative;
    min-width: 80px;
}

.radio-buttons-inline .open-select {
    color: #fff;
    width: 40px;
    text-align: center;
    position: absolute;
    background: #000;
    pointer-events: none;
    height: 100%;
    padding: 0;
    top: 0;
    right: 0;
    padding-top: 10px;
    box-sizing: border-box;
    border-radius: 5px;
}

.radio-buttons-inline.light {
    background-color: #F0F0F0;
}

.radio-buttons-inline.light .open-select {
    background: inherit;
    color: #333;
}


.radio-buttons-inline.evenly {
    justify-content: space-evenly;
}

.radio-buttons-inline label:not(.static) {
    position: relative;
    transform: translateX(0);
    opacity: 0.7;
    transition: transform 0.5s, opacity 0.5s;
}

/* Hover/checked state */
.radio-buttons-inline input:checked+label:not(.static),
.radio-buttons-inline label:hover:not(.static),
.ai-img-edits:hover {
    color: #333;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: rgb(209 209 209) 0rem 0rem 0.3rem 0rem;
    transform: translateY(1px);
    /* Using transform instead of left */
    opacity: 1;
    transition: transform 0.5s, opacity 0.5s;
}

.radio-buttons-inline label {
    padding: 5px 10px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    flex: auto;
    text-align: center;
}

.radio-buttons-inline.light label {
    color: #768490;
}


.radio-buttons-inline label.static {
    cursor: default;
}

.radio-buttons-inline input.isdisabled+label {
    display: none;
}

.input-button {
    padding: 5px;
    cursor: pointer;
}

.ai-img-create-model .scrollable-item {
    /* gap: 10px; */
}

.ai-img-create-model label {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.ai-img-create-model .inrow {
    display: flex;
    gap: 10px;
}

.ai-img-create-model .cl2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-img-create-model .cl1 img {
    width: 40px;
}

.ai-img-create-model .cl2 img {
    width: 60px;
}

.ai-img-create-model.radio-buttons-inline label:not(.static) {
    opacity: 0.5;
}

.edittool-details {
    display: none;
}

.edittool-details.active {
    display: block;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    background: #F0F0F0;
    color: #928f8f;
}

.edit label.scrollable-item-inner {
    padding-top: 68%;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #9a9a9a;
    color: #fff;
    opacity: 1;
}

#imedit-bgremove+label {
    background-image: url('../images/tools/bgremove.png');
}

#imedit-resolution+label {
    background-image: url('../images/tools/resolution.png');
}

#imedit-expand+label {
    background-image: url('../images/tools/expand.png');
}

#imedit-erase+label {
    background-image: url('../images/tools/erase.png');
}

#imedit-inpaint+label {
    background-image: url('../images/tools/inpaint.png');
}

#imedit-outpaint+label {
    background-image: url('../images/tools/outpaint.png');
}

#imedit-compress+label {
    background-image: url('../images/tools/compress.png');
}

#imedit-bgreplace+label {
    background-image: url('../images/tools/bgreplace.png');
}

#imedit-search+label {
    background-image: url('../images/tools/search.png');
}

#imedit-searchcolor+label {
    background-image: url('../images/tools/searchcolor.png');
}

#imedit-character2+label {
    background-image: url('../images/tools/character.png');
}

.labelText {
    color: #000;
    font-weight: bold;
    text-align: left;
}

.modelLabel .labelTextDetails {
    white-space: normal;
    text-align: left;
    font-size: 12px;
}

.psg {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-content: end;
    align-items: center;
    flex-wrap: wrap;
}

.z-inp-label {
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
    color: #768490;
}

.z-inp-label.bold {
    font-weight: bold;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.p-tabs {
    background-color: #96969670;
    display: flex;
    padding: 5px 10px 0 10px;
    border-radius: 10px 10px 0 0;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

.p-tab,
.j-tab {
    display: inline-block;
    padding: 5px 13px;
    color: #fff;
    cursor: pointer;
    width: 100%;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.p-tab:hover,
.p-tab.active {
    background-color: #fff;
    color: #333;
}

.z-popmedia .z-pop-inp {
    width: 250px;
}

.ai-img-create-model input.disabled+label {
    display: none;
}

.mediacon {
    display: flex;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.img-con {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow-y: auto;
    width: 100%;
}

.img-opt {
    background-color: #EAEAEA;
    height: 100%;
    display: none;
}

.img-optinner {
    width: 300px;
    padding: 10px;
    box-sizing: border-box;
}

.impreview {
    width: 100%;
    height: 155px;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid #d0d2d4;
    background-position: center;
}

#imgform,
#fileform,
#imgcustomform {
    min-width: calc(20% - 20px);
    margin: 20px 0;
    padding: 30px;
    cursor: pointer;
    height: 100%;
    min-height: auto;
    border: 2px dotted #EAEAEA;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow-y: auto;
    overflow-x: hidden;
}

.dz-message {
    font-size: 14px;
    color: #768490;
}

.dz-message::after {
    content: "\f382";
    font-size: 40px;
    color: #05CD99;
    font-family: 'Line Awesome Free';
    font-weight: 900;
    margin-right: 10px;
}

.myimages {
    /* margin: 10px; */
    padding: 5px;
    border: 1px solid #c3efff;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    border-radius: 10px;
    transition: 1s ease;
}

.myimages.active,
.myothers.active {
    border: 2px solid #9cf8fb;
    /* transform: scale(1.1); */
    transition: 1s ease;
    position: relative;
    z-index: 1;
}

#rcrop-size-label {
    display: block;
    text-align: right;
    margin-top: 10px;
}

.media-btn-con {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}

.media-btn-con.nbc2 .media-btn {
    width: 48%;
    margin-left: 0;
    text-align: center;
}

.media-btn-con.gap20 {
    background: #0e0e0e;
    border-radius: 5px;
}

.media-btn-col {
    display: flex;
}

.ai-img-edits {
    color: #fff;
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid #353535;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.ai-img-edits i {
    font-size: 16px;
}

.ai-img-edits:hover {
    border-color: #fff;
}

.ai-img-edits span {
    margin-left: 5px;
}

.media-btn {
    border-radius: 3px;
    display: inline-block;
    padding: 5px 15px;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    color: #fff;
}

.media-btn:hover {
    background-color: #97ACBB;
}

#rcrop-insert,
#other-insert {
    width: 100%;
    margin-top: 10px;
    margin-left: 0;
    background-color: #138DD4;
    text-align: center;
}

.rcrop-width-con {
    margin-top: 10px;
    border: 1px solid #d0d2d4;
    padding: 10px;
}

.dimg {
    position: absolute;
    background-color: #CA2424;
    cursor: pointer;
    color: #fff;
    padding: 2px 6px;
    display: none;
}

.z-popslider,
.z-popslider-default {
    float: right;
    position: relative;
    width: 100%;
    margin-top: 3px;
    margin-right: 20px;
}

.z-popslide {
    cursor: ew-resize;
    display: block;
    height: 20px;
    position: absolute;
    width: 20px;
    z-index: 1;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    background: #FFF;
    box-shadow: inset 0 1px 7px #F3F3F3, 0 3px 6px -3px #BBB;
    margin-top: -1.5px;
}

.z-popline {
    width: 100%;
    position: absolute;
    background-color: #d0d0d0;
    height: 3px;
    top: 8.5px;
    padding-right: 20px;
}

li:not(.sub)+.sub:before {
    content: "";
    border-left: 2px solid #d9d9d9;
    height: 24px;
    position: absolute;
    top: -10px;
    left: 18px;
    width: 5px;
}

.psg,
.vspacont {
    margin-bottom: 5px;
}

.psg .prop:first-child,
.psg .nprop:first-child {
    width: 100%;
}

.numgroup-top {
    display: flex;
    width: 100%;
}

.numgroup-unit span {
    margin: 3px;
    cursor: pointer;
    color: #b9b9b9;
}

.numgroup-unit span.active {
    color: #3b3b3b;
}

.slider-con {
    display: flex;
    width: 100%;
    margin: 5px 0;
}

.slider-con .prop {
    width: 60px;
    margin-left: 0;
}

.ai-image-side .inpcon {
    background-color: #F0F0F0;
    padding: 5px;
    gap: 10px;
    border-radius: 5px;
    min-width: 150px;
    box-sizing: border-box;
}

.inpcon.dark {
    background: #000;
}

.prop:invalid {
    box-shadow: none;
}

.audio-music-lyrics-input {
    height: 200px;
}

.ai-image-side {
    /*! position: absolute; */
    top: 0;
    /*! background: #fff; */
    width: 43%;
    /*! height: 100%; */
    /*! right: 38px; */
    /*! z-index: 9; */
    background-color: #96969670;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
}

.z-close-style:before {
    content: "\f00d";
}

.ai-con-animated,
.ai-img-preview-con {
    flex: 1;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(287deg, #f49959c2, #1328512b, #6167e2b0, #f49959b8, #20202840);
    background-size: 300% 300%;
    animation: borderAnimation 2s ease infinite;
    overflow: hidden;
    min-height: 200px;
}


.ai-con-animated::before,
.ai-img-preview-con::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #161414d4;
    margin: 2px;
    border-radius: 8px;
    z-index: 1px;
}

@keyframes borderAnimation {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.ai-img-preview-con.loading::before {
    content: "";
    width: 100%;
    height: 100%;
    background: #2f2a2aeb;
    position: absolute;
    z-index: 1;
}

.ai-image-side .loading .loader {
    display: block;
}

.ai-img-preview,
.preview-video {
    max-width: 95%;
    max-height: 95%;
    position: absolute;
}

.preview-audio {
    position: absolute;
}

.img-reference {
    position: relative;
    max-height: 150px;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}

.img-reference-select {
    min-height: 50px;
    background: gray;
    position: relative;
    background-color: #F0F0F0;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

.img-reference-select i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #768490;
    font-size: 22px;
}

.img-reference-select .delete {
    display: none;
    top: 2px;
    right: 2px;
    left: auto;
    transform: none;
    background: #fff;
    border-radius: 1px;
}

.img-reference-select.added .delete {
    display: block;
}

.added .img-reference-inp.label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 32ch;
    margin: 0 auto;
    padding-top: 35px;
    padding-bottom: 10px;
    font-size: 12px;
}

.img-reference-inp.label:empty {
    display: none;
}

.ai-img-preview-meta {
    text-align: center;
    font-size: 13px;
    margin-bottom: 10px;
    color: aliceblue;
}

.ai-image-side .loader {
    display: none;
    position: absolute;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
}

#ai-img-lottie {
    width: 300px;
    height: 300px;
    display: none;
    z-index: 1;
    position: absolute;
    max-height: 100%;
}

/* .ai-img-preloader .lds-roller {
    background: none;
    width: 80px;
    height: 80px;
    padding: 0;
    overflow: hidden;
} */

.ai-img-preloader .lds-roller div::after {
    background-color: #23cbe7;
}

.ai-img-preloader {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


.ai-img-style-preview {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
}

.ai-img-style-preview .description {
    font-size: 16px;
    color: #fff;
}

.ai-img-style-preview .category {
    color: #ffa1a1;
}

.ai-img-style-preview .myimages {
    position: relative;
    display: inline-block;
}

.ai-img-style-preview .preview-image {
    max-width: 250px;
    max-height: 150px;
}

.ai-img-style-preview .media-btn {
    width: auto !important;
    background: #838181;
    color: #fff;
}

.ai-img-style-preview .media-btn:hover {
    color: #333;
}

.ai-img-tools-con {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: flex-start;
}

/* .inline .ai-img-tools {
    font-size: 12px;
    border: 1px solid #cfd8df;
    width: 100%;
    text-align: center;
    background-image: url('https://siteuo.com/media/mba7wsncfjrhvogm/systhumb/1731488425_d65c9288a747adbf315d.png');
    background-size: 100%;
    background-repeat: no-repeat;
    padding: 5px;
    padding-top: 100px;
    cursor: pointer;
} */

.ai-image-side .ai-image-con {
    margin: 10px 0;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    min-height: 40%;
}

.ai-image-side .ai-img-tools {
    font-size: 13px;
    border: 1px solid #cfd8df;
    width: 100%;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
    box-sizing: border-box;
}

.ai-image-side .ai-img-tools.active,
.ai-image-side .ai-img-tools:hover {
    font-weight: bold;
}

.ai-img-tools-options {
    display: none;
}

.ai-img-tools-options.active {
    display: block;
    padding: 10px 0;
}

.ai-img-tools-options .ai-image-flex-col {
    width: 100%;
}


.toggler {
    display: flex;
    align-items: end;
    justify-content: end;
    margin-top: 5px;
    gap: 5px;
}

.ai-image-flex-col.flex-2 {
    flex: 2;
}

.toggler .ai-tooltipcon {
    /* width: 100%; */
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 5px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch input:checked+.slider {
    background-color: #7769D5;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #7769D5;
}

.switch input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.switch .slider.round {
    border-radius: 34px;
}

.switch .slider.round:before {
    border-radius: 50%;
}

.toggler .ai-tooltip {
    font-size: 14px;
    text-align: center;
    color: #768490;
    box-shadow: none;
    background: none;
}


.ai-image-side .media-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    position: relative;
    /* Added to support absolute positioning of pseudo-element */
}

.ai-img-tools-options .media-btn.special-border {
    overflow: visible;
    max-width: 250px;
    margin: 0;
}

.ai-img-tools-options .media-btn.special-border:before {
    transform: scale(1.015) !important;
}


.ai-image-side .media-btn.ai-img-styles {
    background: lavender;
    position: absolute;
    bottom: 14px;
    border-radius: 100px 100px 0 0;
    padding: 20px 20px 14px 20px;
    box-shadow: none;
}

.media-btn.ai-img-styles:before {
    content: "\f021";
    font-family: 'Line Awesome Free';
    font-weight: 900;
    color: #333;
    font-size: 22px;
}

.animated-border-btn {
    position: relative;
    /* Ensures proper positioning of the pseudo-element */
    overflow: hidden;
    /* Clips the pseudo-element */
}

.animated-border-btn::after {
    content: "";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-image:
        radial-gradient(circle, rgb(63, 237, 251) 0px, rgba(252, 70, 107, 0) 71%),
        linear-gradient(transparent, transparent),
        linear-gradient(transparent, transparent),
        linear-gradient(transparent, transparent);
    z-index: -1;
    pointer-events: none;
    background-position: 0px 0px, 100% 0px, 100% 100%, 0px 100%;
    animation: 4s linear 0s infinite normal none running borderRotate;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }



}



.ai-image-side .z-inp-label {
    display: block;
    margin-bottom: 5px;
}

.ai-image-side .prop {
    text-align: left;
    padding: 5px;
}

.ai-image-side .mb {
    margin-bottom: 10px;
}

.ai-image-flex {
    display: flex;
    align-content: end;
    align-items: baseline;
    gap: 2%;
    flex-wrap: wrap;
}

.no-wrap {
    flex-wrap: nowrap;
}

.ai-image-flex-vertical {
    display: flex;
    flex-direction: column;
}



.ai-image-flex.end {
    align-items: end;
}

.ai-image-flex.unset {
    align-items: unset;
}

.ai-image-flex.between {
    justify-content: space-between;
}

.ai-image-flex.endhalf {
    width: 50%;
    justify-content: end;
}

.ai-image-flex-col {
    flex: 1;
}

.ai-img-prompt-fields .ai-image-flex-col {
    flex: unset;
    width: 49%;
}

.ai-image-flex-col:last-child:nth-child(2n+1) {
    width: 100%;
}

.ai-img-con {
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    background: #fffffff7;
    flex: 1;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    border-style: inset;
    border: thick;
    border-top-style: solid;
    border-top-color: #ffffff;
    border-bottom-style: ridge;
}

.ai-img-con.editor .ai-image-flex-col {
    flex: initial;
    margin-bottom: 10px;
}

.ai-img-con.editor label {
    text-wrap: nowrap;
}

.prop.ai-img-can-size,
.prop.ai-img-can-zoom {
    min-width: 70px;
}

.ai-img-con.styles {
    overflow-y: auto;
}

.ai-image-flex.inspirecon {
    align-items: end;
    justify-content: space-between;
}

.ai-image-flex.inspirecon .media-btn {
    width: auto;
}

.ai-image-flex.inspirecon label {
    width: auto;
}

.ai-tooltip {
    color: #768490;
    text-align: center;
    font-size: 12px;
    background-color: #F0F0F0;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: rgb(209 209 209) 0rem 0rem 0.3rem 0rem;
}

.ai-tooltip:hover {
    background: #fff;
}

.ai-tooltip-details {
    position: absolute;
    background: #848484;
    bottom: 45px;
    left: 0;
    width: 200px;
    z-index: 1;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    box-shadow: rgb(45 35 66 / 23%) 0 2px 4px, rgb(45 35 66 / 8%) 0 7px 13px -3px, rgb(58 65 111 / 1%) 0 -3px 0 inset;
    line-height: 1.3;
    text-align: center;
    display: none;
}

.credit-submit-col {
    display: flex;
    gap: 20px;
    align-items: baseline;
    justify-content: center;
}

.credit-submit-col {
    position: fixed;
    bottom: 30px;
    /* background: #fff; */
    width: calc(35% - 1vw - var(--sidebar-size)) !important;
    height: 29px;
    padding: 10px 24px;
    z-index: 1;
    margin-left: -22px;
    background: white;
    border-radius: 0 0 5px 5px;
}

.tooltip-right .ai-tooltip-details {
    right: 0;
    left: auto;
}

.ai-tooltipcon .icon,
.ai-tooltip .icon {
    padding: 0 4px;
    border-radius: 50%;
    margin-left: 10px;
    border: 1px solid #768490;
    font-size: 11px;
}

input:not(:checked)+label.check-btn {
    background: #F0F0F0;
    color: #768490;
}

.creditInfo {
    position: relative;
    /* color: #768490;
    width: 50%;
    text-align: center;
    font-size: 12px;
    background-color: #F0F0F0;
    padding: 5px;
    border-radius: 5px; */
}

.ai-tooltipcon {
    position: relative;
}

.creditInfo:hover .ai-tooltip-details,
.ai-tooltipcon:hover .ai-tooltip-details {
    display: block;
}

.ai-img-con .inner {
    width: 100%;
    flex-wrap: wrap;
    align-content: flex-start;
    display: flex;
    overflow-y: auto;
    border: 1px solid #EAEAEA;
    border-radius: 15px;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.ai-img-con.styles .inner {
    flex-direction: column;
}

.ai-img-con .myimages {
    height: auto;
    aspect-ratio: 4/3;
    width: calc(25% - 20px);
    position: relative;
    align-self: stretch;
}

.style-fav {
    display: none;
    position: absolute;
    right: 0;
    color: #898585;
    top: 0;
    cursor: pointer;
    z-index: 1;
    background: #fff;
    padding: 2px 5px;
    border-radius: 0 0 0 10px;
}



.myimages:hover .style-fav {
    display: block;
}

.myimages:hover .style-fav.active,
.style-fav:hover {
    display: block;
    color: #5E4CCE;
}

.resp-grid {
    --columns: 3;
    gap: 10px;
}



.ai-img-con .myimages,
.ai-img-con .gallery-column {
    width: calc(100% / var(--columns) - 10px);
}

.ai-img-con .gallery-column .myimages {
    margin-top: 10px;
    width: 100% !important;
}

.myimages.activebig {
    border: 1px solid red;
    /* transform: scale(1.05); */
    transition: 1s ease;
}

.ai-img-con.multiselect .myimages::before {
    content: "\f067";
    font-family: 'Line Awesome Free';
    font-weight: 900;
    position: absolute;
    background: #eeeeeec2;
    top: 50%;
    left: 50%;
    transform: translate;
    translate: -50% -50%;
    padding: 10px 13px;
    box-sizing: border-box;
    border-radius: 50px;
    z-index: 1;
}

.ai-img-con.multiselect .myimages.activebig::before {
    content: "\f00c";
    background: #03ba03;
}

.myimages .label {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -1px;
    background: #efefef;
    left: -1px;
    border-radius: 0 0 10px 10px;
    padding: 1px;
    font-size: 14px;
}

.myimages img {
    width: 100%;
}

.ai-img-optinner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.ai-img-con.shapes .inner {
    align-content: center;
}

.ai-img-shape-con {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

#ai-img-canvas {
    border: 1px solid #EAEAEA;
    opacity: 0.8;
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    cursor: none;
}

.ai-img-canv-con {
    position: relative;
}

#ai-img-brush {
    position: absolute;
    pointer-events: none;
    --size: 50px;
    --zoom: 1;
    width: calc(var(--size) * var(--zoom));
    aspect-ratio: 1/1;
}

#ai-img-brush::before {
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: rgba(77, 77, 77, 0.79) 0rem 0rem 0.5rem 0.1rem;
    background: #fff;
    opacity: .9;
    content: "";
    width: 100%;
    height: 100%;
    display: block;
}

.ai-img-prompt-fields {
    flex-wrap: wrap;
}


.imedit-prompt .promptcpicker {
    flex: 1;
    cursor: pointer;
    color: transparent;
    border: 1px solid #d0d2d4;
}

#promptcpicker {
    position: absolute;
}

.ai-img-styles-head {
    width: 100%;
}

.ai-img-styles-body {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    min-height: 150px;
    flex: 1;
    overflow-y: auto;
    align-items: start;
}

.myimgcount {
    text-align: center;
    margin-bottom: 10px;
}

.myimgcount .media-btn {
    margin-left: 20px;
}

.ai-train-how {
    font-size: 12px;
    background: #fff;
    border-radius: 15px;
    margin: 20px 0;
    color: #768490;
    padding: 20px;
}

.ai-train-how strong {
    font-weight: bold;
}

.consistent-body {
    border: 1px solid #00e676;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.consistent-body .toggler {
    justify-content: center;
}

.consistent-body .small {
    font-size: 12px;
    color: #768490;
}

.consistent-body .style {
    color: #9b0404;
}

.consistent-body .category {
    color: #00e676;
}

/* .imedit-how-con {
    font-size: 12px;
    text-align: center;
    background-color: #F0F0F0;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    justify-content: center;
} */

.prompthtmlcon {
    position: relative;
}

.prompthtmldisabled {
    position: absolute;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #00000091 0%, #3e3d3d 50%, #00000091 100%);
}

#prompt-upgrade-button {
    width: auto;
    padding: 5px 20px;
}

#prompthtml {
    min-height: 70px;
    max-height: 200px;
    overflow-x: auto;
}

#prompthtml.small {
    max-height: 100px;
    overflow: hidden;
}

.media-btn.ai-train-how-toggle {
    width: auto;
    margin-left: 10px;
    margin-top: 0;
}

.media-btn.new-project {
    margin-bottom: 10px;
    align-self: flex-start;
}


#ai-crop-img {
    max-width: 100%;
    max-height: 100%;
}



.shapeSelect {
    background-color: #F0F0F0;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    display: none;
    justify-content: center;
    align-items: center;
    color: #768490;
    margin: 1%;
}

.shapeSelect.available {
    display: flex;
}

.shapeSelect:hover,
.shapeSelect.active {
    background-color: #7F8E98;
    color: #fff;
}



.ai-img-styles-head {
    width: 100%;
}

.ai-img-styles-groups {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn-group .btn-option {
    font-size: 14px;
    padding: 5px 20px;
    cursor: pointer;
}

.btn-group .btn-option.active,
.btn-group .btn-option:hover {
    box-shadow: rgb(209 209 209) 0rem 0rem 0.3rem 0rem;
    border-radius: 5px;
}

#project-types {
    margin-bottom: 10px;
    justify-content: center;
}

.ai-img-styles-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    width: auto;
}

.ai-img-scroll-con {
    background: #e4e2e2;
    padding: 10px 30px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid #d8d8d8;
    position: relative;
}



.ai-img-styles-head ul {
    padding: 0;
    margin: 0;
    font-size: 0;
}

.ai-img-styles-head li {
    list-style: none;
    font-size: 13px;
    width: 125px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    background: #f7f7f7;
    padding: 5px;
    border-radius: 5px;
    overflow: hidden;
}

.ai-img-styles-head li.active-temp {
    border-color: #12e83345;
}


.ai-img-styles-head img {
    width: 40px;
}


/* img style presets */
.ai-img-preset-con {
    display: flex;
    flex-wrap: wrap;
    gap: 1% .5%;
}

.ai-img-preset-con .presetSelect {
    width: 49.5%;
    box-sizing: border-box;
    display: none;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: rgb(209 209 209) 0rem 0rem 0.3rem 0rem;
    gap: 20px;
    padding: 20px;
    cursor: pointer;
}

.ai-img-preset-con .presetSelect.available {
    display: flex;
}

@media only screen and (max-width: 1000px) {
    .ai-img-preset-con .presetSelect {
        width: 100%;
    }
}

.ai-img-preset-con .presetSelect img {
    max-width: 100%;
}

.ai-img-preset-con .presetSelect .details {
    flex: 1;
}

.ai-img-preset-con .img {
    width: 40%;
}

.ai-img-preset-con .description {
    font-size: 13px;
}

.ai-img-preset-con .presetSelect:hover {
    box-shadow: rgb(139, 223, 69) 0rem 0rem 0.3rem 0rem;
}


.side-menu li {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .side-menu img {
    width: 30px;
} */

.side-menu {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-menu li {
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.side-menu li.active {
    background: #fff;
    color: #5d6064;
    border-radius: 15px 0px 0px 15px;
    left: 10px;
    font-size: xx-large;
}

.side-menu.active li {
    justify-content: start;
}

.side-menu .label {
    font-size: 0px;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}


.side-menu.active .label {
    font-size: 12px;
    margin-left: 10px;
}

#character .ai-img-set {
    padding: 0;
}

#character .scrollable-item-inner img {
    max-height: 150px;
}

#character .scrollable-item-wrap.animated {
    min-height: 165px;
}

#character .ai-img-tools {
    width: auto;
}

#character.ai-img-optinner {
    display: block;
}

#character .ai-con-animated {
    min-height: auto;
    padding: 20px;
    margin-bottom: 10px;
}

#character .ai-con-animated div {
    color: #959292;
    z-index: 1;
    margin: 10px;
    text-align: center;
}

#character .ai-tooltip {
    text-align: left;
}

.example-images-col {
    flex: 2;
}

.example-images-col label {
    text-align: center;
}

.example-images {
    display: flex;
    width: 100%;
    gap: 5px;
    margin-top: 20px;
    position: relative;
}

.example-images::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 100%;
    left: 10%;
    top: -12px;
    box-sizing: border-box;
    border: 2px solid #ced6dd;
}

.example-images .eximg {
    width: 100%;
    z-index: 1;
    border: 2px solid #ced6dd;
}

.example-images img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}

.ai-img-set {
    padding-bottom: 40px;
}

.face-swap .z-inp-label {
    margin-top: 15px;
}

#textCanvasToolbar {
    justify-content: space-between;
    margin-bottom: 10px;
}

#textCanvasToolbar .ai-image-flex-col {
    display: flex;
    gap: 20px;
    flex: unset;
}

#textCanvasToolbar .toolscol {
    width: auto;
}

.canvasEditor .slider-con {
    width: 200px;
}

.input-group.flex {
    display: flex;
    margin-top: 20px;
}


.canvasEditor .button {
    cursor: pointer;
    font-size: 16px;
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    /* padding: 0; */
    position: relative;
    padding: 0 5px;
    color: #4a4a4a;
}

.canvasEditor .button.down.full {
    position: static;

}

.canvasEditor .button.down.full .downcon {
    width: 100%;
    box-sizing: border-box;
}

.canvasEditor .button.down::after {
    font-family: "Font Awesome 5 Free";
    /* Make sure this matches your Font Awesome version */
    content: "\f0d7";
    /* Unicode for fa-caret-down */
    font-weight: 900;
    /* Font Awesome Solid weight */
    font-size: 12px;
    color: #606060;
    margin-left: 5px;
    /* Adjust spacing as needed */
}

.down .downcon {
    position: absolute;
    top: 37px;
    left: 0;
    z-index: 1;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    z-index: 2;
    padding: 10px;
}

.down.active .downcon {
    display: block;
}

.down.left .downcon {
    right: 0;
    left: unset;
}

#fillTypeButton .downcon {
    min-width: 150px;
}

.down .ulselect {
    list-style: none;
    text-align: left;
    padding: 5px;
    max-width: 250px;
    margin: 0;
}

.down .ulselect li {
    padding: 5px 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.down .ulselect li:hover {
    background: #eaeaea;
}

#textEditor {
    width: 100%;
    border: none;
    height: 70px;
    box-sizing: border-box;
}

.canvasEditor .textTools {
    display: flex;
    gap: 5px;
    position: relative;
    top: 0;
}

.fontSelect.input {
    width: 100%;
    box-sizing: border-box;
}

.ulselect.fontSelectDrop {
    background-color: #fff;
    max-height: 250px;
    margin-top: 0px;
    overflow-x: hidden;
    padding: 0;
    margin-top: 10px;
    width: 200px;
}

/* #colorPickerButton .sp-replacer {
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
} */

.colorPicker {
    width: 65px;
    border: 1px solid #d0d2d4;
}

.ai-img-con.history .myimages:hover {
    background-color: rgba(33, 35, 39, 1);
    /* border-radius: 10px 10px 0 0; */
    min-height: 195px;
    border: none;
}

.ai-img-con.history .inner {
    align-items: start;
}

.ai-img-con.history .myimages {

    aspect-ratio: auto;
}

.ai-img-con.history .myimages.video video {

    width: 100%;
}

.ai-img-con.history .myimages.type-placeholder {
    aspect-ratio: 16/9;
}



.ai-img-con.history .myimages.type-placeholder img {
    display: none;
}

.ai-img-con.history .myimages.audio {
    background-image: url(../images/tools/audio.png);
    aspect-ratio: 3/1;
    background-size: 48px;
}

.myimages.audio .mlabel {
    text-align: center;
    display: block;
    position: absolute;
    bottom: 8px;
    width: 100%;
    font-size: 12px;
}

.ai-img-con .input-group {
    display: flex;
    margin-top: -5px;
    width: 200px;
    height: 30px;
}

.ai-img-con .input-group i {
    font-size: 22px;
    color: #878787;
    margin: 8px;
}

.ai-img-con .slider-con .prop {
    display: block;
    height: 27px;
}

.ai-img-con.history .radio-buttons-inline {
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.filter-history {
    color: #768490;
    font-size: 13px;
    margin-right: 20px;
    position: relative;
}

.filter-body {
    display: none;
    position: absolute;
    z-index: 2;
    background: #fff;
    padding: 10px 15px;
    box-sizing: border-box;
    right: 0;
    top: 100%;
    border-radius: 5px;
    box-shadow: rgb(209 209 209) 0rem 0rem 0.3rem 0rem;
    margin-top: 10px;
}

.filter-history.active .filter-body {
    display: block;
}

.filter-head i {
    font-size: 22px;
}

.radio-buttons-inline label.filter-head {
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
    padding: 2px 10px;
}

.filter-head:hover {
    color: #333;
    background: #fff;
}

.filter-history li {
    list-style: none;
    cursor: pointer;
    padding: 5px 15px;
}

.filter-history li:hover {
    color: #333;
}

.filter-history li.active {
    color: #333;
    font-weight: bold;
}

.filter-history #clear {
    display: none;
}

.filter-history .active~#clear {
    display: block;
}



.blackover {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    background: #33333361;
    width: 100dvw;
    height: 100dvh;
}

.vdirs {
    z-index: 10;
    display: none;
    position: fixed;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1.4;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 600px;
    height: clamp(50vh, 100%, 400px);
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #768490;
    border: 1px solid #EAEAEA;
    width: clamp(50vw, 100%, 600px);
}

.vdirs .row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    border-bottom: 1px solid #5E5858;
    padding: 10px;
    color: #fff;
}

.vdirs .title {
    font-size: 18px;
}

.vdirs .row.buttons {
    margin-top: 20px;
}

.vdirs .inside {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 20px;
}

.vdirs .projects {
    background: #454545;
    flex: 1;
    padding: 20px;
    overflow-x: auto;
}

.vdirs .row-buttons {
    display: flex;
    gap: 20px;
    justify-content: end;
}

.vdirs .label {
    background: transparent;
    border: none;
    color: #fff;
}

.vdirs #moveto {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.vdirs#new .txtlabel {
    display: none;
}

.vdirs#move input,
#dirupload input,
#dirupload .media-btn {
    display: none;
}

.vdirs#move .list .row {
    cursor: pointer;
}

.vdirs#move .row-buttons {
    display: none;
}


.projects .myimages .label {
    font-size: 12px;
    padding: 5px 0;
}


.generation-select-mode .z-pop-inner {
    position: fixed !important;
    top: 0px;
    left: 0px;
    z-index: 9;
    width: 100vw;
    height: 100vh;
    padding: 2%;
    box-sizing: border-box;
    background: #fff;
}

.generation-select-mode #styles.p-tab,
.generation-select-mode #project-types .option,
.generation-select-mode .projects .radio-buttons-inline,
.generation-select-mode .radio-buttons-inline #enable {
    display: none;
}

.generation-select-mode.img #project-types #images,
.generation-select-mode.vid #project-types #videos {
    display: block;
}



/* reset list */
#task-list {
    bottom: 0;
    list-style: none;
    margin: 0;
    position: absolute;
    z-index: 9;
    background: #fff;
    right: 8px;
    margin-bottom: 35px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    padding: 0;
    width: 300px;
    text-align: right;
}

#task-list:empty {
    display: none;
}

/* each card */
#task-list .task {
    display: none;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px;
}

:root {
    /* task colors */
    --task-waiting: #6c757d;
    --task-working: #007bff;
    --task-done: #28a745;
    --task-error: #dc3545;
}


.task.waiting {
    /* border-color: var(--task-waiting); */
    --task-color: var(--task-waiting);
}

.task.working {
    /* border-color: var(--task-working); */
    --task-color: var(--task-working);
}

.task.done {
    /* border-color: var(--task-done); */
    --task-color: var(--task-done);
}

.task.error {
    /* border-color: var(--task-error); */
    --task-color: var(--task-error);
}

#task-list.group-working .group-working,
#task-list.group-done .group-done,
#task-list.group-error .group-error {
    display: flex;
}



#task-list .task .status {
    color: var(--task-color);
}

#task-list .task .progress {
    background-color: var(--task-color);
}


/* optional thumbnail/icon */
#task-list .task .thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    background: #f0f0f0;
}

/* main text & progress column */
#task-list .task .details {
    flex: 1;
}

/* filename + size */
#task-list .task .file-info {
    font-size: 13px;
    text-align: left;
    color: #768490;
    margin-bottom: 3px;
}

#task-list .task .label {
    font-weight: 500;
    color: #2d3748;
}

/* progress bar container */
#task-list .task .progress-bar {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

/* fill */
#task-list .task .progress {
    height: 100%;

    width: 0%;
    /* → set inline or via JS */
    transition: width 0.3s ease;
}

/* right-side meta (status text + cancel) */
#task-list .task .meta {
    display: flex;
    align-items: center;
    margin-left: 16px;
    white-space: nowrap;
}

#task-list .task .status {
    font-size: 13px;
    margin-right: 12px;
    text-transform: capitalize;
}

#task-list .task .status.done {
    cursor: pointer;
}

#task-list .close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #a0aec0;
    cursor: pointer;
}

#task-list .close:hover {
    color: #e53e3e;
}

.fileprogress {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
}

.fileprogress .progress-bar {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.fileprogress .progress {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    background-color: var(--task-color);
}

.fileprogress .file-info {
    font-size: 13px;
    text-align: left;
    color: var(--task-color);
    margin-bottom: 3px;
    text-align: center;
}



/* Container */
.queue-bar {
    display: inline-flex;
    align-items: center;
    background: #fff;
    /*! border: 1px solid #e0e0e0; */
    /*! border-radius: 24px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    position: absolute;
    z-index: 5;
    bottom: 0px;
    right: 0;
    width: 100%;
    justify-content: end;
}

.audionotify {
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.audionotify.mute {
    color: red;
}

.queue-bar .audionotify.mute i::before {
    content: "\f6a9";
}

/* Each segment */
.queue-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
}

.queue-item:last-child {
    border-right: none;
}

/* Icon */
.queue-item i {
    font-size: 18px;
    margin-right: 6px;
    line-height: 1;
}

/* Labels */
.queue-item .label {
    margin-right: 6px;
}

/* Badge */
.queue-item .badge {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #333;
    font-size: 12px;
    line-height: 1;
}

/* State colors */
.queue-item.waiting i,
.queue-item.waiting .label {
    color: #6c757d;
}

/* waiting (gray) */
.queue-item.waiting i,
.queue-item.waiting .label {
    color: var(--task-waiting);
}

/* working (blue) */
.queue-item.working i,
.queue-item.working .label {
    color: var(--task-working);
}

/* done (green) */
.queue-item.done i,
.queue-item.done .label {
    color: var(--task-done);
}

/* error (red) */
.queue-item.error i,
.queue-item.error .label {
    color: var(--task-error);
}

/* red */

/* Spinner animation */
.queue-item.working.active i.la-spinner {
    animation: spin 1s linear infinite;
}

/* Keyframes for spin */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* If screen <= 1024px, use 3 columns */
@media only screen and (max-width: 1400px) {
    .resp-grid {
        --columns: 3;
    }
}

/* If screen <= 768px, use 2 columns */
@media only screen and (max-width: 1100px) {
    .resp-grid {
        --columns: 3;
    }
}

/* If screen <= 480px, use 1 column */
@media only screen and (max-width: 850px) {
    .resp-grid {
        --columns: 2;
    }
}

@media only screen and (max-width: 450px) {
    .resp-grid {
        --columns: 1;
    }
}

@media only screen and (max-width: 1250px) {

    .sidebar {
        display: none;
    }

    .main-content {
        padding-left: 0;
    }

    .media-editor .z-pop-inner {
        left: 0;
        width: 100%;
        background: #fff;
        box-sizing: border-box;
        z-index: 2;
        position: absolute !important;
        /* transition: all .5s ease 0s; */
        overflow: hidden;

        /* --top: calc(100dvh - 30px); */
        top: calc(100dvh - 60px);
        /* height: calc(100dvh - var(--top)); */
    }

    .media-editor .z-pop-inner.active {
        top: calc(var(--header-size) + 10px);
        /* height: calc(100dvh - var(--header-size) - 10px); */



        /* --top: ; */
        top: var(--header-size);
        height: calc(100dvh - var(--header-size));

    }


    .media-editor .p-tabs {
        border-radius: 0;
    }

    .swipe-con {
        cursor: pointer;
        background: #E1E0E0;
    }

    .swipe {
        height: 20px;
        width: 50px;
        border-radius: 5px;
        margin: 5px auto;
        text-align: center;
        transform: scaleX(1.5);
        background: #ebebeb;
    }

    .swipe::before {
        font-family: 'Line Awesome Free';
        font-weight: 900;
        content: "\f102";
        font-size: 20px;
        color: #333;
    }

    .z-pop-inner.active .swipe::before {
        content: "\f103";
    }

    .swipe-con:hover .swipe {
        background: #d4d4d4;
    }

    .ai-img-con .ai-img-styles-title {
        /* font-size: 12px;
        padding: 3px 9px;
        margin: 3px; */
    }

    .ai-img-con .ai-img-styles-head li {
        display: flex;
        justify-content: space-evenly;
        width: auto;
        align-items: center;
        gap: 5px;
    }

    .ai-img-con .ai-img-styles-head img {
        width: 30px;
    }

    .media-editor .ai-image-side .ai-img-tools,
    .special-border {
        /* padding: .5em; */
    }

    .media-editor .media-btn-con {
        margin-top: 0;
    }

    .media-editor .ai-image-flex.inspirecon {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .media-editor .ai-image-flex.endhalf {
        width: 100%;
    }

    #textCanvasToolbar {
        justify-content: end;
        gap: 10px;
    }

    .ai-image-flex-col.textcol {
        order: 1;
    }

    .textTools {
        flex-wrap: wrap;
    }

    .sp-container {
        left: 0 !important;
        top: 0px !important;
        width: 100% !important;
    }

    .sp-palette .sp-thumb-el {
        width: 29px;
        height: 29px;
        margin: 3px;
    }

    .sp-palette-container {
        width: 100% !important;
    }

    .sp-palette {
        max-width: 100%;
    }

    .sp-picker-container {
        width: 100%;
        background: #ffffff;
        box-sizing: border-box;
    }

    ul.side-menu {
        position: absolute;
        top: 0px;
        right: 90px;
        z-index: 3;
        margin: 0px;
        background: rgb(255, 255, 255);
    }

    .side-menu.active li {
        display: flex;
    }

    ul.side-menu li,
    ul.side-menu li.active {
        height: var(--header-size);
        box-sizing: border-box;
        font-size: 22px;
        display: none;
        height: var(--header-size);
        box-sizing: border-box;
        font-size: 22px;
        left: 0;
    }

    ul.side-menu li.active {
        display: flex;
        border-radius: 0;
        color: #000;
    }

    .side-menu li.active::before {
        background: none !important;
    }

    .ai-img-style-preview .description {
        display: none;
    }
}