.dialog-ai-sticker {
    /* icon */
    --aisticker-icon-transform: url(/templates/images/icons/icon-arrow-transform.svg);
    --aisticker-icon-selected-size: 2rem;
    --aisticker-icon-selected: url(/templates/images/icons/checkmark-circle-solid.svg);
    
    /* spacing system */
    --aisticker-gap-xs: 0.4rem;
    --aisticker-gap-sm: 0.8rem;
    --aisticker-gap-base: 1.6rem;
    --aisticker-gap-md: 2.4rem;
    --aisticker-gap-lg: 3.2rem;
    --aisticker-gap-xl: 4.8rem;
    --aisticker-gap-2xl: 6.4rem;
    
    /* border radius system */
    --aisticker-radius-sm: 0.5rem;
    --aisticker-radius-base: 0.8rem;
    --aisticker-radius-lg: 1.0rem;
    --aisticker-radius-xl: 1.6rem;
    
    /* font size system */
    --aisticker-fontsize-xs: 1.0rem;
    --aisticker-fontsize-sm: 1.2rem;
    --aisticker-fontsize-base: 1.4rem;
    --aisticker-fontsize-md: 1.6rem;
    --aisticker-fontsize-lg: 1.7rem;
    --aisticker-fontsize-xl: 2.0rem;
    
    /* line height system */
    --aisticker-lineheight-xs: 1.6rem;
    --aisticker-lineheight-sm: 1.9rem;
    --aisticker-lineheight-base: 2.0rem;
    --aisticker-lineheight-md: 2.4rem;
    --aisticker-lineheight-lg: 2.6rem;
    
    /* component specific sizes */
    --aisticker-panel-minheight: 55.6rem;
    --aisticker-button-width: 40.3rem;
    --aisticker-icon-size-sm: 1.6rem;
    --aisticker-icon-size-base: 2.4rem;
    --aisticker-checkbox-size: 1.5rem;
    --aisticker-progress-height: 1.0rem;
    --aisticker-stickers-width: 27rem;
    --aisticker-stickers-height: 42rem;
    --aisticker-stickers-list-width: 23rem;
    --aisticker-stickers-max-height: 38rem;
    --aisticker-sticker-item-size: 11.2rem;
    
    /* layout specific sizes */
    --aisticker-exhibition-icon-size: 4rem;
    --aisticker-overlay-width: 81.2rem;
    --aisticker-uploading-image-width: 59.2rem;
    --aisticker-uploading-image-height: 41.5rem;
    --aisticker-progress-width: 40rem;
    --aisticker-fail-image-width: 47.2rem;
    --aisticker-fail-image-height: 33.1rem;
    --aisticker-replace-width: 34.8rem;
    --aisticker-transform-before-size: 12.6rem;
    --aisticker-transform-arrow-width: 2.4rem;
    --aisticker-transform-arrow-height: 1.7rem;
    --aisticker-transform-after-width: 19.8rem;
    --aisticker-transform-after-height: 13.9rem;
    
    /* border widths */
    --aisticker-border-thick: 5px;
    --aisticker-border-semibold: 2px;
    --aisticker-border-thin: 1px;
}

.ai-sticker-dialog.ui-widget-content {
    color: #2D2B2B;
}

.ui-dialog.ai_sticker_upload_dialog {
    border-radius: var(--aisticker-radius-xl);
    padding: 0;
    overflow: hidden;
}

.ui-dialog.ai_sticker_upload_dialog .ui-dialog-titlebar {
    padding: 0 !important;
}

.ui-dialog.ai_sticker_upload_dialog .ui-dialog-title {
    display: none;
}

.ui-dialog.ai_sticker_upload_dialog .ui-dialog-titlebar-close {
    margin-top: 0;
    top: var(--aisticker-gap-base);
    right: var(--aisticker-gap-base) !important;
    width: var(--aisticker-icon-size-sm);
    height: var(--aisticker-icon-size-sm);
    z-index: 2;
}

