body {
    min-height: (var(--vh) * 100);
    min-height: -webkit-fill-available;
}
.box-container {
    height: calc( (var(--vh) * 100) - 76px);
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    overflow: hidden;
    background: rgb(235, 236, 240);
}

.row-box {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    overflow: hidden;
    background: rgb(235, 236, 240);
    display: grid;
    grid-template-columns: 2fr 5fr;
}

.flex-box-size {
    height: calc( (var(--vh) * 100) - 62px);
}

.form-bg-left {
    position: relative;
    height: 100%;
}

.flex-box-left {
    height: calc( (var(--vh) * 100) - 76px);
    position: relative;
}

.form-bg-left h2.header-right {
    color: #252525;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

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

.form-bg-left .box-button-drag-modal button:hover,
.form-bg-left .box-button-drag-modal button:focus,
.form-bg-left .box-button-drag-modal button:active {
    outline: none;
    border: none;
}

.form-bg-left .box-button-drag-modal:hover {
    background-color: #01c3d522;
    transition: all 0.3s ease-in-out;
    transform: translateY(-5px);
}

.form-bg-left .box-button-drag-modal .button-drag-modal,
.form-bg-left .box-button-drag-modal .button-drag-modal:focus,
.form-bg-left .box-button-drag-modal .button-drag-modal:active,
.form-bg-left .box-button-drag-modal .button-drag-modal:visited {
    border: unset;
    outline: unset;
    box-shadow: unset;
}

.form-bg-left .box-button-drag-modal {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #252525;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background-color: #ffff;
    border: 1px dashed #01C4D5;
    padding: 30px 20px;
    border-radius: 12px;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    background: #FFF;
}

.button-drag-modal span.text-highlight {
    color: #05C3C0;
    font-size: 18px;
}

.button-drag-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

}

