#prompt-textarea {
    border: 1px dashed #d9d9d9;
    border-radius: 12px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 14px;
    line-height: normal;
}

#prompt-textarea:focus,
#prompt-textarea:active,
#prompt-textarea:hover {
    border-color: #01C4D5;
    box-shadow: unset;
}

.select-box {
    padding: 8px 12px;
    height: 60px;
}

.select-popup {
    z-index: 100;
    background: #fff;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 6px;

    padding: 8px 0;
}

.select-popup button {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid rgb(224, 224, 224);
    border-image: initial;
    background-color: transparent;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    color: rgb(51, 51, 51);
}

.select-popup button.selected,
.select-popup button:focus {
    background: #02b1d0;
    color: #fff;
    font-weight: 700;
}

.form-render-ai {
    height: 100%;
}

.form-render-ai .group-form-data {
    position: relative;
    max-height: calc(100% - 100px);
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.form-render-ai .button-absolute {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    bottom: 0;
}

.form-bg-left .button-check-upload .form-check {
    margin: 10px 5px !important;
}

.form-bg-left .box-button-drag-modal,
.button-drag-modal span.text-highlight {
    font-size: 16px !important;
}

.form-bg-left .box-button-drag-modal {
    padding: 30px 10px !important;
}

.group-button-render .button-edit {
    background: linear-gradient(90deg, #01C4D5 0%, #02B1D0 100%);
}

.list-img-render {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #fff;
}


.form-bg-right .box-img-render-main .img {
    align-items: start;
    flex: 1 1;
    justify-content: space-between;
    gap: 0;
}

.group-img-button-mobile {
    height: 100%;
}

.form-bg-right .box-img-render-main .list-img-render {
    height: 100%;
}

.btn-refresh-img {
    z-index: 99;
}

.image-select-button {
    background: #ffffff;
    border: 1px solid #e2e8f0 ;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5E6378;
}

.image-select-button:focus,
.image-select-button:hover,
.image-select-button:active {
    border-color: #02B1D0 !important;
    background-color: #E5F9FF;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: max-content;
    gap: 10px;
    max-height: var(--vh) * 80;
    overflow-y: auto;
    padding: 8px;
    min-height: var(--vh) * 60;
}

.desc_model {
    position: relative;
    /* left: 50%; */
    /* top: 50%; */
    /* transform: translate(-50%, -50%); */
    max-width: 600px;
    width: calc(100%);
    color: #252525;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.image-item .image-container {
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: #ffffff;
    text-align: center;
    aspect-ratio: 1;
}

.image-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
    margin-top: 4px;
}

.image-container .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    padding: 2px;
    transition: all 0.2s ease;
}

.form-bg-right .box-img-render-main .box-img-bg .img-render-after {
    padding: 10px;
    border-radius: 30px;
    overflow: visible;
}

.loading-overlay .loading-image {
    padding: 100px;
    animation: imageFloat 2s ease-in-out infinite;
}

@keyframes imageFloat {
    0% {
        top: calc(50% - 10px);
    }

    50% {
        top: calc(50% - 20px);
    }

    100% {
        top: calc(50% - 10px);
    }
}

#bubbleWrap {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    width: 100% !important;
    margin: 0 auto;
    height: 100% !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    max-height: 400px;
    min-width: 250px;
    min-height: 250px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: radial-gradient(circle, #ffffff33, #02b1d042);
    background-color: #fff;
    /* animation: bubbleWrapBlobShape 3s ease-in-out infinite; */

}


@keyframes bubbleWrapBlobShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 24% 76% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 45% 50% 50%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 37% 37% 63%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.bubble {
    position: absolute;
    opacity: 0;
    animation: floatBubble .3s linear infinite;
    min-width: unset !important;
    min-height: unset !important;
    /* animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite; */
}


@keyframes floatBubble {
    0% {
        transform: translateY(100px) translateX(-50%) rotate(0deg);
        opacity: 0.0;
    }

    50% {
        opacity: 1;
    }

    90% {
        opacity: 1;

    }

    100% {
        transform: translateY(-500px) translateX(-50%) rotate(360deg);
        opacity: 0.0;
    }
}

@keyframes imageFloat {
    0% {
        top: calc(50%);
    }

    50% {
        top: calc(50% - 10px);
    }

    100% {
        top: calc(50%);
    }
}

