.ariawp-imed-ctn{
    /*--aqai-purple: #00ACC1;*/
}
.ariawp-imed-ctn{
    width: 1200px;
    height: 600px;
    position: fixed;
    z-index: 9999;
    background: #f9f9f9;
    box-shadow: 0px 1px 12px #00000036;
    left: 300px;
    top: 100px;
    border: 1px solid #f5f5f5;
    z-index: 999999999999;
}
.ariawp-imed-heading{
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #f5f5f5;
}
.ariawp-imed-hs-span{
    font-size: 15px;
    line-height: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    column-gap: 5px;
}
.ariawp-imed-hs-close{
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 50px;
    background: #ffffff;
    opacity: .5;
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 5
}
.ariawp-imed-hs-close:hover {
    opacity: 1;
}
.ariawp-imed-insider{
    width: calc(100% - 50px);
    height: 100%;
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    float: left;
    position: relative;
    box-sizing: border-box;
    padding: 0 5px;
}
.ariawp-imed-right{
    box-sizing: border-box;
    overflow: auto;
    overflow-x: hidden;
    padding-top: 8px;
}

.ariawp-imed-ac-itempar{
    padding: 10px 10px;
    row-gap: 10px;
    display: flex;
    flex-direction: column;
}
.ariawp-imed-ac-itempar-button{
    margin-top: 20px;
}
.ariawp-imed-ac-itempar-row {
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}
.ariawp-imed-ac-itempar-row span{
    /*padding: 0px 3px;*/
}

.ariawp-imed-ctn .aqai-input-insider textarea,
.ariawp-imed-ctn .aqai-input-insider textarea:focus {
    padding: 12px !important
}

.ariawp-im-editor-top{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: 15px 20px;
    padding-top: 10px;
}
.ariawp-im-editor-selection-type,
.ariawp-im-editor-top-row{
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    position: relative;
}
.ariawp-im-editor-selection-type{
    margin-left: auto;
}
.ariawp-im-editor-top-row .aqai-slider-input-ctn input{
    font-weight: 500;
    text-align: right !important;
    padding-right: 0px !important;
}

.ariawp-im-image-ctn{
    padding: 20px;
    padding-top: 0px;
}
.ariawp-im-image-editor{
    min-height: 360px;
    background: #fffbfb;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ariawp-im-image-editor-justimage{
    background: #fffbfb;
}
.ariawp-im-image-editor img{
    width: auto;
    max-height: 320px;
    float: left;
    opacity: 0;
}
.ariawp-canvas-drawing,
.ariawp-canvas-preview{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
}
.ariawp-canvas-drawing{
    z-index: 2;
    opacity: 0;
}
.ariawp-im-image-editor > div{
    position: relative;
}
.ariawp-im-image-ctn[data-should-reset="true"] .ariawp-im-image-editor{
    opacity: 0;
    visibility: hidden;
}
.ariawp-im-editor-reset-ctn{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.ariawp-btn-nbg,
.ariawp-btn-nbg:hover{
    background: unset !important;
    box-shadow: unset !important;
    border: unset !important;
    transform: unset !important;
}
.ariawp-im-editor-selection-type button{
    padding: 0px 0px !important;
    color: #3c434a;
}
.ariawp-generating-images > div{
    padding-left: 10px;
    padding-right: 10px;
}
.ariawp-gen-images-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
    row-gap: 15px;
}
.ariawp-gen-im-item {
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f7f7f7;
}
[data-theme="light"] .ariawp-gen-im-item > span{
    opacity: .4;
}

[data-theme="dark"] .ariawp-gen-im-item,
[data-theme="dark"] .aqai-image-error-ctn {
    border-color: #f4f5f603 !important
}
.aqai-floating-ai-answer-images-list[data-loading="true"] .ariawp-gen-im-item{
    height: 140px;
}
.ariawp-gen-im-item .aqai-round-spin-icon{
    right: 5px !important;
    top: 5px !important;
    bottom: unset !important;
}
[data-theme="dark"] .ariawp-gen-im-item-loading {
    color: #fff;
}