.ui-dialog.ai_sticker_upload_dialog .ui-icon-closethick.ui-icon {
    width: 100%;
    height: 100%;
    margin: 0;
    left: 0;
    top: 0;
    right: 0;
    background: url(/templates/images/icons/icon-close.svg) no-repeat;
    background-size: 100% 100%;
}

/* common */
.ai-sticker-dialog .step-panel {
    min-height: var(--aisticker-panel-minheight);
}

.ai-sticker-dialog .step-btn {
    width: var(--aisticker-button-width);
    color: var(--color-white);
    font-size: var(--aisticker-fontsize-base);
    line-height: var(--aisticker-fontsize-base);
    font-weight: var(--font-weight-bold);
    padding: var(--aisticker-gap-sm) var(--aisticker-gap-base);
    border-radius: var(--aisticker-radius-base);
    background: var(--color-primary);
    margin: var(--aisticker-gap-base) auto 0;
    cursor: pointer;
}

/* 1. upload panel */
/* - 1.1 header */
.ai-sticker-dialog .panel-upload .upload-header {
    font-size: var(--aisticker-fontsize-xl);
    line-height: var(--aisticker-lineheight-md);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aisticker-gap-sm);
    margin-top: var(--aisticker-gap-sm);
}

.ai-sticker-dialog .panel-upload .upload-header .tip-icon {
    width: var(--aisticker-icon-size-sm);
    height: var(--aisticker-icon-size-sm);
    flex-shrink: 0;
    background: url("/templates/images/icon-info-gray.svg") no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    display: block;
}

/* - 1.2 content */
.ai-sticker-dialog .upload-inner-container {
    display: flex;
    gap: var(--aisticker-gap-lg);
}

.ai_sticker_upload_dialog .image-item.selected:before {
    content: "";
    position: absolute;
    width: var(--aisticker-icon-selected-size);
    height: var(--aisticker-icon-selected-size);
    bottom: var(--aisticker-gap-sm);
    right: var(--aisticker-gap-sm);
    background: var(--aisticker-icon-selected) no-repeat center center / contain;
}

/* - 1.2.1 content (left upload photo) */
.ai-sticker-dialog .upload-inner-container .upload-container {
    flex: 1;
}

.ai-sticker-dialog .upload-container .upload-tip-container {
    text-align: center;
    margin: var(--aisticker-gap-base) 0 var(--aisticker-gap-xs);
}

.ai-sticker-dialog .upload-container .upload-tip-container >h5 {
    color: #435663;
    font-size: var(--aisticker-fontsize-md);
    font-weight: var(--font-weight-bold);
    line-height: var(--aisticker-lineheight-md);
    margin: 0;
}

.ai-sticker-dialog .upload-container .upload-tip-container >p {
    color: #959595;
    font-size: var(--aisticker-fontsize-sm);
    line-height: var(--aisticker-lineheight-sm);
    font-weight: var(--font-weight-regular);
}

/* - 1.2.1.1 upload footer */
.ai-sticker-dialog .upload-footer {
    width: 100%;
    margin: 0 auto;
    padding: var(--aisticker-gap-base) var(--aisticker-gap-2xl) 0;
    text-align: center;
}

.ai-sticker-dialog .comfirm-permission label {
    color: #959595;
    font-size: var(--aisticker-fontsize-xs);
    line-height: var(--aisticker-lineheight-xs);
    font-weight: var(--font-weight-medium);
    text-align: left;
}

.ai-sticker-dialog .comfirm-permission .g-form-input.checkbox {
    display: none;
    width: 1.4rem;
    height: 1.4rem;
    vertical-align: middle;
}