.bubble:nth-child(1) {
    width: 26% !important;
    bottom: 0;
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 36% !important;
    bottom: 0;
    left: 20%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 26% !important;
    bottom: 0;
    left: 35%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.bubble:nth-child(4) {
    width: 40% !important;
    bottom: 0;
    left: 50%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(5) {
    width: 32% !important;
    bottom: 0;
    left: 100%;
    animation-duration: 6s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 26% !important;
    bottom: 0;
    left: 80%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.bubble:nth-child(7) {
    width: 16% !important;
    bottom: 0;
    left: 70%;
    animation-duration: 7s;
    animation-delay: 3s;

}

.bubble:nth-child(8) {
    width: 32% !important;
    bottom: 0;
    left: 30%;
    animation-duration: 8s;
    animation-delay: 2s;
    /* animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite; */
}

.bubble:nth-child(9) {
    width: 46% !important;
    bottom: 0;
    left: 45%;
    animation-duration: 7s;
    animation-delay: 3s;
    /* animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite; */
}

.bubble:nth-child(10) {
    width: 20% !important;
    bottom: 0;
    left: 100%;
    animation-duration: 7s;
    animation-delay: 1s;
    /* animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite; */
}

.box-header-btn {
    display: flex;
    justify-content: start;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;

}

.box-header-btn .button-d:hover {
    background: url(/images/list/product/gradient.svg) 0 0 / cover no-repeat #eee !important;
    transition: .3s ease-in-out;
}

.box-header-btn .button-d {
    width: 30px;
    height: 30px;
    padding: 5px;
    background-color: #F1F1F3;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



.form-bg-right .box-img-render-main .box-img-bg img {
    max-width: 100% !important;
    max-height: 85% !important;
    height: 100% !important;
    border-radius: 20px;
}

.form-bg-left h2.header-right {
    color: #2F2F30;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0px;
}

.model-body-custom {
    max-height: 80vh;
    overflow-y: auto;
}

.image-upload-item:hover .remove_image_button svg>* {
    fill: #252525 !important;
}

.remove_image_button svg>* {
    fill: #fff !important;
}

.remove_image_button {
    background-color: #0000003b !important;
}

.image-upload-item:hover .remove_image_button {
    border-radius: 4px;
    background: #fff !important;
    filter: unset;
}

.image-upload-item {
    cursor: pointer;
}

.image-upload-item:hover img {
    filter: brightness(0.85);

}

.library-modal-box {
    padding: 0 !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.library-images-list {
    grid-template-columns: repeat(6, calc(100% / 6 - 12px));
    max-height: 500px;
}

.box-img-bg-mobile{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-img-bg-mobile img{
    max-width: 100% !important;
    height: auto !important;
    border-radius: 20px;
}

@media (min-width: 1200px) {

    .library-modal{
        --bs-modal-width: 1200px;
    }
}

@media (max-width: 1000px) {

    .library-images-list {
        display: grid;
        grid-template-columns: repeat(3, calc(100% / 3 - 12px)) !important;
        gap: 12px;
        overflow-y: auto;
        padding-bottom: 6px;
        max-height: 420px;
        justify-content: center;
    }

    .row-box .flex-box-left {
        height: 100% !important;
    }

    .row-box .flex-box-left .form-bg-left {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        flex: 1 1;
        justify-content: center;
    }

    .image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .group-img-button-mobile {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
        align-items: center;
        width: 100%;
        justify-content: center;
        background-color: #fff;
        position: relative;
    }

    .form-bg-right .box-img-render-main .list-img-render {
        text-align: start;
        justify-content: flex-start !important;
        overflow-x: scroll;
    }

    .form-bg-right .box-img-render-main .list-img-render{
        padding-top: 35px !important;
    }
    .form-bg-right .box-img-render-main .list-img-render .text{
        position: absolute;
        top: 8px;
        font-size: 14px;
        font-weight: 700;
        color: #252525;
         right: 10px;
    }
    .form-bg-right .box-img-render-main .list-img-render .text:nth-child(1){
        left: 10px !important;
    }
    .form-bg-right .box-img-render-main .list-img-render .text:nth-child(2){
        right: 10px;
    }


    .form-bg-right .group-button-render {
        width: 100%;
    }

    .group-button-render .button-download {
        width: 65px;
        height: 65px;
    }

    .form-bg-right .box-img-render-main .img .group-box-img-btn {
        width: 100%;
        height: 0% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        position: relative;
        max-height: var(--vh) * 60;
    }
    .form-render-ai .group-form-data{
        max-height: calc(100% - 100px);
    }

    .form-bg-left .box-button-drag-modal{
        padding: 20px 10px !important;
        
    }
}

.slider-gradient-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right, #fff 80%, rgba(255,255,255,0) 100%);
}
.slider-gradient-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to left, #fff 80%, rgba(255,255,255,0) 100%);
}

