@import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

.dnd-upload-status {
  margin-top: 20px;
}

@media screen and (max-width: 767px) {
  .dnd-custom-upload-image {
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  .dnd-image-wrapper {
    width: 90%;
    min-width: auto !important;
  }

  .dnd-custom-upload-image img {
    max-height: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .dnd-custom-upload-status {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px;
  }

  .dnd-upload-status {
    width: 100% !important;
  }

  .dnd-upload-details {
    width: 85% !important;
    font-size: 12px;
  }

  input[type="number"] {
    width: 100%;
  }
}

.dnd-custom-upload-image {
  margin-left: auto;
  margin-right: auto;
  max-height: 250px;
}

.dnd-custom-upload-image img {
  width: auto !important;
  margin-left: auto;
  margin-right: auto;
  max-height: 250px;
}

.dnd-custom-upload-status {
  flex-direction: row;
  width: 100%;
}

.dnd-upload-details {
  width: 85%;
}

.dnd-upload-details span.file-name {
  max-width: 200px;
}

.decrease-btn,
.increase-btn {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decrease-btn:hover,
.increase-btn:hover {
  background-color: #e0e0e0;
}

input[type="number"] {
  text-align: center;
}

.checkered {
  max-height: 240px;
  background: -webkit-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), -webkit-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), white;
  background: -moz-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), -moz-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), white;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), white;
  background-repeat: repeat, repeat;
  background-position: 0px 0, 5px 5px;
  -webkit-transform-origin: 0 0 0;
  transform-origin: 0 0 0;
  -webkit-background-origin: padding-box, padding-box;
  background-origin: padding-box, padding-box;
  -webkit-background-clip: border-box, border-box;
  background-clip: border-box, border-box;
  -webkit-background-size: 10px 10px, 10px 10px;
  background-size: 10px 10px, 10px 10px;
  -webkit-box-shadow: none;
  box-shadow: none;
  text-shadow: none;
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
  transition: none;
  -webkit-transform: scaleX(1) scaleY(1) scaleZ(1);
  transform: scaleX(1) scaleY(1) scaleZ(1);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 47px;
  height: 21px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.dnd-image-wrapper {
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  overflow-anchor: none;
  background: #f8f8f8;
  padding-top: 20px;
  max-width: 250px;
  min-width: 250px;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dnd-image-wrapper dnd-custom-upload-image.checkered {
  margin: auto;
  display: block;

  max-height: 250px;
  max-width: 100%;

  object-fit: contain;
}

.dnd-custom-upload-image {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.dnd-custom-upload-image.rotated {
}

.dnd-custom-upload-image.rotated img {
    transform: rotate(90deg);
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

.dnd-custom-upload-image.rotated > div[style*="top: -20px"],
.dnd-custom-upload-image.rotated > div[style*="left: -20px"] {
    display: none;
}

.image-action-btn.rotate-image-btn.active {
    background: #2c7be5;
    color: white;
    border-color: #2c7be5;
}