.mcw-cropper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;

    gap: 2.5em 2.5em;
}

.mcw-cropper-container {
    position: relative;
    max-width: 60%;
    flex-shrink: 1;
}

.mcw-cropper-wrapper {
    position: relative;
}

.mcw-cropper-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 3px 7px 3px lightgray;
    z-index: 10;
    pointer-events: none;
}

.mcw-cropper-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
}

.mcw-ruler-right,
.mcw-ruler-bottom {
    z-index: 5;
}

.mcw-overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
}

.mcw-overlay-center {
    position: absolute;
    z-index: 11;
}

.mcw-overlay-center:active {
    outline: 1px solid black;
}

.mcw-overlay-left, .mcw-overlay-right {
    z-index: 10;
}

.mcw-overlay-center:hover {
    cursor: move;
}

.mcw-ruler-bottom {
    position: absolute;
    bottom: -15px;
    height: 1px;
    background: black;
}

.mcw-ruler-bottom > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 13px;
    background: white;
    white-space: nowrap;
    font-size: 0.9rem;
}

.mcw-ruler-bottom-border {
    position: absolute;
    top: -5px;
    height: 11px;
    width: 1px;
    background: black;
}

.mcw-ruler-right {
    position: absolute;
    right: -15px;
    width: 1px;
    background: black;
}

.mcw-ruler-right > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    padding: 0 13px;
    background: white;
    white-space: nowrap;
    font-size: 0.9rem;
}

.mcw-ruler-right-border {
    position: absolute;
    left: -5px;
    width: 11px;
    height: 1px;
    background: black;
}

.mcw-hcrop-icon, .mcw-vcrop-icon {
    position: absolute;
    width: 15%;
    height: 15%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mcw-hcrop-icon {
    animation: horizontal_crop 2.7s infinite;
}

.mcw-vcrop-icon {
    animation: vertical_crop 2.7s infinite;
}

@keyframes horizontal_crop {
    0% {
        transform: translate(-50%, -50%) translateX(-70%);
    }

    50% {
        transform: translate(-50%, -50%) translateX(70%);
    }

    to {
        transform: translate(-50%, -50%) translateX(-70%);
    }
}

@keyframes vertical_crop {
    0% {
        transform: translate(-50%, -50%) translateY(-50%);
    }

    50% {
        transform: translate(-50%, -50%) translateY(50%);
    }

    to {
        transform: translate(-50%, -50%) translateY(-50%);
    }
}

.mcw-cropper-inputs {
    display: flex;
    gap: 0px;
    justify-content: space-between;
    margin-top: 10px;
}

.mcw-cropper-input {
    width: 45%;
    margin-top: 10px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mcw-cropper-input > label {
    font-size: 12px;
}

.mcw-cropper-input > input {
    border: none;
    padding: 0;
    border-bottom: 1px solid gray;
    text-align: center;

    transition: 200ms ease-in;
}

.mcw-cropper-input > input:focus {
    border: none !important;
    outline: none !important;
    border-bottom: 1px solid black !important;
}

.mcw-cropper-form > input[type="submit"] {
    margin-top: 30px;
}

@media screen and (max-width: 1080px) {
    .mcw-cropper-container {
        max-width: 100%;
    }

    .mcw-cropper-form {
        width: 100%;
    }

    .mcw-cropper-form-label {
        margin-top: 10px;
    }
}