.mpd-rm-upload__native-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mpd-rm-upload {
  width: 100%;
  margin-top: 6px;
  color: #1e1e1e;
}

.mpd-rm-upload__dropzone {
  min-height: 88px;
  padding: 18px;
  border: 2px dashed #7d8794 !important;
  border-radius: 4px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.mpd-rm-upload__dropzone:hover,
.mpd-rm-upload__dropzone.is-dragging {
  border-color: #d3ac2b !important;
  background: #fffaf0;
  box-shadow: 0 0 0 1px rgba(211, 172, 43, 0.18);
}

.mpd-rm-upload__choose {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #d3ac2b;
  border-radius: 4px;
  background: #d3ac2b;
  color: #101d2c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mpd-rm-upload__choose:hover,
.mpd-rm-upload__choose:focus {
  background: #bf981e;
  border-color: #bf981e;
}

.mpd-rm-upload__choose:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mpd-rm-upload__hint,
.mpd-rm-upload__count {
  font-size: 13px;
  line-height: 1.4;
  color: #5f6873;
}

.mpd-rm-upload__count {
  margin-top: 7px;
}

.mpd-rm-upload__notice {
  display: none;
  margin-top: 8px;
  padding: 9px 11px;
  border-left: 3px solid transparent;
  font-size: 13px;
  line-height: 1.45;
}

.mpd-rm-upload__notice:not(:empty) {
  display: block;
}

.mpd-rm-upload__notice.is-error {
  border-color: #c92a2a;
  background: #fff1f1;
  color: #9f1f1f;
}

.mpd-rm-upload__notice.is-success {
  border-color: #2b8a3e;
  background: #edf9f0;
  color: #236b32;
}

.mpd-rm-upload__notice.is-progress {
  border-color: #d3ac2b;
  background: #fffaf0;
  color: #3b3420;
}

.mpd-rm-upload__progress {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  background: #e2e5e9;
}

.mpd-rm-upload__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #d3ac2b;
  transition: width 0.12s linear;
}

.mpd-rm-upload__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 10px !important;
}

.mpd-rm-upload__item {
  position: relative !important;
  min-width: 0;
  padding: 6px !important;
  overflow: hidden !important;
  border: 1px solid #b8c0ca !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(17, 29, 44, 0.08);
  transition: opacity 0.15s ease;
}

.mpd-rm-upload__item.is-removing {
  opacity: 0.55;
}

.mpd-rm-upload__thumbnail,
.mpd-rm-upload__file-icon {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0f2f4;
}

.mpd-rm-upload__file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #606975;
  font-size: 12px;
  font-weight: 700;
}

.mpd-rm-upload .mpd-rm-upload__remove {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #c92a2a !important;
  color: #fff !important;
  font: 700 16px/1 Arial, sans-serif !important;
  text-indent: 0 !important;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 2px 8px rgba(17, 29, 44, 0.28) !important;
  transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.mpd-rm-upload__item:hover .mpd-rm-upload__remove,
.mpd-rm-upload__item.is-removing .mpd-rm-upload__remove,
.mpd-rm-upload__remove:focus,
.mpd-rm-upload__remove:focus-visible {
  opacity: 1;
  visibility: visible;
}

.mpd-rm-upload .mpd-rm-upload__remove:hover,
.mpd-rm-upload .mpd-rm-upload__remove:focus {
  background: #a61f1f !important;
  transform: translate(-50%, -50%) scale(1.06) !important;
}

.mpd-rm-upload .mpd-rm-upload__remove.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  content: '';
  animation: mpd-rm-upload-spin 0.7s linear infinite;
}

@keyframes mpd-rm-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.mpd-rm-upload__filename {
  display: none;
}

@media (max-width: 600px) {
  .mpd-rm-upload__dropzone {
    flex-direction: column;
  }

  .mpd-rm-upload__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .mpd-rm-upload .mpd-rm-upload__remove {
    opacity: 1;
    visibility: visible;
  }
}
