#crop_modal {
  z-index: 555556;
  display: flex;
}
.crop_modal-dialog {
  position: relative;
  display: flex;
  width: 50%;
  height: auto;
  padding: 30px 60px;
  background: #fff;
  border-radius: 1%;
}

.crop_modal-dialog .close{
  position: absolute;
  top: -20rem;
  right: -20rem;
  color: #f1f1f1;
  font-size: 40rem;
  line-height: 0;
  transition: 0.3s;
  padding: 23rem 11rem;
  background-color: rgb(129, 0, 0);
  border-radius: 50%;
  z-index: 9999;
}


.crop_modaldal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15rem;
  width: 100%;
}

.modal-header {

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 35rem;
}
.crop_modal--x {
  font-size: 50rem;
  padding: 5px;
  transition: all ease-in .2s;
}
.crop_modal--x:hover {
  transform: rotate(90deg);
}

.col-md-8 {
  width: 100%;
  position: relative;
}
.col-md-8 img {
  display: flex;
}
.col-md-4 {
  width: 30%;
}
.preview {
  /* overflow: hidden;
  width: 200px;
  height: 200px;
  border: 1px solid #d4d4d4; */
}




label[data="crop-image-container"] {
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.nd-cropped-file {
  display: none;
}
.nd-cropped-file.nd-cropped-file--active {
  display: block;
}

[data="crop-image-container"] .select_file_btn {
    width: 56px;
    height: 56px;
    border-radius: 30px;
    border: 1px solid #B7BDCE;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    top: -30px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}



.crop_modal-footer {
  display: flex;
  flex-direction: row;
  gap: 15rem;
}
.crop_modal--reset {
  padding: 25rem 5rem;
  background-color: #d4d4d4;
  border-radius: 40rem;
  color: #2F6E5B;
  text-transform: uppercase;
  cursor: pointer!important;
  border: none;
  font-size: 16rem;
  font-weight: 400;
  font-family: "Montserrat";
  width: 100%;
  transition: all .2s ease-in-out;
}

.crop_modal--reset:hover {
  background-color: #b0b0b0;
}


.crop_modal--crop {
  padding: 25rem 5rem;
  background-color: #2F6E5B;
  border-radius: 40rem;
  color: white;
  /* text-transform: uppercase; */
  cursor: pointer!important;
  border: none;
  font-size: 16rem;
  font-weight: 400;
  font-family: "Montserrat";
  /* width: 100%; */
  transition: all .2s ease-in-out;
}
.crop_modal--crop:hover {
  background-color: #285c4c;
}

.post_wrapper_river .crop_image{
  margin-right: 40rem;
}
.crop_image {
  display: flex;
  position: relative;
  flex: 1;
}
.crop_image span {
  position: absolute;
  min-width: 15px;
  min-height: 15px;
  padding: 5px 10px;
  top: 5%;
  right: 5%;
  border: 1px solid #fff;
  border-radius: 50%;
}

.crop_image span:hover {
  border: 1px solid #2F6E5B;
  cursor: pointer;
}
.crop_image span svg{
  cursor: pointer;
}
.crop_image span:hover svg path{
  fill: #2F6E5B;
}
input[type=checkbox]+label.crop_modal--replace  {
     display: flex;
     align-self: baseline;
     margin: unset;
     padding: 4px 12px 4px 50px;
     margin-bottom: 0;
     font-size: 14px;
     line-height: 20px;
     color: #333;
     text-align: unset;
     text-shadow: 0 1px 1px rgb(255 255 255 / 75%);
     vertical-align: middle;
     cursor: pointer;
     background-color: #f5f5f5;
     background-repeat: repeat-x;
}




.confirmation_inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 35%;
  height: auto;
  padding: 30px 60px;
  background: #fff;
  border-radius: 1%;
}

.confirmation_inner .logo_form {
  display: flex;
  justify-content: center;
  margin-bottom: 40rem;
}
.confirmation_inner .logo_form svg {
  width: 50%;
}
.confirmation_inner p {
  text-align: center;
  font-size: 22rem;
  color: #2F6E5B;
}
.confirmation_inner .close{
  position: absolute;
  top: -20rem;
  right: -20rem;
  color: #f1f1f1;
  font-size: 40rem;
  line-height: 0;
  transition: 0.3s;
  padding: 23rem 11rem;
  background-color: rgb(129, 0, 0);
  border-radius: 50%;
  z-index: 9999;
}
.crop_modal_hide {
  display: none;
}


.cropper-line {
  background-color: #2F6E5B !important;
}
.cropper-view-box {
  outline: 1px solid #2F6E5B !important;
  outline-color: rgba(47,110,91,.75) !important;
}
.cropper-point {
  background-color: #2F6E5B !important;
}




/* CROP */

#crop_modal .ndmodal-img-container {
  margin: 0 auto;
  width: 100%;
  height: 260px;
  min-width: 260px;
  min-height: 260px;
  max-width: 475px;
  max-height: 260px;
  overflow: hidden;
  display: flex;
}
#crop_modal .ndmodal-img-container img {
  height: 100%;
  margin: 0 auto;
}
#crop_modal .ndmodal-img-container img.preview {
  object-fit: contain;
}
.crop__container {
  width: 100%;
  height: auto;
}
.crop__container img{
  display: flex;
  height: auto;
  /* object-fit: cover; */
}

