.ts-image-crop-button {
    margin-right: 8px;
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.ts-image-cropper-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
}

.ts-image-cropper-modal.show {
    display: block;
}

.ts-image-cropper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.ts-image-cropper-dialog {
    position: relative;
    width: min(960px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    margin: 15px auto;
    padding: 18px;
    overflow: auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    direction: rtl;
}

.ts-image-cropper-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ts-image-cropper-help {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.ts-image-cropper-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    background: #202020;
    border-radius: 7px;
    overflow: hidden;
    touch-action: none;
}

.ts-image-cropper-stage canvas {
    display: block;
    max-width: 100%;
    cursor: crosshair;
    touch-action: none;
}

.ts-image-cropper-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

body.ts-image-cropper-open {
    overflow: hidden;
}
