#cv-cropper-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

#cv-cropper-container {
    background: #fff;
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: calc(100vh - 24px);
    border-radius: 14px;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#cv-cropper-image-wrap {
    width: 100%;
    height: min(68vh, 620px);
    overflow: hidden;
    background: #111;
}

#cv-cropper-image {
    display: block;
    max-width: 100%;
}

.cv-cropper-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 12px;
    background: #fff;
}

.cv-cropper-buttons button {
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
}

#cv-crop-save {
    background: #003d7a;
    color: #fff;
}

#cv-crop-cancel {
    background: #ddd;
    color: #111;
}

body.cv-cropper-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    #cv-cropper-modal {
        align-items: flex-start;
        padding: 8px;
        overflow-y: auto;
    }

    #cv-cropper-container {
        max-width: 100%;
        max-height: none;
        min-height: auto;
    }

    #cv-cropper-image-wrap {
        height: 62vh;
    }

    .cv-cropper-buttons {
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding: 10px 0 0;
    }

    .cv-cropper-buttons button {
        width: 50%;
        font-size: 15px;
    }
}