.dz-crop-modal {
    position: fixed;
    z-index: 20050;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.dz-crop-modal__overlay {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.68);
}

.dz-crop-modal__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.dz-crop-modal__header,
.dz-crop-modal__footer {
    flex: 0 0 auto;
    padding: 14px 18px;
}

.dz-crop-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
}

.dz-crop-modal__header h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.dz-crop-modal__close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}

.dz-crop-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 18px;
    overflow: auto;
}

.dz-crop-modal__hint {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
}

.dz-crop-image-wrap {
    min-height: 300px;
    max-height: calc(100vh - 230px);
    overflow: auto;
    background: #f3f3f3;
}

.dz-crop-image-wrap img {
    display: block;
    max-width: 100%;
}

.dz-crop-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e5e5e5;
}

.dz-crop-btn {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
}

.dz-crop-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.dz-crop-btn--secondary {
    background: #e9ecef;
    color: #222;
}

.dz-crop-btn--primary {
    background: #d71920;
    color: #fff;
}

@media (max-width: 640px) {
    .dz-crop-modal__content {
        width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .dz-crop-image-wrap {
        min-height: 260px;
        max-height: calc(100vh - 260px);
    }

    .dz-crop-modal__footer {
        flex-direction: column-reverse;
    }

    .dz-crop-btn {
        width: 100%;
    }
}
