
.field--widget-image-widget-crop {
  background-color: #eee;
  padding: 1rem 1rem;
  margin-top: 20px;
}

.field--widget-image-widget-crop div.form-type-managed-file {
  margin-top: 0;
}

.field--widget-image-widget-crop .image-widget-data {
  display: grid;
}

.field--widget-image-widget-crop .image-preview+.image-widget-data {
  grid-template-rows: 65px 59px;
  gap: 10px;
}

@media (min-width:768px) {
  .field--widget-image-widget-crop .image-preview+.image-widget-data {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    grid-template-rows: 65px;
    margin-bottom: 14px;
  }

  .node-fellow-young-affiliate-edit-form .field--widget-image-widget-crop input[value="Remove"] {
    /* margin-top: 14px; */
    margin: 1rem 0;
    display: block;
  }
}


.node-fellow-young-affiliate-edit-form .form-item input[type="file"] {
  grid-column: 1 / span 3;
  padding: 7px;
}

.field--widget-image-widget-crop .image-widget-data .file--image,
.field--widget-image-widget-crop .image-widget-data .file-size,
.field--widget-image-widget-crop .image-widget-data .file--image {
  display: none;
}

.field--widget-image-widget-crop input[value="Remove"] {
  background: transparent !important;
  box-shadow: 0px 0px 0px 0px;
  color: #0073ae;
  font-weight: 600;
  border: 2px solid #0073ae;
  padding: 12px 0px;
  display: inline-block;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: inline-block;
  width: 120px;
}

.field--widget-image-widget-crop input {
  transition: 0.2s;
}

.field--widget-image-widget-crop input:hover {
  opacity: 0.6;
}

.image-data__crop-wrapper {
  border: 0;
}

.image-data__crop-wrapper .details-wrapper {
  position: fixed;
  width: 100%;
  height: calc(100dvh - 56px);
  display: block;
  padding: 0 !important;
  background: rgba(0, 0, 0, .7);
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}


/* modified CSS */
.image-data__crop-wrapper .details-wrapper details[open].form-wrapper:before {
  content: "Please crop your photo using the silhouette template as a guide.";
  color: #fff;
  font-size: 14px;
  line-height: 17px;
  background-color: #0073ae;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 11;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 2rem);
  height: 56px;
  padding: 0 1rem;
}

@media (min-width: 641px) {
  .image-data__crop-wrapper .details-wrapper details[open].form-wrapper:before {
    width: 100%;
    padding: 0 2rem;
    position: fixed;
    top: 56px;
    left: 0;
  }
}

.field--widget-image-widget-crop .cropper-modal {
  background-color: transparent;
}

.image-data__crop-wrapper summary {
  list-style: none;
  display: inline-block;
  padding: 14px 18px;
  background-color: #0073ae;
  color: #ffffff;
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  transition: all 0.5s ease;
  text-decoration: none;
  border: 0;
}

.image-data__crop-wrapper .details-wrapper .vertical-tabs__menu,
.image-data__crop-wrapper .details-wrapper summary {
  display: none !important;
}

.image-data__crop-wrapper .details-wrapper [data-vertical-tabs-panes],
.image-data__crop-wrapper .details-wrapper .vertical-tabs {
  background-color: transparent;
  border: 0;
}

.image-data__crop-wrapper .cropper-container {
  transform: scale(.5) translateY(20%);
  transform-origin: top;
}

.node-crop-form .button.form-submit {
  transform: translate(15rem, -3.8rem);
}



/* --------------- CUSTOM CSS --------------- */
.crop-preview-wrapper.form-wrapper {
  position: absolute;
  width: 100%;
  height: 80%;
  margin-top: 84px;
}

@media (max-width: 1200px) {
  .crop-preview-wrapper.form-wrapper {
    padding-top: 56px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: calc(100vw - 70px);
    height: calc(100dvh - 150px);
    margin-top: 0;
  }
}


.crop-preview-wrapper.form-wrapper .cropper-container {
  transform-origin: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-data__crop-wrapper .crop-preview-wrapper__crop-reset,
.image-data__crop-wrapper .crop-preview-wrapper__crop-chiudi {
  position: absolute;
  bottom: -70px;
  transform: translateX(-50%);
  left: 50%;
  margin: 0;
}

.node-fellow-young-affiliate-edit-form .form-item .image-data__crop-wrapper .crop-preview-wrapper__crop-chiudi {
  margin-left: -70px;
}

.node-fellow-young-affiliate-edit-form .form-item .image-data__crop-wrapper .crop-preview-wrapper__crop-reset {
  margin-left: 70px;
  background: #4e4e4e;
}

@media (max-width: 768px) {
  .image-data__crop-wrapper .crop-preview-wrapper__crop-reset,
  .image-data__crop-wrapper .crop-preview-wrapper__crop-chiudi {
    bottom: -70px;
  }

  .image-data__crop-wrapperdetails {
    margin-top: 1em;
    margin-bottom: 1em;
    border: 0px solid #ccc;
  }
}

/* .cropper-face.cropper-move {
  background-image: url(../../images/png_guide.png);
  background-size: cover;
  opacity: 0.3;
} */

.text-alert-crop {
  color: #4bbd43;
  padding: 10px 0px 5px 0px;
  font-size: 14px;
  font-weight: 600;
  display: block;
  text-decoration: underline;
}