.ai-sticker-dialog .comfirm-permission .g-form-input.checkbox+label:before {
    position: absolute;
    content: "";
    top: var(--aisticker-gap-xs);
    left: 0;
    transform: none;
    width: var(--aisticker-checkbox-size);
    height: var(--aisticker-checkbox-size);
    border-color: #A5A5A5;
    border: .1rem solid var(--border-color-darker);
    background: var(--form-input-bg-color);
    display: inline-block !important;
}
.ai-sticker-dialog .comfirm-permission .g-form-input.checkbox:checked+label:before {
    background: url(/templates/images/icon-checkbox.svg) center no-repeat;
    background-size: 65% auto;
}

.ai-sticker-dialog .operate-button,
.ai-sticker-replace-dialog .operate-button {
    border-radius: var(--aisticker-radius-base);
    padding: var(--aisticker-gap-sm) var(--aisticker-gap-base);
    width: var(--aisticker-button-width);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--aisticker-gap-base) auto var(--aisticker-gap-sm);
    gap: var(--aisticker-gap-xs);
    background: var(--color-primary);
    cursor: pointer;
}

.ai-sticker-dialog .operate-button.disabled,
.ai-sticker-replace-dialog .operate-button.disabled {
    cursor: default;
    background: #C7C7C7;
}

.ai-sticker-dialog .operate-button .icon {
    width: var(--aisticker-icon-size-base);
    height: var(--aisticker-icon-size-base);
    background: url(/templates/images/icons/icon-magic.svg) no-repeat;
    background-size: 100% 100%;
}

