.mlo-replace-media-metabox {
  padding: 0;

  .mlo-description {
    color: #666;
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
  }
}

/* Replace section */
.mlo-replace-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mlo-replace-input {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;

  label {
    width: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 16px 12px;
    border: 2px dashed #c3c4c7;
    border-radius: 4px;
    background: #f9f9f9;
    transition: all 0.2s ease;
    gap: 6px;
    box-sizing: border-box;

    &:hover {
      background: #f0f0f1;
      border-color: #2271b1;

      .mlo-drop-icon {
        color: #2271b1;
      }
    }
  }

  .label-text {
    font-size: 13px;
    color: #50575e;
    font-weight: 500;
  }
}

#mlo-file-drop-area {
  box-sizing: border-box;
  position: relative;
  transition: all 0.2s ease;

  &.drag-active {
    background-color: #e8f0fe;
    border-color: #2271b1;
    border-style: solid;

    .mlo-drop-icon {
      color: #2271b1;
    }
  }
}

/* Drop icon */
.mlo-drop-icon {
  font-size: 28px;
  color: #c3c4c7;
  line-height: 1;
  width: 28px;
  height: 28px;
  transition: color 0.2s ease;
}

.mlo-supported-text {
  font-size: 11px;
  color: #999;
}

/* Preview area */
.mlo-replace-file-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-wrap: wrap;

  img {
    object-fit: cover;
    border-radius: 4px;
    max-width: 200px;
    max-height: 60px;
    border: 1px solid #ddd;
    background: #f0f0f0;
  }
}

/* Error box */
.mlo-replace-file-error {
  color: #d63638;
  padding: 6px 10px;
  border-radius: 3px;
  border-left: 4px solid #d63638;
  background: #fcf0f1;
  font-size: 12px;
}

/* Action buttons */
.mlo-replace-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

/* Footer / branding */
.mlo-replace-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
  font-size: 11px;
  color: #999;
}

/* SVG loader animation */
.mlo-svg-loader {
  animation: mlo-spin 1s linear infinite;
}

@keyframes mlo-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hidden utility */
.hidden {
  display: none !important;
}