.btn-submit-bg {
    padding: 10px 20px;
    width: 100% !important;
    border: unset;
    border-radius: 11px;
    background: linear-gradient(90deg, #01C4D5 0%, #05C4C1 39.06%, #07A7CC 70.5%, #058CD4 100%);
    backdrop-filter: blur(2px);
    height: 65px;
    color: #FFF !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    animation: all 2s ease-in-out;
}


.form-bg-left .btn-submit-bg:disabled {
    color: #787878;
    cursor: auto;
}

.form-bg-left .btn-submit-bg:not(:disabled):hover {
    transform: scale(1);
    -webkit-animation: color-change-2x 2s linear infinite alternate both;
    animation: color-change-2x 2s linear infinite alternate both;
}


.form-bg-left .btn-submit-bg:not(:disabled):hover:active {
    transform: scale(1) translateY(.125rem);
}

.form-bg-left .btn-submit-bg:focus {
    outline: 0 solid transparent;
}

.form-bg-left .btn-submit-bg:focus:before {
    border-width: .125rem;
    content: "";
    left: calc(-1*.375rem);
    pointer-events: none;
    position: absolute;
    top: calc(-1*.375rem);
    transition: border-radius;
    user-select: none;
}

.form-bg-left .btn-submit-bg:focus:not(:focus-visible) {
    outline: 0 solid transparent;
}

.form-bg-left .btn-submit-bg:not(:disabled):active {
    transform: translateY(.125rem);
}

.form-bg-left .btn-submit-bg .point svg{
    height: 14px;
}
.form-bg-left .btn-submit-bg .point {
    border-radius: 50px;
    background: rgba(51, 51, 51, 0.30);
    padding: 5px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 30px;
    font-size: 14px;
}

.form-bg-left .button-check-upload .form-check {
    margin: 30px 0 20px 0 !important;
    padding-right: 0 !important;
}

.form-bg-left .button-check-upload .form-check-input:hover,
.form-bg-left .button-check-upload .form-check-input:focus,
.form-bg-left .button-check-upload .form-check-input:checked {
    background-color: #02B1D0;
    border-color: #02B1D0;
    box-shadow: none !important;
}

.form-bg-left .button-check-upload .form-check-input {
    width: 26px;
    height: 26px;
    margin: 2px !important;
    cursor: pointer;
    border-radius: 20%;
}

.form-bg-left .button-check-upload .form-check-label {
    width: calc(100% - 30px);
    color: #5E6278;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    line-height: 30px;
    margin: 0 !important;
}

.flex-box-right {
    -webkit-box-flex: 1;
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flex-box-right .box-right-render {
    -webkit-box-flex: 1;
    height: 100%;
    touch-action: pinch-zoom;
    overflow: hidden;
}

.box-render-img {
    height: 100%;
}

.form-bg-right {
    position: relative;
    height: 100% !important;
}

.form-bg-right .box-img-render-main .box-img-bg {
    overflow: visible;
    max-height: 100%;
    height: calc(100% - 60px);
    position: relative;
}

.form-bg-right .box-img-render-main .box-img-bg .img-render-after {
    height: 100%;
    width: 100%;
    display: flex;
    max-width: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 10px   ;
    flex-direction: column;
}

.form-bg-right .box-img-render-main .box-img-bg button img {
    width: 20px;
    height: 20px;
    max-height: unset;
    max-width: unset;
    border-radius: unset;
}
.form-bg-right .box-img-render-main .box-img-bg img {
    max-height: calc(100% - 50px);
    width: auto;
    border-radius: 12px;
    max-width: calc(100% - 50px);
    object-fit: contain;
}

.form-bg-right .box-img-render-main .box-img-bg .box-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
}

.form-bg-right .box-img-render-main .img {
    gap: 12px;
    background-color: transparent !important;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-bg-right .box-img-render-main .img .group-box-img-btn {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.form-bg-right .box-img-render-main .box-img-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    z-index: -1;
}

.form-bg-right .box-img-render-main .list-img-render {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    width: 100%;
}

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

.form-bg-right .box-img-render-main .list-img-render img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

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

.form-bg-right .box-img-render-main .item-img-render {
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}


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

.form-bg-right .group-button-render {
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 100%; */
    gap: 10px;
    margin-bottom: 0;
}

.group-button-render .button-edit {
    border-radius: 10px;
    height: 55px;
    padding: 10px 20px;
    border: unset;
    background: linear-gradient(90deg, #01C4D5 0%, #02B1D0 100%);
    backdrop-filter: blur(2px);
    width: calc(100% - 65px) !important;
}

.group-button-render .button-download {
    width: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 55px;
    height: 55px;
    font-size: 20px;
    padding: 10px;
    background-color: #EBEBEB;
    border: unset;
    border-radius: 12px;
}

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


.group-button-render .button-edit span {
    color: #05C3C0;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.group-button-render .btn-action:hover img {
    filter: brightness(0) invert(1);
}

.group-button-render .btn-action:hover span {

    color: #fff;
}

.group-button-render .btn-action:hover {
    background-color: #01C4D5;
}

.box-select .list-item-selections:hover::-webkit-scrollbar-thumb {
    background-color: #ccc;
    transition: all 0.3s ease-in-out;
}

.box-select .list-item-selections::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 12px;
    padding: 15px 0;
    padding-right: 10px;
    transition: all 0.3s ease-in-out;
}

.box-select .list-item-selections::-webkit-scrollbar {
    background-color: transparent;
    width: 5px;
    height: 70px;
    overflow: hidden;
}

.box-select .box-active-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
}

.box-select .box-active-selected .img-select .img,
.box-select .list-item-selections .img {
    width: 30px;
    height: 0%;
    padding-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.box-select .box-active-selected .img-select img,
.box-select .list-item-selections .img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

.box-select .box-active-selected .img-select {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.box-select .box-active-selected span {
    color: #5E6278;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.box-select .box-active-selected .icon-rotate img {
    width: 100%;
    height: 100%;
}


.box-select .list-item-selections {
    padding-left: unset;
    max-height: 350px;
    overflow-y: scroll;
    border-radius: 12px;
}

.box-select .list-item-selections .item-selection:hover {
    background-color: #D9D9D9;
}

.box-select .list-item-selections .item-selection {
    display: flex;
    align-items: center;
    padding: 5px 0 5px 5px;
    gap: 15px;
    border-radius: 12px;
    margin-right: 5px;
}

.toggleContainer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: fit-content;
    border-radius: 12px;
    background: rgba(58, 58, 58, 0.70);
    font-weight: 700;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.toggleContainer::before {
    content: '';
    position: absolute;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    top: 50%;
    transform: translateY(-50%);
    left: calc(0% + 5px);
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s;
}

.toggleCheckbox:checked+.toggleContainer::before {
    left: 50%;
}

.toggleContainer div {
    padding: 5px 10px;
    text-align: center;
    z-index: 1;
}

.toggleCheckbox {
    display: none;
}

.toggleCheckbox:checked+.toggleContainer div:first-child {
    color: #fff;
    transition: color 0.3s;
}

.toggleCheckbox:checked+.toggleContainer div:last-child {
    color: #252525;
    transition: color 0.3s;
}

.toggleCheckbox+.toggleContainer div:first-child {
    color: #252525;
    transition: color 0.3s;
}

.toggleCheckbox+.toggleContainer div:last-child {
    color: #fff;
    transition: color 0.3s;
}

/* BOX SELECTED */


.color-select-container {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.color-select-box {
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 8px;
    cursor: pointer;
    width: 260px;
    background: #fff;
    gap: 10px;
    position: relative;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    margin-right: 12px;
    display: inline-block;
}

.color-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.color-label {
    color: #888;
    margin-right: 8px;
    font-size: 15px;
}

.color-arrow {
    color: #bbb;
    font-size: 16px;
    user-select: none;
}

.color-popup {
    position: relative;
    width: 100%;
    z-index: 100;
    background: #fff;
    /* padding: 12px 12px 10px 12px; */
    border-radius: 12px;
    margin-top: 8px;
    left: 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, calc(100% / 8 - 5px));
    width: 100%;
    gap: 5px;
    justify-content: center;
    margin-bottom: 20px;
}

.color-item {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: border 0.18s;
    outline: none;
    aspect-ratio: 1;
}

.color-item.selected {
    border: 2px solid #1a73e8;
    box-shadow: 0 0 0 2px #e3f0ff;
}

.color-item:focus {
    outline: 2px solid #1a73e8;
}

.chrome-picker {
    width: 100% !important;
    box-shadow: none !important;
}


/* Quantity & Ratio select */
.select-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.select-box {
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    min-width: 110px;
    gap: 10px;
    background: #fff;
    position: relative;
    height: 70px;
}




.select-popup button {
    padding: 7px 18px;
    border-radius: 8px;
    border: none;
    background: #f2f2f2;
    color: #555;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}



.select-checkbox {
    pointer-events: none;
    margin-right: 6px;
}

/* Kết quả đã chọn */
.result-block {
    margin-top: 40px;
    color: #888;
}

.result-block b {
    color: #555;
}

.result-color-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-right: 8px;
    border: 1px solid #ccc;
    vertical-align: middle;
}

/* CSS Modal */

.modal {
    -bs-modal-width: 900px !important;
}

.library-modal .modal-content,
.library-modal-content {
    border-radius: 24px;
    box-shadow: 0 4px 32px 0 #0001 !important;
    border: none;
    background: #fff;
    padding: 0;
    color: #252525 !important;
}

.library-modal-box {
    padding: 0 0 20px 0;
}

.library-folders-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.library-folder {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    border-radius: 12px;
    min-width: 86px;
    gap: 10px;
    transition: background 0.15s;
}

.icon-rotate{
    width: 20px;
    height: 20px;
}

.library-folder:hover {
    background: #f5f7fa;
}

.folder-icon {
    margin-bottom: 4px;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.folder-name {
    font-size: 13px;
    color: #252525;
    opacity: 0.7;
    margin-top: 2px;
    text-align: center;
    min-width: 60px;
}

.library-images-section {
    padding: 0 22px;
}

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

.library-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86px;
}

.img-thumb {
    box-shadow: 0 1px 4px 0 #0001;
}

.btn-close {
    background: none !important;
    border: none !important;
    font-size: 20px;
    opacity: 0.42;
    transition: opacity 0.18s;
}

.btn-close:hover {
    opacity: 0.85;
}

.loading-overlay {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* background-color: rgba(255, 255, 255); */
}

.loading-overlay img {
    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;
}

.item-img-render.active {
    border: 2px solid rgb(35, 138, 193);
}

/* Offcanvas selector */
.popup-bg-selector {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    /* Đẩy popup xuống dưới */
    justify-content: start;
    transition: background 0.3s;
}

.popup-content-selector {
    background: #fff;
    padding: 24px;
    width: 100%;
    max-width: calc(100% / 7 * 2);
    height: calc( (var(--vh) * 100) - 62px);
    overflow-y: auto;
    box-shadow: 0 -4px 24px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    animation: slideUpOffcanvas 0.35s cubic-bezier(.4, 0, .2, 1) forwards;
}

.row-box .flex-box-right {
    justify-content: center;
}

.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%);
    }
}