#crop_modal .cropper-view-box {
  outline: 1px solid #fff !important;
}
#crop_modal .ndmodal-img-container .cropper-face {
  background-color: unset;
}
#crop_modal .ndmodal-content__footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-top: 42px;
  width: 100%;
}
#crop_modal .ndmodal-content__footer button {
  width: 35%;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  display: flex;
  padding: 12px 24px;
}


.crop_modal-actions {
  display: flex;
  gap: 40rem;
  margin-top: 42px;
}
.crop_modal-size {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30rem;
}
.crop_modal-size button{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#cropRange {
  min-width: 136px;
  height: 4px;
  background: #B7BDCE;
  border-radius: 4px;
  border: unset;

}


#cropRange .ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  font-size: .7em;
  display: block;
  border: 0;
  background-position: 0 0;
}


#cropRange.ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  -ms-touch-action: none;
  touch-action: none;
  border-radius: 50%;
  background: rgb(50, 110, 91);
  border: unset;
}
#cropRange.ui-slider.ui-slider-horizontal .ui-slider-handle   {
  top: -0.5em;
  margin-left: -0.6em;
}

#cropRange .ui-slider-handle:focus-visible {
  outline:  var(--main-green) auto 1px;
}

.crop_modal--plus:hover path {
  fill: var(--main-green-hover);
}


.photo-text-form-image-panel .open-photo-edit-image svg{
  width: 24px;
  height: 24px;
}



/* Выбор фото */



[data="crop-image-container"] .add_image_action.add_image_action--active{
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    transition: 0.3s;
}


.add_image_action {
  position: absolute;
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #FFFFFF;
    box-shadow: 0px 2px 12px rgb(0 0 0 / 12%);
    border-radius: 25px;
    padding: 20px 15px;
    width: fit-content;
    width: max-content;
    z-index: 1;
    transition: 0.3s;
}
.add_image_action label {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: none;
    align-items: center;
    color: #363636;
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #444444;
    transition: 0.3s;
}
.add_image_action label:hover {
    color: #B7BDCE;
    transition: 0.3s;
    cursor: pointer;
}
.add_image_action label svg {
    display: flex;
    flex: 0 0 auto;
}
.add_image_action input[type="file"] {
    display: none;
}

@media only screen and (max-width: 480px) {
  #crop_modal .ndmodal__header {
    padding: 12px;
  }
  #crop_modal .ndmodal-content {
    padding: 15px;
    /* overflow-y: scroll; */
    /* height: 100svh; */
  }
  #crop_modal .ndmodal-content__prompt {
    font-size: 18px;
    padding: 0px 15px;
    margin-bottom: 20px;
  }
  #crop_modal .crop_modal-actions {
    display: flex;
    gap: 40rem;
    margin-top: 20px;
  }
  #crop_modal .ndmodal-content__footer {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 650px) {
  #crop_modal .ndmodal-content__footer {
    flex-direction: column;

  }
  #crop_modal .ndmodal-content__footer .crop_modal--crop{
    order: 0;
  }
  #crop_modal .ndmodal-content__footer button {
    width: 100%;
  }
  #crop_modal .ndmodal-content__prompt {
    font-size: 18px;
    padding: 0px 15px;
  }
}