.aqai-image-error-ctn {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px 10px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #f7f7f7;
    text-align: center;
}
.aqai-image-error-ctn svg{
    opacity: .8;
}
.aqai-image-error-txt{
    opacity: .5;
    font-size: 12px;
    font-weight: 600;
}


@-webkit-keyframes aqai-image-loading {
    from {
        left: -60%;
    }

    to {
        left: 120%;
    }
}

@keyframes aqai-image-loading {
    from {
        left: -60%;
    }

    to {
        left: 120%;
    }
}

.ariawp-gen-images-actions{
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
    row-gap: 15px;
    padding: 15px 10px;
}
.ariawp-gen-refine-imagepr > .aqai-input-ctn{
    padding: 10px 0px;
}
.ariawp-imed-sidebar-menu .aqai-sdbr-menu-item-tooltip {
    background: #222121;
    color: #fff;
}
[data-theme="dark"] .ariawp-imed-ctn{
    border-color: #272b3d;
    background: #212638;
    color: #fff;
}

[data-theme="dark"] .ariawp-imed-heading {
    background: #1a1a1a;
}
[data-theme="dark"] .ariawp-im-expand-size,
[data-theme="dark"] .ariawp-gen-im-item,
[data-theme="dark"] .aqai-image-error-ctn,
[data-theme="dark"] .ariawp-im-image-editor,
[data-theme="dark"] .ariawp-imed-ac-type-item,
[data-theme="dark"] .ariawp-im-image-editor-justimage,
[data-theme="dark"] .ariawp-imed-ctn .aqai-input-insider,
[data-theme="dark"] .ariawp-imed-ctn .aqai-dropwdown[data-enablebr="true"]{
    border-color: #f4f5f60d;
    background: #ffffff03;
}
[data-theme="dark"] .ariawp-imed-hs-close{
    background: #292f45;
}

[data-theme="dark"] .ariawp-imed-ctn .aqai-input-insider input,
[data-theme="dark"] .ariawp-imed-ctn .aqai-input-insider textarea,
[data-theme="dark"] .ariawp-im-editor-selection-type button,
[data-theme="dark"] .ariawp-btn-reset-size{
    color: #fff;
}
[data-theme="dark"] .ariawp-imed-ctn .aqai-dropwdown[data-enablebr="true"] .aqai-dropdown-choices,
[data-theme="dark"] .aqai-toggleset-ctn{
    border-color:#272b3d;
    background-color: #212638;
}
[data-theme="dark"] .aqai-dropdown-item:hover{
    background: #252b3f;
}
[data-theme="dark"] .aqai-slider-content>div {
    background-color: #2a3145;
}
[data-theme="dark"] .ariawp-imed-sidebar-menu .aqai-sdbr-menu-item-tooltip {
    background: #fff;
    color: #212638;
}
.ariawp-imed-sidebar-ctn{
    width: 50px;
    height: calc(100% + 2px);
    margin-left: -1px;
    margin-top: -1px;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 15px;
    background: var(--aqai-purple);
}
.ariawp-imed-sidebar-menu{
    margin-top: auto;
    margin-bottom: 20px;
}
.ariawp-imed-sidebar-menu .ariawp-imed-ac-type-item{
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    color: #fff;
}

.ariawp-imed-ac-type-item .aqai-sdbr-menu-item-icon-ctn{
    display: flex;
    width: 35px !important;
    height: 35px !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    border-radius: 50px !important;
}
.ariawp-imed-sidebar-icon{
    color: #FFF;
}
.ariawp-imed-current-credtis{
    position: absolute;
    right: 0;
    bottom: 2px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    color: #fff;
    background: #25212e;
    line-height: 1em;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: all .2s ease;
    text-transform: capitalize;
    z-index: 1;
    opacity: 0.8;
    cursor: default;
}
.ariawp-imed-current-credtis:hover{
    opacity: 1;
}
.ariawp-imed-sidebar-menu .ariawp-imed-ac-type-item[data-active="true"] .aqai-sdbr-menu-item-icon-ctn {
    background: #fff;
}