.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;
}



.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; */
}




@keyframes slideUpOffcanvas {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Nút đóng giữ nguyên */
.close-btn-selector {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.box-action-mobile {
    background: #fff;
    padding: 16px 0;
}

.box-action-mobile .list-img-render {
    margin-top: unset;

}

.box-action-mobile .list-background-action {
    width: 100%;
}

.box-action-mobile .list-img-render {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    overflow: auto;
    padding-bottom: 10px;
}



@-webkit-keyframes color-change-2x {
    0% {
        background: #19dcea;
    }

    100% {
        background: #b22cff;
    }
}

@keyframes color-change-2x {
    0% {
        background: #19dcea;
    }

    100% {
        background: #b22cff;
    }
}

@media (max-width: 1000px) {

  
    hr {
        margin: 10px 0;
    }

    .form-bg-left .button-check-upload .form-check-input {
        width: 20px;
        height: 20px;
    }

    .row-box {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: rgb(235, 236, 240);
        flex: 1 1;
        justify-content: space-between;
    }

    .row-box .flex-box-left {
        order: 2;
        height: auto !important;
        /* overflow: scroll; */
    }

    .row-box .flex-box-left .form-bg-left {
        padding: 10px !important;
        max-height: var(--vh) * 40;
        background: #ffff;
    }

    .row-box .flex-box-right {
        flex-grow: 1;
        height: 0% !important;
        overflow: unset;
        width: 100%;
        max-height: var(--vh) * 60;
    }



    .form-bg-left .box-button-drag-modal {
        padding: 15px;
        font-size: 14px;
    }

    .button-drag-modal span.text-highlight {
        font-size: 16px;
    }

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

    .form-bg-right .box-img-render-main .flex-group {
        flex-direction: column !important;

    }

    .form-bg-right .box-img-render-main .list-img-render {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        height: auto !important;
    }


    .form-bg-left h2.header-right {
        font-size: 16px !important;
    }

    .popup-bg-mobile {
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .popup-content {
        background: #fff;
        width: 100%;
        max-height: var(--vh) * 80;
        border-radius: 16px 16px 0 0;
        padding: 16px;
        overflow-y: auto;
    }

    .popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }

    .form-bg-left .button-check-upload .form-check-label {
        width: calc(100% - 30px);
        font-size: 12px;
        line-height: 24px;
    }

    .popup-content-selector {
        max-width: 100%;
        height: calc(var(--vh) * 40 - 62px);
        padding: 16px;
    }

    .form-bg-left .btn-submit-bg {
        height: 65px;
        margin-top: 10px;
        font-size: 16px;
    }

    .form-bg-right .box-img-render-main .img .group-box-img-btn {
        background-color: unset;
    }

    .item-img-render {
        height: auto;
        width: 70px;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
        border: 2px solid transparent;
        cursor: pointer;
        transition: border 0.2s;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        justify-content: center;
        flex-shrink: 0;
    }

    .list-img-render {
        gap: 8px;
        width: auto;
        flex-wrap: nowrap !important;
        justify-content: flex-start;
    }

    .edit-bg-button {
        width: auto;
        height: 40px;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        border: 1px dashed #adb5bd;
    }


    .library-folders-row {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .form-bg-right .box-img-render-main .box-img-bg img{
        max-width: calc(100% - 10px);
        max-height: calc(100% - 10px);
    }

    .box-button-drag-modal{
        margin: 10px 0;
        font-size: 16px;
    }

    .form-bg-right .box-img-render-main .box-img-bg .box-toggle{
        right: unset;
        left: 10px;
    }

}

.button-to_edit{
    width: calc(100% - 75px) !important;
}

.popup-mobile-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: start;
    /* min-height: 40vh; */
    padding: 10px;
    background: rgb(255, 255, 255);
}

.popup-content-mobile {
    width: 100%;
    animation: slideUpOffcanvas 0.35s cubic-bezier(.4, 0, .2, 1) forwards;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-self: self-start;
    flex-direction: column;
    overflow-y: auto;
    gap: 15px;
}

/* Nút đóng popup nếu có */
.close-popup-mobile {
    background: none;
    border: none;
    font-size: 12px;
    float: right;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
    height: 20px;
    width: max-content;
}

.close-popup-mobile img {
    width: 20px;
    height: 20px;
}



/* Các item trong list-img-render */


.item-img-render img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}



.item-img-render.active {
    border: 2px solid #007bff;
}

.group-button-action,
.group-button-render {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

@keyframes slideUpOffcanvas {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.img{
    position: relative;
}
.img .show-modal-input {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background-color: #fff;
    flex-direction: column;
}

.btn-refresh-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    border-color: #ccc;
    top: 10px;
    right: 10px;
}

.popup-content-mobile .box-toggle{
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient_after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    width: 140%;
    height: 120%;
}

.modal-title span {
    font-size: 20px;
    font-weight: 600;
    color: #252525;
}

.modal-header .btn-close-white {
    background: none !important;
    border: none !important;
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 50%;
    border: 1px solid #ccc  !important;
    font-size: 16px !important;
    line-height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5E6278 !important;
}

.modal-header .btn-close-white:hover {
    background-color: #f5f5f5 !important;
    transition: all 0.3s ease-in-out;
}