.ai-sticker-dialog .operate-button .text,
.ai-sticker-replace-dialog .operate-button .text {
    font-size: var(--aisticker-fontsize-base);
    line-height: var(--aisticker-fontsize-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

/* 5. limit text */
.ai-sticker-dialog .generate-limit {
    color: var(--color-primary);
    font-size: var(--aisticker-fontsize-xs);
    line-height: var(--aisticker-lineheight-xs);
}

.ai-sticker-dialog .generate-limit >span {
    font-weight: var(--font-weight-bold);
}

/* 6. view existing cartoons */
.ai-sticker-dialog .view-cartoons-btn {
    color: var(--color-primary);
    text-align: center;
    font-size: var(--aisticker-fontsize-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: var(--aisticker-gap-sm);
    display: inline-block;
}

/* 1.2.1.2 no generations */
.ai-sticker-dialog .no-generations-container {
    text-align: center;
    flex: 1;
    align-self: flex-start;
    min-height: var(--aisticker-stickers-height);
    padding: var(--aisticker-gap-base);
    background: #F2F4F5;
    border: dashed var(--aisticker-border-semibold) #DDDEE0;
    border-radius: var(--aisticker-radius-lg);
    margin-top: var(--aisticker-gap-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-sticker-dialog .no-generations-container .message {
    color: #868686;
    text-align: center;
    font-size: var(--aisticker-fontsize-sm);
    line-height: var(--aisticker-lineheight-base);
    max-width: 300px;
}

/* - 1.2.2 content (right your stickers) */
.ai-sticker-dialog .stickers-container {
    width: var(--aisticker-stickers-width);
    flex-shrink: 0;
    display: none;
}

.ai-sticker-dialog .stickers-container .stickers-area {
    height: var(--aisticker-stickers-height);
    width: 100%;
    border-radius: var(--aisticker-radius-base);
    background: #F3F3F3;
    padding: var(--aisticker-gap-lg) var(--aisticker-gap-sm);
    margin-top: var(--aisticker-gap-base);
}

.ai-sticker-dialog .stickers-container .header {
    color: #2D2B2B;
    text-align: center;
    font-size: var(--aisticker-fontsize-md);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
    margin-bottom: var(--aisticker-gap-xs);
}

.ai-sticker-dialog .stickers-container .stickers-list,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list {
    max-height: var(--aisticker-stickers-max-height);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 var(--aisticker-gap-xs);
}

.ai-sticker-dialog .stickers-container .stickers-list::-webkit-scrollbar,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list::-webkit-scrollbar {
    background-color: #F4F4F4;
    width: 5px;
}

.ai-sticker-dialog .stickers-container .stickers-list::-webkit-scrollbar-thumb,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
    width: 5px;
    border-radius: var(--btn-border-radius);
}

.ai-sticker-dialog .stickers-container .stickers-list::-webkit-scrollbar-track,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list::-webkit-scrollbar-track {
    background: var(--scrollbar-trace-color);
    border-radius: var(--btn-border-radius);
}

.ai-sticker-dialog .stickers-container .stickers-list ul {
    width: var(--aisticker-stickers-list-width);
}

.ai-sticker-dialog .stickers-container .stickers-list ul,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aisticker-gap-xs);
    margin: 0 auto;
}

.ai-sticker-dialog .stickers-container .stickers-list .sticker-item,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list .sticker-item {
    width: var(--aisticker-sticker-item-size);
    height: var(--aisticker-sticker-item-size);
    border: var(--aisticker-border-thin) solid #434444;
}

.ai-sticker-replace-dialog .replace-stickers-container .stickers-list .sticker-item {
    cursor: pointer;
}

.ai-sticker-replace-dialog .replace-stickers-container .stickers-list .sticker-item.selected {
    border: var(--aisticker-border-thick) solid var(--color-primary);
}

.ai-sticker-dialog .stickers-container .stickers-list .sticker-item >img,
.ai-sticker-replace-dialog .replace-stickers-container .stickers-list .sticker-item >img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* - 1.3 upload footer area */
.ai-sticker-dialog .step-footer {
    text-align: center;
    margin-top: var(--aisticker-gap-base);
}

.ai-sticker-dialog .step-footer .close {
    color: #646565;
    font-size: var(--aisticker-fontsize-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--aisticker-fontsize-base);
    text-decoration: underline;
    display: inline-block;
    margin-bottom: var(--aisticker-gap-base);
    cursor: pointer;
}

/* - 1.4 upload panel tips */
.ai-sticker-dialog .upload-tip-overlay {
    position: absolute;
    z-index: 3;
    border-radius: var(--aisticker-radius-xl);
    background: rgb(0 0 0 / 50%);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-sticker-dialog .upload-tip-overlay .upload-tip-inner {
    background: var(--color-white);
    width: var(--aisticker-overlay-width);
    border-radius: var(--aisticker-radius-xl);
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: var(--aisticker-gap-xl) var(--aisticker-gap-2xl);
}

.ai-sticker-dialog .upload-tip-overlay .upload-tip-inner .close-btn {
    background: url(/templates/images/icons/icon-close.svg) no-repeat;
    background-size: 100% 100%;
    width: var(--aisticker-icon-size-sm);
    height: var(--aisticker-icon-size-sm);
    position: absolute;
    top: var(--aisticker-gap-base);
    right: var(--aisticker-gap-base);
    cursor: pointer;
}

.ai-sticker-dialog .upload-tip-overlay .upload-tip-inner >p {
    color: #252B42;
    text-align: center;
    font-size: var(--aisticker-fontsize-sm);
    line-height: var(--aisticker-gap-base);
}

.ai-sticker-dialog .upload-tip-overlay .transform-container {
    display: flex;
    align-items: center;
    gap: var(--aisticker-gap-md);
    margin: var(--aisticker-gap-md) auto var(--aisticker-gap-lg);
    width: 100%;
    justify-content: center;
}

.ai-sticker-dialog .upload-tip-overlay .transform-container .transform-before {
    width: var(--aisticker-transform-before-size);
    height: var(--aisticker-transform-before-size);
    background: url(https://d32u6scf3pzwp7.cloudfront.net/images/ai_stickers/ai_stickers_before_girl.png) no-repeat;
    background-size: 100% auto;
    background-position: center;
    border-radius: var(--aisticker-radius-sm);
}

.ai-sticker-dialog .upload-tip-overlay .transform-container .transform-arrow {
    width: var(--aisticker-transform-arrow-width);
    height: var(--aisticker-transform-arrow-height);
    background: var(--aisticker-icon-transform) no-repeat;
    background-size: 100% 100%;
}

.ai-sticker-dialog .upload-tip-overlay .transform-container .transform-after {
    width: var(--aisticker-transform-after-width);
    height: var(--aisticker-transform-after-height);
    background: url(https://d32u6scf3pzwp7.cloudfront.net/images/ai_stickers/ai_stickers_after.png) no-repeat;
    background-size: 100% 100%;
}

.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition {
    border-radius: var(--aisticker-radius-base);
    border: var(--aisticker-border-thin) solid var(--color-primary);
    background: var(--color-white);
    padding: var(--aisticker-gap-base);
}

.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-header,
.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-content {
    margin: 0;
}

.ai-sticker-dialog .upload-tip-overlay .exhibition.cartoon-exhibition .exhibition-title {
    color: var(--color-primary);
    font-size: var(--aisticker-fontsize-md);
    font-weight: var(--font-weight-medium);
    line-height: var(--aisticker-fontsize-base);
}

.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-item {
    margin: var(--aisticker-gap-base) 0 0;
}

.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-item-icon >i.g-icon {
    width: var(--aisticker-exhibition-icon-size);
    height: var(--aisticker-exhibition-icon-size);
}

.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-item .exhibition-item-title {
    color: var(--color-primary);
    text-align: center;
    font-size: var(--aisticker-fontsize-sm);
    line-height: var(--aisticker-gap-base);
    font-weight: var(--font-weight-regular);
    margin: var(--aisticker-gap-base) 0 0;
}

.ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-item .exhibition-item-title b {
    font-weight: var(--font-weight-bold);
}

/* 2. uploading panel */
.ai-sticker-dialog .panel-uploading {
    padding: var(--aisticker-gap-xl) 0 100px;
}

.ai-sticker-dialog .panel-uploading .uploading-image {
    width: var(--aisticker-uploading-image-width);
    height: var(--aisticker-uploading-image-height);
    margin: 0 auto;
}

.ai-sticker-dialog .panel-uploading .uploading-image >img {
    width: 100%;
    height: auto;
}

.ai-sticker-dialog .panel-uploading .progress-area {
    width: var(--aisticker-progress-width);
    margin: var(--aisticker-gap-md) auto 0;
}

.ai-sticker-dialog .panel-uploading .progress-area .progress-text {
    color: #505050;
    font-size: var(--aisticker-fontsize-base);
    line-height: var(--aisticker-fontsize-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--aisticker-gap-xs);
    display: block;
    text-align: center;
}

.ai-sticker-dialog .panel-uploading .progress-area .progress-bar {
    width: 100%;
    height: var(--aisticker-progress-height);
    border-radius: var(--aisticker-progress-height);
    background: #D9D9D9;
    position: relative;
}

.ai-sticker-dialog .panel-uploading .progress-area .progress-bar .current {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: var(--aisticker-progress-height);
    border-radius: var(--aisticker-progress-height);
    background: #505050;
}

/* 3. Failed panel */
.ai-sticker-dialog .panel-fail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--aisticker-gap-xl) 0 var(--aisticker-gap-xl);
}

.ai-sticker-dialog .panel-fail .header {
    color: #2D2B2B;
    font-size: var(--aisticker-fontsize-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--aisticker-lineheight-md);
    margin-bottom: var(--aisticker-gap-sm);
}

.ai-sticker-dialog .panel-fail .fail-message {
    color: #E23A3A;
    font-size: var(--aisticker-fontsize-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--aisticker-lineheight-lg);
}

.ai-sticker-dialog .panel-fail .failed-image {
    width: var(--aisticker-fail-image-width);
    height: var(--aisticker-fail-image-height);
}

.ai-sticker-dialog .panel-fail .failed-image >img {
    width: 100%;
    height: auto;
    display: block;
}

.ai-sticker-dialog .panel-fail .ok-btn {
    text-transform: uppercase;
    margin-top: 117px;
}

/* 3. with stickers */
.panel-upload.with-stickers .stickers-container {
    display: block;
}

.panel-upload.with-stickers .photos-upload-wrapper .image-list-wrapper .list-wrapper {
    width: 520px;
    gap: var(--aisticker-gap-sm);
}

.panel-upload.with-stickers .upload-container .upload-tip-container >p {
    padding: 0 13%;
}

/* 4. replace sticker */
.ui-dialog[aria-describedby="ai_sticker_replace_dialog"] .ui-dialog-content {
    padding: var(--aisticker-gap-base) var(--aisticker-gap-sm) !important;
}

.ai-sticker-replace-dialog .replace-stickers-container .stickers-list ul {
    width: var(--aisticker-replace-width);
}

.ai-sticker-replace-dialog .replace-stickers-container .replace-button {
    width: 100%;
    margin-top: var(--aisticker-gap-base);
}

.ai-sticker-replace-dialog .replace-stickers-container .stickers-buttons {
    text-align: center;
}

.ai-sticker-replace-dialog .replace-stickers-container .close {
    color: #646565;
    font-size: var(--aisticker-fontsize-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--aisticker-fontsize-base);
    text-decoration: underline;
    display: inline-block;
    cursor: pointer;
}

/* mobile */
@media (max-width: 575px) {
    .ui-dialog.ai_sticker_upload_dialog {
        padding: 0;
        overflow: hidden;
        position: static !important;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
    .ui-dialog.ai_sticker_upload_dialog .ui-dialog-content {
        padding: 0 !important;
        font-family: var(--font-family);
    }
    /* common */
    .ai-sticker-dialog .step-panel {
        height: auto;
    }
    .ai-sticker-dialog .step-btn {
        width: 100%;
    }
    /* 1. upload panel */
    /* - 1.1 header */
    .ai-sticker-dialog .panel-upload .upload-header {
        color: #2D2B2B;
        text-align: center;
        font-size: 5.12vmin;
        line-height: 6.15vmin;
        font-weight: var(--font-weight-semibold);
    }
    /* - 1.2 content */
    .ai-sticker-dialog .upload-inner-container {
        flex-direction: column-reverse;
        gap: 0;
    }
    /* - 1.2.1 content (left upload photo) */
    .ai-sticker-dialog .upload-container .upload-tip-container {
        margin: 0 0 4.1vmin 0;
    }
    .ai-sticker-dialog .upload-container .upload-tip-container >h5 {
        font-size: 4.1vmin;
        line-height: 1.5;
    }
    .ai-sticker-dialog .upload-container .upload-tip-container >p {
        font-size: 3.07vmin;
        line-height: 1.5;
    }
    /* - 1.2.1.1 upload footer */
    .ai-sticker-dialog .upload-footer {
        width: 100%;
        padding: 0 7.18vmin;
        height: auto;
    }
    .ai-sticker-dialog .comfirm-permission label {
        font-size: 2.56vmin;
        text-align: left;
    }
    .ai-sticker-dialog .operate-button {
        width: 100%;
        margin: 5.12vmin 0;
    }
    .panel-upload.with-stickers .photos-upload-wrapper .image-list-wrapper .image-item {
        width: 18.8vmin;
        height: 18.8vmin;
        margin: 0.8vmin;
    }
    .ai-sticker-dialog .upload-container {
        order: 3;
    }
    /* 1.2.1.2 no generations */
    .ai-sticker-dialog .no-generations-container {
        border: none;
        border-radius: 0;
        width: 100%;
        min-height: 24vmin;
        order: 2;
    }
    /* - 1.2.2 content (right your stickers) */
    .ai-sticker-dialog .stickers-container {
        width: 100%;
        margin: 4.1vmin 0;
        border-radius: 0;
        height: auto;
        order: 1;
    }
    .ai-sticker-dialog .stickers-container .stickers-area {
        height: auto;
        border-radius: 0;
        padding: 2.05vmin 4.1vmin 4.1vmin;
        margin-top: 0;
    }
    .ai-sticker-dialog .stickers-container .stickers-list ul {
        width: 88.15vmin;
        gap: 2.05vmin;
    }
    .ai-sticker-dialog .stickers-container .stickers-list {
        max-height: 33vmin;
    }
    .ai-sticker-dialog .stickers-container .stickers-list .sticker-item {
        width: 20.5vmin;
        height: 20.5vmin;
    }
    .ai-sticker-dialog .stickers-container .stickers-buttons {
        padding: 0 4.1vmin;
    }
    /* - 1.3 upload footer area */
    .ai-sticker-dialog .step-footer {
        margin: 4.1vmin 0;
    }
    .ai-sticker-dialog .step-footer .close {
        font-size: 3.07vmin;
        line-height: 1.5;
        margin: 0 auto;
    }
    /* - 1.4 upload panel tips */
    .ai-sticker-dialog .upload-tip-overlay {
        position: fixed;
        z-index: 3;
        padding: 0 4.1vmin;
    }
    .ai-sticker-dialog .upload-tip-overlay .upload-tip-inner {
        width: 100%;
        padding: 10vmin 4.1vmin 4.1vmin;
    }
    .ai-sticker-dialog .upload-tip-overlay .transform-container {
        gap: 2.05vmin;
        margin: 4.1vmin 0;
    }
    .ai-sticker-dialog .upload-tip-overlay .transform-container .transform-before {
        width: 20.5vmin;
        height: 20.5vmin;
    }
    .ai-sticker-dialog .upload-tip-overlay .transform-container .transform-after {
        width: 40.6vmin;
        height: 28.5vmin;
    }
    .ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-item,
    .ai-sticker-dialog .upload-tip-overlay .cartoon-exhibition .exhibition-item .exhibition-item-title {
        margin-top: 2.05vmin;
    }
    /* 2. uploading panel */
    .ai-sticker-dialog .panel-uploading {
        padding: 8.2vmin 0;
    }
    .ai-sticker-dialog .panel-uploading .uploading-image {
        width: 100vmin;
        height: 70.1vmin;
    }
    .ai-sticker-dialog .panel-uploading .progress-area {
        width: 100%;
        padding: 0 8.2vmin;
        margin: 4.1vmin auto;
    }
    /* 3. Failed panel */
    .ai-sticker-dialog .panel-fail {
        padding: 4.1vmin;
    }
    .ai-sticker-dialog .panel-fail .failed-image {
        width: 100%;
        height: 70vmin;
    }
    .ai-sticker-dialog .panel-fail .ok-btn {
        width: 100%;
        margin-top: 4.1vmin;
    }
    /* 4. replace sticker */
    .ai-sticker-replace-dialog .replace-stickers-container {
        width: 100%;
    }
    .ai-sticker-replace-dialog .replace-stickers-container .replace-button {
        margin-top: 4.1vmin;
    }
    .ai-sticker-replace-dialog .replace-stickers-container .stickers-list {
        max-height: 74vmin;
    }
    .ai-sticker-replace-dialog .replace-stickers-container .stickers-buttons {
        padding: 0 4.1vmin;
    }
    .ai-sticker-replace-dialog .replace-stickers-container .stickers-list ul {
        width: 59.45vmin;
        gap: 2.05vmin;
    }
    .ai-sticker-replace-dialog .replace-stickers-container .stickers-list .sticker-item {
        width: 28.7vmin;
        height: 28.7vmin;
    }
    /* 5. limit text */
    .ai-sticker-dialog .generate-limit br {
        display: none;
    }
}