.ariawp-imed-current-type {
    position: absolute;
    left: 2px;
    bottom: 2px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    color: #fff;
    background: var(--aqai-purple);
    line-height: 1em;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: all .3s ease;
    text-transform: capitalize;
    opacity: 0;
    cursor: default;
    overflow: hidden;
}
.ariawp-imed-ctn:hover .ariawp-imed-current-type{
    opacity: 1;
    left: 52px;
}
.ariawp-imed-sidebar-menu .ariawp-imed-ac-type-item[data-active="true"] .aqai-sdbr-menu-item-icon{
    color: var(--aqai-purple) !important;
}

.ariawp-imed-ctn .aqai-slider-input-ctn .aqai-input-element input{
    text-align: right !important;
    padding-right: 0px !important;
    margin-left: 10px !important;
}
.ariawp-imed-ctn .aqai-slider-ctn .aqai-txt-bold{
    font-size: 12px;
}
.ariawp-imed-ctn .aqai-slider-content > div{
    height: 3px;
}
.ariawp-imed-ctn .aqai-slider-content>div>div:nth-of-type(2)>div{
    height: 10px;
    width: 20px;
    border-radius: 12px;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.ariawp-imed-ac-itempar-enhance-row{
    margin-top: 15px;
    row-gap: 15px;
}
.ariawp-imed-new-resolution{
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
}
.ariawp-imed-new-resolution .aqai-input{
    opacity: .5;
}
.ariawp-imed-new-resolution input{
    text-align: center;
}
.ariawp-imed-ac-itempar-row[data-type="resolution"]{
    row-gap: 15px;
    margin: 15px 0px;
}
[data-screen="enhance"] .ariawp-imed-left,
[data-screen="upscale"] .ariawp-imed-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ariawp-im-image-editor-justimage {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ariawp-im-image-editor-justimage img{
    max-width: 90%;
    max-height: 90%;
}

.ariawp-im-expand-top{
    display: flex   ;
    align-items: flex-start;
    justify-content: center;
    column-gap: 10px;
    row-gap: 15px;
    padding: 15px 10px;
}
.ariawp-im-expand-size-tltp{
    font-size: 10px;
    color: #3a3838;
    position: absolute;
    bottom: 0px;
    right: 20px;
    text-align: center;
    font-weight: 400;
    opacity: .5;
    transition: all .1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1em;
}
.ariawp-im-expand-size-tltp[data-active="true"]{
    font-size: 12px;
    opacity: 1;
    color: #fff;
    padding: 8px 10px;
    background-color: var(--aqai-purple);
    border-radius: 3px;
    transform: scale(1.4);
    transform-origin: center center;
}

.ariawp-im-expand-size{
    font-size: 12px;
    padding: 5px 20px;
    border: 1px dashed transparent;
    border-radius: 3px;
    cursor: pointer;
}

.ariawp-im-expand-size:hover{
    border-color: var(--aqai-purple);
}

.ariawp-im-expand-size[data-active="true"]{
    color: #fff;
    border-color: var(--aqai-purple);
    background: var(--aqai-purple);
    font-weight: 600;
}

.ariawp-btn-reset-size{
    background: unset !important;
    box-shadow: unset !important;
    border: unset !important;
    transform: unset !important;
    height: 32px;
    width: 32px;
    margin-right: -15px;
}

.ariawp-im-expand-ctn{
    height: 470px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfc;
}
.ariawp-im-expand-ctn-inner{
    width: inherit;
    height: inherit;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*
1:1    - 1024 x 1024
2:3    - 832 x 1216
3:2    - 1216 x 832
4:5    - 896 x 1088
5:4    - 1088 x 896
9:16  - 768 x 1344
16:9   - 1344 x 768
*/
.ariawp-im-expand-area{
    background-image: linear-gradient(to bottom, transparent 50%, #fff 50%),
        linear-gradient(to bottom, transparent 50%, #ccc 50%),
        linear-gradient(to right, #fff 50%, #ccc 50%),
        linear-gradient(to right, transparent 50%, #ccc 50%);
    background-size: 6px 6px, 6px 6px;
}
.ariawp-current-image-ctn{
    cursor: move;
}
.ariawp-current-image{
    width: inherit;
    height: inherit;
    float: left;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.ariawp-im-expand-area[data-size="1:1"],
.ariawp-current-image-ctn[data-size="1:1"]{
    width: calc(1024px / 3);
    height: calc(1024px / 3);
}
.ariawp-im-expand-area[data-size="2:3"],
.ariawp-current-image-ctn[data-size="2:3"]{
    width: calc(832px / 3);
    height: calc(1216px / 3);
}
.ariawp-im-expand-area[data-size="3:2"],
.ariawp-current-image-ctn[data-size="3:2"]{
    width: calc(1216px / 3);
    height: calc(832px / 3);
}
.ariawp-im-expand-area[data-size="4:5"],
.ariawp-current-image-ctn[data-size="4:5"]{
    width: calc(896px / 3);
    height: calc(1088px / 3);
}
.ariawp-im-expand-area[data-size="5:4"],
.ariawp-current-image-ctn[data-size="5:4"]{
    width: calc(1088px / 3);
    height: calc(896px / 3);
}
.ariawp-im-expand-area[data-size="9:16"],
.ariawp-current-image-ctn[data-size="9:16"]{
    width: calc(768px / 3);
    height: calc(1344px / 3);
}

.ariawp-im-expand-area[data-size="16:9"],
.ariawp-current-image-ctn[data-size="16:9"]{
    width: calc(1344px / 3);
    height: calc(768px / 3);
}

/*
    Resize Handle
*/
.react-resizable {
    position: relative;
}

.react-resizable-handle {
    position: absolute;
    width: 5px;
    height: 5px;
    padding: 0 3px 3px 0;
    border-bottom: 3px solid var(--aqai-purple);
    border-right: 3px solid var(--aqai-purple);
    right: -4px !important;
    bottom: -4px !important;
    opacity: .5;
    transition: all .1s ease-in-out;
}
.ariawp-im-expand-area:hover .react-resizable-handle{
    width: 12px;
    height: 12px;
    right: -6px !important;
    bottom: -6px !important;
    opacity: 1;
}

.react-resizable-handle-sw {
    bottom: 0;
    left: 0;
    cursor: sw-resize;
    transform: rotate(90deg);
}

.react-resizable-handle-se {
    bottom: 0;
    right: 0;
    cursor: se-resize;
}

.react-resizable-handle-nw {
    top: 0;
    left: 0;
    cursor: nw-resize;
    transform: rotate(180deg);
}

.react-resizable-handle-ne {
    top: 0;
    right: 0;
    cursor: ne-resize;
    transform: rotate(270deg);
}

.react-resizable-handle-w,
.react-resizable-handle-e {
    top: 50%;
    margin-top: -10px;
    cursor: ew-resize;
}

.react-resizable-handle-w {
    left: 0;
    transform: rotate(135deg);
}

.react-resizable-handle-e {
    right: 0;
    transform: rotate(315deg);
}

.react-resizable-handle-n,
.react-resizable-handle-s {
    left: 50%;
    margin-left: -10px;
    cursor: ns-resize;
}

.react-resizable-handle-n {
    top: 0;
    transform: rotate(225deg);
}

.react-resizable-handle-s {
    bottom: 0;
    transform: rotate(45deg);
}

[data-theme="dark"] .ariawp-im-expand-ctn{
    background: #242939;
}
[data-theme="dark"] .ariawp-im-expand-size-tltp{
    color: #fff;
}
[data-theme="dark"] .ariawp-im-expand-area{
    background-image: linear-gradient(to bottom, transparent 50%, #211e1e 50%),
    linear-gradient(to bottom, transparent 50%, #333 50%),
    linear-gradient(to right, #211e1e 50%, #333 50%),
    linear-gradient(to right, transparent 50%, #333 50%);
}

[data-screen="enhance"] .ariawp-im-image-editor-justimage{
    background: none;
}